[53377] trunk/dports/math/fgsl/Portfile

takeshi at macports.org takeshi at macports.org
Sat Jul 4 05:06:40 PDT 2009


Revision: 53377
          http://trac.macports.org/changeset/53377
Author:   takeshi at macports.org
Date:     2009-07-04 05:06:38 -0700 (Sat, 04 Jul 2009)
Log Message:
-----------
fgsl: updated to 0.9. variant gcc43 commented out since it is not supported. created doc variant

Modified Paths:
--------------
    trunk/dports/math/fgsl/Portfile

Modified: trunk/dports/math/fgsl/Portfile
===================================================================
--- trunk/dports/math/fgsl/Portfile	2009-07-04 11:32:45 UTC (rev 53376)
+++ trunk/dports/math/fgsl/Portfile	2009-07-04 12:06:38 UTC (rev 53377)
@@ -3,7 +3,7 @@
 PortSystem        1.0
 
 name              fgsl
-version           0.8.1
+version           0.9
 categories        math science
 maintainers       takeshi
 description       Fortran interface to the GNU scientific library
@@ -13,45 +13,53 @@
 homepage          http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/
 platforms         darwin
 master_sites      ${homepage}
-checksums         md5    9a10056e2c8baa1e0c7b17a06213ccde         \
-                  sha1   687e732797bfd0d8bf12f35eca22162993614dd6 \
-                  rmd160 9fb1b84039231e573ad65b340111ed05de3d2214
-depends_build     port:teTeX
+checksums         md5    98db402f679bbb634ccb5357fbbdeb0a         \
+                  sha1   6148a14fe4a1b7c64001f9bf5231ace786118562 \
+                  rmd160 d1ab20126c0c3cfcaf283d021db599a45eddce35
 depends_lib       port:gsl port:g95
 patch {
-	reinplace "s| \$bits | \"\$bits\" |" ${worksrcpath}/configure
- 	reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|" ${worksrcpath}/Makefile
-	reinplace "s|usr|opt|" ${worksrcpath}/doc/usage.texi
+    reinplace "s| \$bits | \"\$bits\" |" ${worksrcpath}/configure
+    reinplace "s|uname -i|uname -p|" ${worksrcpath}/configure
+    reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|" ${worksrcpath}/Makefile
+    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/doc/usage.texi
 }
-# configure is a shell script
+
+pre-configure {
+#        reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/configure
+    reinplace "s|-x f95-cpp-input|\"-x f95-cpp-input\"|" ${worksrcpath}/configure
+}
 configure.pre_args-delete --prefix=${prefix}
 configure.args    "--prefix ${prefix} --f90 g95 --gsl ${prefix}"
-post-build {
-		system "cd ${worksrcpath}/doc/; make"
-}
+
 post-destroot {
-	xinstall -m 755 -d ${destroot}${prefix}/share/${name}/examples
-	eval xinstall -m 644 [glob ${worksrcpath}/doc/examples/*] ${destroot}${prefix}/share/${name}/examples
-	xinstall -m 644 ${worksrcpath}/make.inc ${destroot}${prefix}/share/${name}
-	reinplace "s|../make.inc|make.inc|" ${destroot}${prefix}/share/${name}/examples/Makefile
-	reinplace "s|-I../..|-I${prefix}/include/\$(F90)|" ${destroot}${prefix}/share/${name}/examples/Makefile
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 ${worksrcpath}/doc/fgsl-ref.pdf ${destroot}${prefix}/share/doc/${name}/
+    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/examples
+    eval xinstall -m 644 [glob ${worksrcpath}/doc/examples/*] ${destroot}${prefix}/share/${name}/examples
+    xinstall -m 644 ${worksrcpath}/make.inc ${destroot}${prefix}/share/${name}
+    reinplace "s|../make.inc|make.inc|" ${destroot}${prefix}/share/${name}/examples/Makefile
+    reinplace "s|-I../..|-I${prefix}/include/\$(F90)|" ${destroot}${prefix}/share/${name}/examples/Makefile
+    if {[variant_isset doc]} {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+        xinstall -m 644 ${worksrcpath}/doc/fgsl-ref.pdf ${destroot}${prefix}/share/doc/${name}/
+    }
 }
 
-variant ptex description {typeset with pTeX} {
-	depends_build-delete port:teTeX
-	depends_build-append port:pTeX
+universal_variant no
+
+# gfortran 4.3.x does not support complex(c_double)
+#variant gcc43 description {build with gcc43} {
+#        depends_build-delete port:g95
+#        depends_build-append port:gcc43
+#        configure.args    "--prefix ${prefix} --f90 gfortran-mp-4.3 --gsl ${prefix}"
+#        reinplace "s|g95|gfortran-mp-4.3|" ${worksrcpath}/doc/usage.texi
+#}
+
+variant doc description {typeset documentation} {
+        depends_build-append port:texinfo bin:dvipdf:tetex
+        post-build {
+                system "cd ${worksrcpath}/doc/; make"
+        }
 }
 
-variant gcc43 description {build with gfortran} {
-	depends_build-append port:gcc43
-	pre-configure {
-		reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/configure
-		reinplace "s|-x f95-cpp-input|\"-x f95-cpp-input\"|" ${worksrcpath}/configure
-	}
-	configure.args "--prefix ${prefix} --f90 gfortran-mp-4.3 --gsl ${prefix}"
-	post-patch {
-		reinplace "s|g95|gfortran-mp-4.3|" ${worksrcpath}/doc/usage.texi
-	}
-}
+livecheck       regex
+livecheck.url   ${homepage}
+livecheck.regex {Download version ([0-9]+.[0-9]+[.]*[0-9]*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090704/faccba74/attachment.html>


More information about the macports-changes mailing list