[41144] trunk/dports/lang

mcalhoun at macports.org mcalhoun at macports.org
Sat Oct 25 14:23:40 PDT 2008


Revision: 41144
          http://trac.macports.org/changeset/41144
Author:   mcalhoun at macports.org
Date:     2008-10-25 14:23:39 -0700 (Sat, 25 Oct 2008)
Log Message:
-----------
New port: lang/perl5, Maintenance Release of perl5 (#16830)

Added Paths:
-----------
    trunk/dports/lang/perl5/
    trunk/dports/lang/perl5/Portfile
    trunk/dports/lang/perl5/files/
    trunk/dports/lang/perl5/files/patch-makedepend.diff

Added: trunk/dports/lang/perl5/Portfile
===================================================================
--- trunk/dports/lang/perl5/Portfile	                        (rev 0)
+++ trunk/dports/lang/perl5/Portfile	2008-10-25 21:23:39 UTC (rev 41144)
@@ -0,0 +1,87 @@
+# $Id$
+
+PortSystem      1.0
+
+name            perl5
+version         5.8.8
+categories      lang
+platforms       darwin freebsd linux
+maintainers     mcalhoun
+description     Perl 5 - Practical Extraction and Report Language (maintenance release)
+
+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/
+
+checksums       md5 a377c0c67ab43fd96eeec29ce19e8382 \
+                sha1 4aab490040727ca4419098720eca2ba4367df539 \
+                rmd160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b
+
+# See http://trac.macports.org/changeset/34508
+patchfiles      patch-makedepend.diff
+
+platform darwin {
+    post-patch {
+        # See http://trac.macports.org/changeset/10638
+	reinplace "s| socket bind inet | socket inet |g" ${worksrcpath}/Configure
+
+	reinplace "s|ld=\"MACOSX_DEPLOYMENT_TARGET=10.3|ld=\"env MACOSX_DEPLOYMENT_TARGET=10.3|g" ${worksrcpath}/hints/darwin.sh
+    }
+}
+
+post-patch {
+    reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Configure
+    reinplace "s|ld='cc';||" ${worksrcpath}/hints/darwin.sh
+}
+
+configure.env       LC_ALL=C
+configure.cmd       /bin/sh Configure
+configure.pre_args
+configure.post_args -des \
+		    -D prefix='${prefix}' \
+		    -D ccflags=\${CCFLAGS} \
+                    -D ldflags=\${LDFLAGS} \
+                    -D vendorprefix='${prefix}' \
+                    -D man3ext='3pm' \
+                    -D cc=\${CC} \
+		    -D ld=\${CC}
+
+universal_variant   no
+
+test.run            yes
+
+post-destroot {
+    ln -s ${prefix}/bin/perl${version} ${destroot}${prefix}/bin/$name
+}
+
+variant threads description {Build with thread support} {
+    configure.args-append   -Dusethreads
+}
+
+variant shared description {Build shared perl library} {
+    configure.args-append   -Duseshrplib
+}
+
+platform darwin 9 {
+    post-patch {
+        if {[variant_isset shared]} {
+            reinplace \
+	    "s|\$(CC) \$(CLDFLAGS) \$(NAMESPACEFLAGS) -o miniperl |\$(CC) \$(CLDFLAGS) -o miniperl |g" \
+	    ${worksrcpath}/Makefile.SH
+            reinplace \
+	    "s|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) \$(LLIBPERL) \$(libs)|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) perl\$(OBJ_EXT) \$(filter-out op\$(OBJ_EXT),\$(obj)) \$(libs)|g" \
+	    ${worksrcpath}/Makefile.SH
+        }
+    }
+}
+
+livecheck.check regex
+livecheck.url   ${master_sites}
+livecheck.regex latest_maint_is_(5\\.\\d+(?:\\.\\d+)*)


Property changes on: trunk/dports/lang/perl5/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/lang/perl5/files/patch-makedepend.diff
===================================================================
--- trunk/dports/lang/perl5/files/patch-makedepend.diff	                        (rev 0)
+++ trunk/dports/lang/perl5/files/patch-makedepend.diff	2008-10-25 21:23:39 UTC (rev 41144)
@@ -0,0 +1,15 @@
+Change 28615 by mhx at mhx-r2d2 on 2006/07/25 18:42:26
+
+	Very recent development versions of gcc (4.2.0 20060715) seem
+	to have switched from '<command line>' to '<command-line>'.
+
+--- makedepend.SH #35 edit
++++ makedepend.SH #35 (xtext)
+@@ -167,6 +167,7 @@
+             -e '/^#.*<builtin>/d' \
+             -e '/^#.*<built-in>/d' \
+             -e '/^#.*<command line>/d' \
++            -e '/^#.*<command-line>/d' \
+ 	    -e '/^#.*"-"/d' \
+ 	    -e '/: file path prefix .* never used$/d' \
+ 	    -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081025/f3881e99/attachment.html>


More information about the macports-changes mailing list