Merge pull request #1345 from hartzell/feature/add-perl-dependency-to-git

Add depends_on('perl'), depends_on('pcre') to git package
This commit is contained in:
becker33 2016-08-08 09:44:50 -07:00 committed by GitHub
commit 3ea1325620

View File

@ -53,19 +53,19 @@ class Git(Package):
depends_on("expat") depends_on("expat")
depends_on("gettext") depends_on("gettext")
depends_on("zlib") depends_on("zlib")
depends_on("pcre")
# Use system perl for now. depends_on("perl")
# depends_on("perl")
# depends_on("pcre")
def install(self, spec, prefix): def install(self, spec, prefix):
env['LDFLAGS'] = "-L%s" % spec['gettext'].prefix.lib + " -lintl"
configure_args = [ configure_args = [
"--prefix=%s" % prefix, "--prefix=%s" % prefix,
"--without-pcre", "--with-libpcre=%s" % spec['pcre'].prefix,
"--with-openssl=%s" % spec['openssl'].prefix, "--with-openssl=%s" % spec['openssl'].prefix,
"--with-zlib=%s" % spec['zlib'].prefix, "--with-zlib=%s" % spec['zlib'].prefix,
"--with-curl=%s" % spec['curl'].prefix, "--with-curl=%s" % spec['curl'].prefix,
"--with-expat=%s" % spec['expat'].prefix "--with-expat=%s" % spec['expat'].prefix,
"--with-perl=%s" % join_path(spec['perl'].prefix.bin, 'perl'),
] ]
which('autoreconf')('-i') which('autoreconf')('-i')