[36314] trunk/dports/math
takeshi at macports.org
takeshi at macports.org
Sat Apr 26 16:19:18 PDT 2008
Revision: 36314
http://trac.macosforge.org/projects/macports/changeset/36314
Author: takeshi at macports.org
Date: 2008-04-26 16:19:15 -0700 (Sat, 26 Apr 2008)
Log Message:
-----------
fgsl: adding a port
Added Paths:
-----------
trunk/dports/math/fgsl/
trunk/dports/math/fgsl/Portfile
Added: trunk/dports/math/fgsl/Portfile
===================================================================
--- trunk/dports/math/fgsl/Portfile (rev 0)
+++ trunk/dports/math/fgsl/Portfile 2008-04-26 23:19:15 UTC (rev 36314)
@@ -0,0 +1,57 @@
+# $Id$
+
+PortSystem 1.0
+
+name fgsl
+version 0.8.1
+categories math science
+maintainers takeshi at macports.org
+description Fortran interface to the GNU scientific library
+long_description \
+ A portable, object-based Fortran interface to the GNU scientific library, \
+ a collection of numerical routines for scientific computing.
+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
+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
+}
+# configure is a shell script
+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}/
+}
+
+variant ptex description {typeset with pTeX} {
+ depends_build-delete port:teTeX
+ depends_build-append port:pTeX
+}
+
+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
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080426/49160be6/attachment.html
More information about the macports-changes
mailing list