[79559] trunk/dports/science/cfitsio/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jun 18 02:17:37 PDT 2011


Revision: 79559
          http://trac.macports.org/changeset/79559
Author:   ryandesign at macports.org
Date:     2011-06-18 02:17:36 -0700 (Sat, 18 Jun 2011)
Log Message:
-----------
cfitsio: whitespace changes / reformatting; add modeline

Modified Paths:
--------------
    trunk/dports/science/cfitsio/Portfile

Modified: trunk/dports/science/cfitsio/Portfile
===================================================================
--- trunk/dports/science/cfitsio/Portfile	2011-06-18 09:14:28 UTC (rev 79558)
+++ trunk/dports/science/cfitsio/Portfile	2011-06-18 09:17:36 UTC (rev 79559)
@@ -1,78 +1,85 @@
+# -*- 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              cfitsio
+name                cfitsio
 version             3.280
-categories        science
-platforms         darwin
-maintainers       nomaintainer
+categories          science
+platforms           darwin
+maintainers         nomaintainer
 
-description       C access to FITS data files with optional Fortran wrappers
-long_description \
-  CFITSIO is a library of C and Fortran subroutines for reading and writing \
-  data files in FITS (Flexible Image Transport System) data format. CFITSIO \
-  simplifies the task of writing software that deals with FITS files by \
-  providing an easy to use set of high-level routines that insulate the \
-  programmer from the internal complexities of the FITS file format. At the \
-  same time, CFITSIO provides many advanced features that have made it the \
-  most widely used FITS file programming interface in the astronomical \
-  community.
+description         C access to FITS data files with optional Fortran wrappers
 
-homepage          http://heasarc.gsfc.nasa.gov/fitsio/
-master_sites      http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
-distname          ${name}[strsed ${version} {g/\.//}]
-worksrcdir        ${name}
-#dist_subdir       ${name}/${version}_${revision}
+long_description    CFITSIO is a library of C and Fortran subroutines for \
+                    reading and writing data files in FITS (Flexible Image \
+                    Transport System) data format. CFITSIO simplifies the \
+                    task of writing software that deals with FITS files by \
+                    providing an easy to use set of high-level routines that \
+                    insulate the programmer from the internal complexities \
+                    of the FITS file format. At the same time, CFITSIO \
+                    provides many advanced features that have made it the \
+                    most widely used FITS file programming interface in the \
+                    astronomical community.
 
+homepage            http://heasarc.gsfc.nasa.gov/fitsio/
+master_sites        http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
+distname            ${name}[strsed ${version} {g/\.//}]
+worksrcdir          ${name}
+#dist_subdir         ${name}/${version}_${revision}
+
 checksums           sha1    1f86e23808c68dc5aa144bd2622de0189beadead \
                     rmd160  66df553d36e1ea51261a9fa6407760014487c535
 
-patchfiles        patch-configure.diff
+patchfiles          patch-configure.diff
 
 # turn off FORTRAN compiler wrappers by removing FORTRAN from the path
-configure.fc      ${prefix}/bin/no-possible-compiler
-configure.cflags  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+configure.fc        ${prefix}/bin/no-possible-compiler
+configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 configure.universal_args-delete --disable-dependency-tracking
 
-build.target      all shared
+build.target        all shared
 
-use_parallel_build no
+use_parallel_build  no
 
 post-patch {
-  reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
+    reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
 }
 
 post-destroot {
-  system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
-  set docdir ${destroot}${prefix}/share/doc/${name}-${version}
-  xinstall -m 755 -d ${docdir}
-  eval xinstall -m 644 ${worksrcpath}/README [glob ${worksrcpath}/*.txt] \
-    [glob ${worksrcpath}/*.ps] [glob ${worksrcpath}/*.doc] \
-    [glob ${worksrcpath}/*.tex] ${docdir}
+    system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
+    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
+    xinstall -m 755 -d ${docdir}
+    eval xinstall -m 644 \
+        ${worksrcpath}/README \
+        [glob ${worksrcpath}/*.txt] \
+        [glob ${worksrcpath}/*.ps] \
+        [glob ${worksrcpath}/*.doc] \
+        [glob ${worksrcpath}/*.tex] \
+        ${docdir}
 }
 
 variant gcc42 description {create Fortran wrappers using gcc42} conflicts gcc43 gcc44 g95 {
-  depends_lib-append  port:gcc42
-  configure.fc        ${prefix}/bin/gfortran-mp-4.2
+    depends_lib-append  port:gcc42
+    configure.fc        ${prefix}/bin/gfortran-mp-4.2
 }
 
 variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc42 gcc44 g95 {
-  depends_lib-append  port:gcc43
-  configure.fc        ${prefix}/bin/gfortran-mp-4.3
+    depends_lib-append  port:gcc43
+    configure.fc        ${prefix}/bin/gfortran-mp-4.3
 }
 
 variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc42 gcc43 g95 {
-  depends_lib-append  port:gcc44
-  configure.fc        ${prefix}/bin/gfortran-mp-4.4
+    depends_lib-append  port:gcc44
+    configure.fc        ${prefix}/bin/gfortran-mp-4.4
 }
 
 variant g95 description {create Fortran wrappers using f95} conflicts gcc42 gcc43 gcc44 {
-  depends_lib-append  port:g95
-  configure.fc        ${prefix}/bin/g95
+    depends_lib-append  port:g95
+    configure.fc        ${prefix}/bin/g95
 }
 
-livecheck.type    regex
-livecheck.url     ${master_sites}
-livecheck.regex   {cfitsio(\d+).tar.gz}
-livecheck.version [strsed ${version} {g/\.//}]
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     {cfitsio(\d+).tar.gz}
+livecheck.version   [strsed ${version} {g/\.//}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110618/ed36d9d9/attachment-0001.html>


More information about the macports-changes mailing list