summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly (KT) Thompson <kgt@lanl.gov>2016-08-01 22:10:54 -0600
committerKelly (KT) Thompson <kgt@lanl.gov>2016-08-01 22:10:54 -0600
commit17f0eb51483b13270219e70b0c7e405f191b9d86 (patch)
treece61d7073cb07304721c51e8f9f893753a23f466
parentba11f19efcec5b5581bb804fb91768205c5488af (diff)
downloadspack-17f0eb51483b13270219e70b0c7e405f191b9d86.tar.gz
spack-17f0eb51483b13270219e70b0c7e405f191b9d86.tar.bz2
spack-17f0eb51483b13270219e70b0c7e405f191b9d86.tar.xz
spack-17f0eb51483b13270219e70b0c7e405f191b9d86.zip
Provide correct download urls and additional dependencies.
-rw-r--r--var/spack/repos/builtin/packages/atk/package.py8
-rw-r--r--var/spack/repos/builtin/packages/glib/package.py5
2 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/atk/package.py b/var/spack/repos/builtin/packages/atk/package.py
index 8da562f122..361ea24b96 100644
--- a/var/spack/repos/builtin/packages/atk/package.py
+++ b/var/spack/repos/builtin/packages/atk/package.py
@@ -24,6 +24,7 @@
##############################################################################
from spack import *
+
class Atk(Package):
"""ATK provides the set of accessibility interfaces that are
implemented by other toolkits and applications. Using the ATK
@@ -35,7 +36,12 @@ class Atk(Package):
version('2.20.0', '5187b0972f4d3905f285540b31395e20')
version('2.14.0', 'ecb7ca8469a5650581b1227d78051b8b')
- depends_on("glib")
+ depends_on('glib')
+ depends_on('pkg-config', type='build')
+
+ def url_for_version(self, version):
+ """Handle atk's version-based custom URLs."""
+ return 'http://ftp.gnome.org/pub/gnome/sources/atk/%s/atk-%s.tar.xz' % (version.up_to(2), version)
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
diff --git a/var/spack/repos/builtin/packages/glib/package.py b/var/spack/repos/builtin/packages/glib/package.py
index 512f446617..3450791124 100644
--- a/var/spack/repos/builtin/packages/glib/package.py
+++ b/var/spack/repos/builtin/packages/glib/package.py
@@ -42,10 +42,15 @@ class Glib(Package):
depends_on('pkg-config', type='build')
depends_on('gettext', when=sys.platform == 'darwin')
depends_on('pcre+utf', when='@2.49:')
+ depends_on('gettext', when='@2.49:')
# The following patch is needed for gcc-6.1
patch('g_date_strftime.patch')
+ def url_for_version(self, version):
+ """Handle glib's version-based custom URLs."""
+ return 'http://ftp.gnome.org/pub/gnome/sources/glib/%s/glib-%s.tar.xz' % (version.up_to(2), version)
+
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
make()