[62446] trunk/dports/science/cgnslib/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Jan 8 03:18:54 PST 2010


Revision: 62446
          http://trac.macports.org/changeset/62446
Author:   ryandesign at macports.org
Date:     2010-01-08 03:18:53 -0800 (Fri, 08 Jan 2010)
Log Message:
-----------
cgnslib: register the headers and libraries to the port; fixes #23115 (maintainer timeout)

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

Modified: trunk/dports/science/cgnslib/Portfile
===================================================================
--- trunk/dports/science/cgnslib/Portfile	2010-01-08 11:14:19 UTC (rev 62445)
+++ trunk/dports/science/cgnslib/Portfile	2010-01-08 11:18:53 UTC (rev 62446)
@@ -4,6 +4,7 @@
 
 name                cgnslib
 version             2.5.4
+revision            1
 set branch          [join [lrange [split ${version} .] 0 1] .]
 set minor           [lindex [split ${version} .] end]
 categories          science
@@ -35,7 +36,8 @@
     system "cd ${worksrcpath}/tools && make"
 }
 
-destroot.destdir    PREFIX=${destroot}${prefix}
+destroot.destdir    INCLUDEDIR=${destroot}${prefix}/include \
+                    LIBDIR=${destroot}${prefix}/lib
 
 post-destroot {
     xinstall -m 755 -W ${worksrcpath}/tools \
@@ -52,3 +54,15 @@
         README \
         ${docdir}
 }
+
+post-install {
+    # cgnslib 2.5.4_0 installed items directly in ${prefix}; remove them if found
+    foreach file {include/cgnslib.h include/cgnslib_f.h include/cgnswin_f.h lib/libcgns.a} {
+        set filepath ${prefix}/${file}
+        if {[file exists ${filepath}]} {
+            if {[catch {delete ${filepath}}]} {
+                ui_warn "Cannot delete ${filepath}; please remove it manually"
+            }
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100108/3cc3b1e8/attachment-0001.html>


More information about the macports-changes mailing list