diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-11-03 00:15:05 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-11-03 14:12:16 -0800 |
commit | 6c8c41da98a01d595b8ef77175e2c717accf02d7 (patch) | |
tree | 64394e698b487badcc4c88cc3364f930bffaf712 /var | |
parent | 0f3b80cddbfd775c10f68423444aca792525f856 (diff) | |
download | spack-6c8c41da98a01d595b8ef77175e2c717accf02d7.tar.gz spack-6c8c41da98a01d595b8ef77175e2c717accf02d7.tar.bz2 spack-6c8c41da98a01d595b8ef77175e2c717accf02d7.tar.xz spack-6c8c41da98a01d595b8ef77175e2c717accf02d7.zip |
Working Python 2.7.8, ncurses, readline
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/ncurses/package.py | 8 | ||||
-rw-r--r-- | var/spack/packages/python/package.py | 11 | ||||
-rw-r--r-- | var/spack/packages/readline/package.py | 21 |
3 files changed, 37 insertions, 3 deletions
diff --git a/var/spack/packages/ncurses/package.py b/var/spack/packages/ncurses/package.py index 4885caa628..2556e600f6 100644 --- a/var/spack/packages/ncurses/package.py +++ b/var/spack/packages/ncurses/package.py @@ -10,10 +10,14 @@ class Ncurses(Package): homepage = "http://invisible-island.net/ncurses/ncurses.html" version('5.9', '8cb9c412e5f2d96bc6f459aa8c6282a1', - url='http://invisible-island.net/datafiles/release/ncurses.tar.gz') + url='http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz') def install(self, spec, prefix): - configure("--prefix=%s" % prefix) + configure("--prefix=%s" % prefix, + "--with-shared", + "--enable-widec", + "--enable-pc-files", + "--without-ada") make() make("install") diff --git a/var/spack/packages/python/package.py b/var/spack/packages/python/package.py index db2d954445..e6c3e28820 100644 --- a/var/spack/packages/python/package.py +++ b/var/spack/packages/python/package.py @@ -8,9 +8,18 @@ class Python(Package): version('2.7.8', 'd235bdfa75b8396942e360a70487ee00') depends_on("openssl") + depends_on("bzip2") + depends_on("readline") + depends_on("ncurses") depends_on("sqlite") def install(self, spec, prefix): - configure("--prefix=%s" % prefix) + # Need this to allow python build to find the Python installation. + env['PYTHONHOME'] = prefix + + # Rest of install is pretty standard. + configure("--prefix=%s" % prefix, + "--with-threads", + "--enable-shared") make() make("install") diff --git a/var/spack/packages/readline/package.py b/var/spack/packages/readline/package.py new file mode 100644 index 0000000000..1b870e0e7f --- /dev/null +++ b/var/spack/packages/readline/package.py @@ -0,0 +1,21 @@ +from spack import * + +class Readline(Package): + """The GNU Readline library provides a set of functions for use by + applications that allow users to edit command li nes as they + are typed in. Both Emacs and vi editing modes are + available. The Readline library includes additional functions + to maintain a list of previously-entered command lines, to + recall and perhaps reedit those lines, and perform csh-like + history expansion on previous commands. """ + homepage = "http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" + url = "ftp://ftp.cwru.edu/pub/bash/readline-6.3.tar.gz" + + version('6.3', '33c8fb279e981274f485fd91da77e94a') + + depends_on("ncurses") + + def install(self, spec, prefix): + configure("--prefix=%s" % prefix) + make("SHLIB_LIBS=-lncurses") + make("install") |