[119371] trunk/dports/lang/perl5.8
mojca at macports.org
mojca at macports.org
Thu Apr 24 03:46:21 PDT 2014
Revision: 119371
https://trac.macports.org/changeset/119371
Author: mojca at macports.org
Date: 2014-04-24 03:46:20 -0700 (Thu, 24 Apr 2014)
Log Message:
-----------
perl5.8: whitespace, checksums, patch unification
Modified Paths:
--------------
trunk/dports/lang/perl5.8/Portfile
Added Paths:
-----------
trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh.diff
Removed Paths:
-------------
trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh-usenm.diff
Modified: trunk/dports/lang/perl5.8/Portfile
===================================================================
--- trunk/dports/lang/perl5.8/Portfile 2014-04-24 10:04:50 UTC (rev 119370)
+++ trunk/dports/lang/perl5.8/Portfile 2014-04-24 10:46:20 UTC (rev 119371)
@@ -1,41 +1,37 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name perl5.8
-version 5.8.9
-revision 9
-set branch [join [lrange [split ${version} .] 0 1] .]
-categories lang
-license {Artistic-1 GPL}
-platforms darwin freebsd linux
-maintainers nomaintainer
-description Perl 5.8.x - Practical Extraction and Report Language
+name perl5.8
+version 5.8.9
+revision 9
+set branch [join [lrange [split ${version} .] 0 1] .]
+categories lang
+license {Artistic-1 GPL}
+platforms darwin freebsd linux
+maintainers nomaintainer
+description Perl 5.8.x - Practical Extraction and Report Language
-long_description \
- Perl is a general-purpose programming language originally developed \
- for text manipulation and now used for a wide range of tasks including \
- system administration, web development, network programming, GUI \
- development, and more.
+long_description Perl is a general-purpose programming language originally developed \
+ for text manipulation and now used for a wide range of tasks including \
+ system administration, web development, network programming, GUI \
+ development, and more.
-distname perl-${version}
-use_bzip2 yes
-homepage http://www.perl.org/
-master_sites http://www.cpan.org/src/
+distname perl-${version}
+use_bzip2 yes
+homepage http://www.perl.org/
+master_sites http://www.cpan.org/src/5.0/
-checksums \
- md5 1cb52a76ce77fa300218da96577793ec \
- sha1 19843b5a7585cf35d96c07dbcd419bbdd5813617 \
- rmd160 680004238d626ec985075e1b4519b7f0b34f57e5
+checksums rmd160 680004238d626ec985075e1b4519b7f0b34f57e5 \
+ sha256 1097fbcd48ceccb2bc735d119c9db399a02a8ab9f7dc53e29e47e6a8d0d72e79
-patchfiles patch-perl.c.diff patch-Configure.diff
+patchfiles patch-Configure.diff \
+ patch-perl.c.diff
platform darwin {
- if {${os.major} >= 11} {
- # bypass stupid check that assumes fprintf must be in libc.dylib
- patchfiles-append patch-hints_darwin.sh-usenm.diff
- }
+ patchfiles-append patch-hints_darwin.sh.diff
+
# Prevent miniperl build from finding MacPorts' libstdcxx (#36438).
patchfiles-append patch-Makefile.SH.diff
post-patch {
@@ -45,43 +41,42 @@
post-patch {
reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Configure
- # Ensure that the ld value set in configure.args is used
- reinplace "s|ld='cc';||" ${worksrcpath}/hints/darwin.sh
}
configure.ccache no
configure.distcc no
configure.env LC_ALL=C
-configure.cmd /bin/sh Configure
+configure.cmd sh Configure
configure.pre_args
-configure.universal_args-delete --disable-dependency-tracking
-configure.args \
- -des \
- -D prefix='${prefix}' \
- -D scriptdir='${prefix}/bin' \
- -D cppflags="\${CPPFLAGS}" \
- -D ccflags="\${CFLAGS}" \
- -D ldflags="\${LDFLAGS}" \
- -D vendorprefix='${prefix}' \
- -D man1ext='1pm' \
- -D man3ext='3pm' \
- -D cc=\${CC} \
- -D ld=\${CC} \
- -Dusemultiplicity=y \
- -Dusethreads \
- -Duseshrplib \
- -D man1dir='${prefix}/share/man/man1p' \
- -D man3dir='${prefix}/share/man/man3p' \
- -D sitebin='${prefix}/libexec/perl${branch}/sitebin' \
- -D siteman1dir='${prefix}/share/perl${branch}/siteman/man1' \
- -D siteman3dir='${prefix}/share/perl${branch}/siteman/man3' \
- -D vendorbin='${prefix}/libexec/perl${branch}' \
- -D vendorman1dir='${prefix}/share/perl${branch}/man/man1' \
- -D vendorman3dir='${prefix}/share/perl${branch}/man/man3' \
- -D perlpath="${prefix}/bin/perl${branch}" \
- -D startperl="#!${prefix}/bin/perl${branch}"
+configure.universal_args-delete \
+ --disable-dependency-tracking
+configure.post_args -des \
+ -Dprefix='${prefix}' \
+ -Dscriptdir='${prefix}/bin' \
+ -Dcppflags="\${CPPFLAGS}" \
+ -Dccflags="\${CFLAGS}" \
+ -Dldflags="\${LDFLAGS}" \
+ -Dvendorprefix='${prefix}' \
+ -Dusemultiplicity=y \
+ -Dusethreads \
+ -Duseshrplib \
+ -D cc=\${CC} \
+ -D ld=\${CC} \
+ -D man1ext='1pm' \
+ -D man3ext='3pm' \
+ -D man1dir='${prefix}/share/man/man1p' \
+ -D man3dir='${prefix}/share/man/man3p' \
+ -D sitebin='${prefix}/libexec/perl${branch}/sitebin' \
+ -D siteman1dir='${prefix}/share/perl${branch}/siteman/man1' \
+ -D siteman3dir='${prefix}/share/perl${branch}/siteman/man3' \
+ -D vendorbin='${prefix}/libexec/perl${branch}' \
+ -D vendorman1dir='${prefix}/share/perl${branch}/man/man1' \
+ -D vendorman3dir='${prefix}/share/perl${branch}/man/man3' \
+ -D pager="/usr/bin/less -sR" \
+ -D perlpath="${prefix}/bin/perl${branch}" \
+ -D startperl="#!${prefix}/bin/perl${branch}"
-# Allow perl to find p5-* port installed by the last version
+# Allow perl to find p5-* ports installed by previous (minor) versions
configure.args-append "-D inc_version_list=\"5.8.8 5.8.8/${os.platform}-thread-multi-2level\""
set exclude_libs {bind gdbm db}
@@ -99,9 +94,9 @@
}
}
-post-build {
+post-build {
reinplace -E {s|-arch [a-z0-9_]+||g} \
- ${worksrcpath}/lib/Config_heavy.pl
+ ${worksrcpath}/lib/Config_heavy.pl
}
test.run yes
@@ -128,20 +123,20 @@
}
variant gdbm description {Build with gdbm support} {
- depends_lib-append port:gdbm
+ depends_lib-append port:gdbm
set exclude_libs [ldelete ${exclude_libs} gdbm]
}
variant db description {Build with Berkeley Data Base support} {
- depends_lib-append port:db47
+ depends_lib-append port:db47
set exclude_libs [ldelete ${exclude_libs} db]
-
+
post-patch {
reinplace "s|${prefix}/include|${prefix}/include ${prefix}/include/db47|g" ${worksrcpath}/Configure
reinplace "s|${prefix}/lib|${prefix}/lib ${prefix}/lib/db47|g" ${worksrcpath}/Configure
}
}
-livecheck.type regex
-livecheck.url http://www.cpan.org/src
-livecheck.regex {perl-(5\.8\.\d)\.}
+livecheck.type regex
+livecheck.url http://www.cpan.org/src
+livecheck.regex {perl-(5\.8\.\d)\.}
Deleted: trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh-usenm.diff
===================================================================
--- trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh-usenm.diff 2014-04-24 10:04:50 UTC (rev 119370)
+++ trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh-usenm.diff 2014-04-24 10:46:20 UTC (rev 119371)
@@ -1,11 +0,0 @@
---- hints/darwin.sh.orig 2011-03-10 14:42:17.000000000 +1100
-+++ hints/darwin.sh 2011-03-10 14:43:11.000000000 +1100
-@@ -69,7 +69,7 @@
- archname='darwin';
-
- # nm works.
--usenm='true';
-+usenm='false';
-
- case "$optimize" in
- '')
Added: trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh.diff
===================================================================
--- trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh.diff (rev 0)
+++ trunk/dports/lang/perl5.8/files/patch-hints_darwin.sh.diff 2014-04-24 10:46:20 UTC (rev 119371)
@@ -0,0 +1,19 @@
+--- hints/darwin.sh.orig
++++ hints/darwin.sh
+@@ -69,7 +69,7 @@ esac
+ archname='darwin';
+
+ # nm works.
+-usenm='true';
++usenm='false';
+
+ case "$optimize" in
+ '')
+@@ -134,7 +134,6 @@ esac
+
+ # Shared library extension is .dylib.
+ # Bundle extension is .bundle.
+-ld='cc';
+ so='dylib';
+ dlext='bundle';
+ usedl='define';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140424/23b5df54/attachment.html>
More information about the macports-changes
mailing list