[103606] trunk/dports/perl/p5-extutils-f77

larryv at macports.org larryv at macports.org
Sat Mar 2 17:06:34 PST 2013


Revision: 103606
          https://trac.macports.org/changeset/103606
Author:   larryv at macports.org
Date:     2013-03-02 17:06:34 -0800 (Sat, 02 Mar 2013)
Log Message:
-----------
p5*-extutils-f77: Update to 1.17; add compiler variants, defaulting to +gcc43.

Modified Paths:
--------------
    trunk/dports/perl/p5-extutils-f77/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm.diff

Removed Paths:
-------------
    trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm

Modified: trunk/dports/perl/p5-extutils-f77/Portfile
===================================================================
--- trunk/dports/perl/p5-extutils-f77/Portfile	2013-03-02 22:59:59 UTC (rev 103605)
+++ trunk/dports/perl/p5-extutils-f77/Portfile	2013-03-03 01:06:34 UTC (rev 103606)
@@ -4,8 +4,7 @@
 PortGroup           perl5 1.0
 
 perl5.branches      5.8 5.10 5.12 5.14 5.16
-perl5.setup         ExtUtils-F77 1.16
-revision            3
+perl5.setup         ExtUtils-F77 1.17
 license             {Artistic-1 GPL}
 maintainers         nomaintainer
 description         Helper for linking C with Fortran subroutines
@@ -15,21 +14,45 @@
 
 platforms           darwin
 
-checksums           md5     af925e7e8a2876a5fd9b6c4660e37664 \
-                    sha1    7965c687b2f724e481666ede1f9529676bf6a50b \
-                    rmd160  106dac38e38bd5d6873e8cae0eb397545fe706ad
+checksums           rmd160  6733b3e1da44a19c90454d02e6ac07d4e87ea97f \
+                    sha256  b3919200443174ff348ed5567d461335e289fba047cb17432f31dea5a26cad3f
 
 if {${perl5.major} != ""} {
-# Note, patch-F77.pm has some bits specific to gcc43, so if this dependency
-# is updated, update the patch as well
-depends_lib-append  port:gcc43
 
 supported_archs noarch
 
 platform darwin {
-   patchfiles-append   patch-F77.pm
+    set lib ""
+    patchfiles-append   patch-F77.pm.diff
     post-patch {
-        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/F77.pm
+        reinplace "s|@@GCCLIB@@|${lib}|g" ${worksrcpath}/F77.pm
+        reinplace "s|@@F77@@|${configure.f77}|g" ${worksrcpath}/F77.pm
     }
 }
+
+variant gcc43 conflicts gcc45 gcc46 gcc47 description {Build with GFortran 4.3} {
+    configure.compiler  macports-gcc-4.3
+    depends_lib-append  port:gcc43
+    set lib ${prefix}/lib/gcc43
 }
+variant gcc45 conflicts gcc43 gcc46 gcc47 description {Build with GFortran 4.5} {
+    configure.compiler  macports-gcc-4.5
+    depends_lib-append  port:gcc45
+    set lib ${prefix}/lib/gcc45
+}
+variant gcc46 conflicts gcc43 gcc45 gcc47 description {Build with GFortran 4.6} {
+    configure.compiler  macports-gcc-4.6
+    depends_lib-append  port:gcc46
+    set lib ${prefix}/lib/gcc46
+}
+variant gcc47 conflicts gcc43 gcc45 gcc46 description {Build with GFortran 4.7} {
+    configure.compiler  macports-gcc-4.7
+    depends_lib-append  port:gcc47
+    set lib ${prefix}/lib/gcc47
+}
+
+if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
+    default_variants    +gcc43
+}
+
+}

Deleted: trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm
===================================================================
--- trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm	2013-03-02 22:59:59 UTC (rev 103605)
+++ trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm	2013-03-03 01:06:34 UTC (rev 103606)
@@ -1,16 +0,0 @@
---- F77.pm.orig	2007-04-01 22:40:23.000000000 -0600
-+++ F77.pm	2009-03-05 15:32:52.000000000 -0700
-@@ -341,10 +341,10 @@
- 
- $F77config{Darwin}{GFortran}{Trail_} = 1;
- $F77config{Darwin}{GFortran}{Cflags} = ' ';        # <---need this space!
--$F77config{Darwin}{GFortran}{Link}   = '-L/usr/local/lib -lgfortran';    
--$F77config{Darwin}{GFortran}{Compiler} = 'gfortran';
-+$F77config{Darwin}{GFortran}{Link}   = '-L@@PREFIX@@/lib/gcc43 -lgfortran';    
-+$F77config{Darwin}{GFortran}{Compiler} = 'gfortran-mp-4.3';
- 
--$F77config{Darwin}{DEFAULT}     = 'G77';
-+$F77config{Darwin}{DEFAULT}     = 'GFortran';
- 
- ############ End of database is here ############ 
- 

Copied: trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm.diff (from rev 103514, trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm)
===================================================================
--- trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm.diff	                        (rev 0)
+++ trunk/dports/perl/p5-extutils-f77/files/patch-F77.pm.diff	2013-03-03 01:06:34 UTC (rev 103606)
@@ -0,0 +1,11 @@
+--- F77.pm.orig	2010-12-31 20:53:06.000000000 -0500
++++ F77.pm	2013-03-02 19:45:51.000000000 -0500
+@@ -365,6 +365,8 @@
+ ### Darwin (Mac OS X) ###
+ 
+ $F77config{Darwin}{GNU} = $F77config{Generic}{GNU};
++$F77config{Darwin}{GNU}{Link} = '-L@@GCCLIB@@ -lgfortran';
++$F77config{Darwin}{GNU}{Compiler} = '@@F77@@';
+ $F77config{Darwin}{DEFAULT}     = 'GNU';
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130302/e22c636f/attachment.html>


More information about the macports-changes mailing list