summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDaryl W. Grunau <DarylGrunau@gmail.com>2019-08-14 11:56:51 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-14 12:56:51 -0500
commita9845da15ff3a1e5dda6eea862653d1bb758ca8d (patch)
tree9e3ef47641069cb09191956115447459487007fe /var
parent0f075b0cc8a17f956aa412dcd5282d4e1da49c4a (diff)
downloadspack-a9845da15ff3a1e5dda6eea862653d1bb758ca8d.tar.gz
spack-a9845da15ff3a1e5dda6eea862653d1bb758ca8d.tar.bz2
spack-a9845da15ff3a1e5dda6eea862653d1bb758ca8d.tar.xz
spack-a9845da15ff3a1e5dda6eea862653d1bb758ca8d.zip
New package: go-md2man (#12397)
* bump eospac version * Revert "bump eospac version" This reverts commit 835b1f822d8c083f6ab9eb17222c00409e8eb3da. * new package: go-md2man * address comments by @adamjstewart
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/go-md2man/package.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/go-md2man/package.py b/var/spack/repos/builtin/packages/go-md2man/package.py
new file mode 100644
index 0000000000..47882d94f4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/go-md2man/package.py
@@ -0,0 +1,45 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class GoMd2man(Package):
+ """go-md2man converts markdown into roff (man pages)"""
+
+ homepage = "https://github.com/cpuguy83/go-md2man"
+ url = "https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz"
+
+ version('1.0.10', sha256='76aa56849123b99b95fcea2b15502fd886dead9a5c35be7f78bdc2bad6be8d99')
+
+ depends_on('go')
+
+ resource(name='blackfriday',
+ url='https://github.com/russross/blackfriday/archive/v1.5.2.tar.gz',
+ sha256='626138a08abb8579474a555e9d45cb5260629a2c07e8834428620a650dc9f195',
+ placement='blackfriday',
+ destination=join_path('src', 'github.com', 'russross'))
+
+ def patch(self):
+ mkdirp(join_path(self.stage.source_path,
+ 'src', 'github.com', 'russross'))
+
+ mkdirp(join_path(self.stage.source_path,
+ 'src', 'github.com', 'cpuguy83'))
+
+ ln = which('ln')
+ ln('-s', self.stage.source_path, join_path(
+ 'src', 'github.com', 'cpuguy83', 'go-md2man'))
+
+ def install(self, spec, prefix):
+
+ with working_dir('src'):
+ env['GOPATH'] = self.stage.source_path
+ go = which('go')
+ go('build', '-v', join_path(
+ 'github.com', 'cpuguy83', 'go-md2man'))
+
+ mkdir(prefix.bin)
+ install('go-md2man', prefix.bin)