gobject-introspection: add 1.56.1 and fix download (#10462)

Define url_for_version, since Spack's default substitution is
not sufficient
This commit is contained in:
Michael Kuhn 2019-01-31 03:53:08 +01:00 committed by Peter Scheibel
parent 3ce0fba036
commit b1af6b43dc

View File

@ -15,6 +15,7 @@ class GobjectIntrospection(Package):
homepage = "https://wiki.gnome.org/Projects/GObjectIntrospection"
url = "http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.49/gobject-introspection-1.49.2.tar.xz"
version('1.56.1', '5b2875ccff99ff7baab63a34b67f8c920def240e178ff50add809e267d9ea24b')
version('1.49.2', 'c47a76b05b2d8438089f519922180747')
version('1.48.0', '01301fa9019667d48e927353e08bc218')
@ -52,6 +53,10 @@ class GobjectIntrospection(Package):
# inserted into the scripts as they're generated.
patch("sbang.patch")
def url_for_version(self, version):
url = 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/{0}/gobject-introspection-{1}.tar.xz'
return url.format(version.up_to(2), version)
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
# we need to filter this file to avoid an overly long hashbang line