git-core fails to upgrade
Bjarne D Mathiesen
macintosh at mathiesen.info
Tue May 15 14:09:49 PDT 2012
Bjarne D Mathiesen wrote:
> argggh ... found the error :-(
>
> It's still trying to reference Perl5.12 even though I've upgraded to
> Perl5.14 & removed Perl5.12 completely from my computers ...
>
> now to find out exactly where it goes wrong ...
>
> :-)
OK - Perl5.12 is hardcoded into the Portfile.
I had orignally realized that, and changed all instaces of p5.12 to
p5.12 in a local pathc-Portfile.
however, I of course missed a reference to /macports/bin/perl5.12
The attached pathc-Portfile fixes the problem generally ...
:-)
--
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3
-------------- next part --------------
--- /macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/git-core/Portfile 2012-05-15 23:02:46.000000000 +0200
+++ portfiles/devel/git-core/Portfile 2012-05-15 23:02:36.000000000 +0200
@@ -3,4 +3,5 @@
PortSystem 1.0
+PortGroup perl5 1.0
name git-core
@@ -27,9 +27,9 @@
depends_run port:rsync \
- port:p5.12-error \
- port:p5.12-term-readkey
+ port:p${perl5.major}-error \
+ port:p${perl5.major}-term-readkey
-depends_lib port:perl5.12 \
+depends_lib port:perl${perl5.major} \
port:curl \
port:zlib \
port:openssl \
@@ -56,7 +57,7 @@
CURLDIR=${prefix} \
OPENSSLDIR=${prefix} \
ICONVDIR=${prefix} \
- PERL_PATH="${prefix}/bin/perl5.12" \
+ PERL_PATH="${prefix}/bin/perl${perl5.major}" \
NO_FINK=1 \
NO_DARWIN_PORTS=1 \
NO_R_TO_GCC_LINKER=1 \
@@ -149,8 +150,8 @@
variant svn description {Bi-directional subversion repository support} {
depends_run-append port:subversion \
- port:p5.12-libwww-perl \
- port:p5.12-svn-simple
+ port:p${perl5.major}-libwww-perl \
+ port:p${perl5.major}-svn-simple
}
variant bash_completion {
More information about the macports-users
mailing list