Merge pull request #343 from adamjstewart/features/mpc
Add different URL for older source code
This commit is contained in:
commit
24f0757d82
@ -37,6 +37,12 @@ class Mpc(Package):
|
||||
depends_on("gmp")
|
||||
depends_on("mpfr")
|
||||
|
||||
def url_for_version(self, version):
|
||||
if version < Version("1.0.1"):
|
||||
return "http://www.multiprecision.org/mpc/download/mpc-%s.tar.gz" % version
|
||||
else:
|
||||
return "ftp://ftp.gnu.org/gnu/mpc/mpc-%s.tar.gz" % version
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure("--prefix=%s" % prefix)
|
||||
make()
|
||||
|
Loading…
Reference in New Issue
Block a user