Provide correct download urls and additional dependencies.
This commit is contained in:
parent
ba11f19efc
commit
17f0eb5148
@ -24,6 +24,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Atk(Package):
|
class Atk(Package):
|
||||||
"""ATK provides the set of accessibility interfaces that are
|
"""ATK provides the set of accessibility interfaces that are
|
||||||
implemented by other toolkits and applications. Using the ATK
|
implemented by other toolkits and applications. Using the ATK
|
||||||
@ -35,7 +36,12 @@ class Atk(Package):
|
|||||||
version('2.20.0', '5187b0972f4d3905f285540b31395e20')
|
version('2.20.0', '5187b0972f4d3905f285540b31395e20')
|
||||||
version('2.14.0', 'ecb7ca8469a5650581b1227d78051b8b')
|
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):
|
def install(self, spec, prefix):
|
||||||
configure("--prefix=%s" % prefix)
|
configure("--prefix=%s" % prefix)
|
||||||
|
@ -42,10 +42,15 @@ class Glib(Package):
|
|||||||
depends_on('pkg-config', type='build')
|
depends_on('pkg-config', type='build')
|
||||||
depends_on('gettext', when=sys.platform == 'darwin')
|
depends_on('gettext', when=sys.platform == 'darwin')
|
||||||
depends_on('pcre+utf', when='@2.49:')
|
depends_on('pcre+utf', when='@2.49:')
|
||||||
|
depends_on('gettext', when='@2.49:')
|
||||||
|
|
||||||
# The following patch is needed for gcc-6.1
|
# The following patch is needed for gcc-6.1
|
||||||
patch('g_date_strftime.patch')
|
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):
|
def install(self, spec, prefix):
|
||||||
configure("--prefix=%s" % prefix)
|
configure("--prefix=%s" % prefix)
|
||||||
make()
|
make()
|
||||||
|
Loading…
Reference in New Issue
Block a user