summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-10-10 15:02:46 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-10-22 01:08:08 -0700
commitc08985f7d1e9d8e7c0f05629033c72ef3ffe1a26 (patch)
tree458ed42ec11a350b181840c1ad80e1468fabb9cd /var
parent8fd4d324087c6467e6aa68ae93bf7c83b43cec89 (diff)
downloadspack-c08985f7d1e9d8e7c0f05629033c72ef3ffe1a26.tar.gz
spack-c08985f7d1e9d8e7c0f05629033c72ef3ffe1a26.tar.bz2
spack-c08985f7d1e9d8e7c0f05629033c72ef3ffe1a26.tar.xz
spack-c08985f7d1e9d8e7c0f05629033c72ef3ffe1a26.zip
Add bib2xhtml
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/bib2xhtml/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/packages/bib2xhtml/package.py b/var/spack/packages/bib2xhtml/package.py
new file mode 100644
index 0000000000..7f8e0cfe5a
--- /dev/null
+++ b/var/spack/packages/bib2xhtml/package.py
@@ -0,0 +1,27 @@
+from spack import *
+from glob import glob
+
+class Bib2xhtml(Package):
+ """bib2xhtml is a program that converts BibTeX files into HTML."""
+ homepage = "http://www.spinellis.gr/sw/textproc/bib2xhtml/"
+ url='http://www.spinellis.gr/sw/textproc/bib2xhtml/bib2xhtml-v3.0-15-gf506.tar.gz'
+
+ version('3.0-15-gf506', 'a26ba02fe0053bbbf2277bdf0acf8645')
+
+ def url_for_version(self, v):
+ return ('http://www.spinellis.gr/sw/textproc/bib2xhtml/bib2xhtml-v%s.tar.gz' % v)
+
+ def install(self, spec, prefix):
+ # Add the bst include files to the install directory
+ bst_include = join_path(prefix.share, 'bib2xhtml')
+ mkdirp(bst_include)
+ for bstfile in glob('html-*bst'):
+ install(bstfile, bst_include)
+
+ # Install the script and point it at the user's favorite perl
+ # and the bst include directory.
+ mkdirp(prefix.bin)
+ install('bib2xhtml', prefix.bin)
+ filter_file(r'#!/usr/bin/perl',
+ '#!/usr/bin/env BSTINPUTS=%s perl' % bst_include,
+ join_path(prefix.bin, 'bib2xhtml'))