Add url_for_version to pango package (#6939)

This commit is contained in:
Adam J. Stewart 2018-01-15 14:05:27 -06:00 committed by GitHub
parent 48b127a225
commit 498c522a31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,10 @@ class Pango(AutotoolsPackage):
depends_on("glib") depends_on("glib")
depends_on('gobject-introspection') depends_on('gobject-introspection')
def url_for_version(self, version):
url = "http://ftp.gnome.org/pub/GNOME/sources/pango/{0}/pango-{1}.tar.xz"
return url.format(version.up_to(2), version)
def configure_args(self): def configure_args(self):
args = [] args = []
if self.spec.satisfies('+X'): if self.spec.satisfies('+X'):