summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-12-25 17:55:19 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2014-12-25 17:55:19 -0800
commit0bc861db6e8edf470c91be81e60546b0619216de (patch)
treead9995a801eabc4bca8afddc59b16ff201a64519 /var
parentd98e475361acdadb3b734fd2dbf97ec603f9b7e8 (diff)
downloadspack-0bc861db6e8edf470c91be81e60546b0619216de.tar.gz
spack-0bc861db6e8edf470c91be81e60546b0619216de.tar.bz2
spack-0bc861db6e8edf470c91be81e60546b0619216de.tar.xz
spack-0bc861db6e8edf470c91be81e60546b0619216de.zip
Fix up bzip2 install
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/bzip2/package.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/var/spack/packages/bzip2/package.py b/var/spack/packages/bzip2/package.py
index 83ae88e564..fbd5869a53 100644
--- a/var/spack/packages/bzip2/package.py
+++ b/var/spack/packages/bzip2/package.py
@@ -1,4 +1,5 @@
from spack import *
+from glob import glob
class Bzip2(Package):
"""bzip2 is a freely available, patent free high-quality data
@@ -15,5 +16,19 @@ class Bzip2(Package):
# No configure system -- have to filter the makefile for this package.
filter_file(r'CC=gcc', 'CC=cc', 'Makefile', string=True)
- make()
+ make('-f', 'Makefile-libbz2_so')
+ make('clean')
make("install", "PREFIX=%s" % prefix)
+
+ bzip2_exe = join_path(prefix.bin, 'bzip2')
+ install('bzip2-shared', bzip2_exe)
+ for libfile in glob('libbz2.so*'):
+ install(libfile, prefix.lib)
+
+ bunzip2 = join_path(prefix.bin, 'bunzip2')
+ remove(bunzip2)
+ symlink(bzip2_exe, bunzip2)
+
+ bzcat = join_path(prefix.bin, 'bzcat')
+ remove(bzcat)
+ symlink(bzip2_exe, bzcat)