summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/packages/libffi/package.py16
-rw-r--r--var/spack/packages/python/package.py16
2 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/packages/libffi/package.py b/var/spack/packages/libffi/package.py
new file mode 100644
index 0000000000..2c1c4eed4d
--- /dev/null
+++ b/var/spack/packages/libffi/package.py
@@ -0,0 +1,16 @@
+from spack import *
+
+class Libffi(Package):
+ """The libffi library provides a portable, high level programming
+ interface to various calling conventions. This allows a programmer
+ to call any function specified by a call interface description at
+ run time."""
+ homepage = "https://sourceware.org/libffi/"
+ url = "ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz"
+
+ version('3.1', 'f5898b29bbfd70502831a212d9249d10')
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+ make()
+ make("install")
diff --git a/var/spack/packages/python/package.py b/var/spack/packages/python/package.py
new file mode 100644
index 0000000000..db2d954445
--- /dev/null
+++ b/var/spack/packages/python/package.py
@@ -0,0 +1,16 @@
+from spack import *
+
+class Python(Package):
+ """The Python programming language."""
+ homepage = "http://www.python.org"
+ url = "http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz"
+
+ version('2.7.8', 'd235bdfa75b8396942e360a70487ee00')
+
+ depends_on("openssl")
+ depends_on("sqlite")
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+ make()
+ make("install")