[99376] trunk/dports/science

ryandesign at macports.org ryandesign at macports.org
Sat Nov 3 20:31:09 PDT 2012


Revision: 99376
          http://trac.macports.org//changeset/99376
Author:   ryandesign at macports.org
Date:     2012-11-03 20:31:08 -0700 (Sat, 03 Nov 2012)
Log Message:
-----------
ng-spice: rename to ngspice; update to 24 (#36729); fix packaging error due to wrong directory name (#36876); move PDF manual to ngspice-docs subport

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

Added Paths:
-----------
    trunk/dports/science/ngspice/

Modified: trunk/dports/science/ngspice/Portfile
===================================================================
--- trunk/dports/science/ng-spice/Portfile	2012-11-04 02:37:15 UTC (rev 99375)
+++ trunk/dports/science/ngspice/Portfile	2012-11-04 03:31:08 UTC (rev 99376)
@@ -3,9 +3,8 @@
 
 PortSystem      1.0
 
-name            ng-spice
-version         23
-revision        1
+name            ngspice
+version         24
 license         BSD
 categories      science cad
 maintainers     nomaintainer
@@ -21,39 +20,65 @@
 homepage        http://ngspice.sourceforge.net/
 master_sites    sourceforge:project/ngspice/ng-spice-rework/${version}
 
-distname        ngspice-${version}
+checksums       rmd160  69363d58ef69724f5ac909dcda278095b12bb8dd \
+                sha256  86d2748f6a62db2ed1c4601b24984f6698c88b910bf263ce975467bc6039f065
 
-checksums       [suffix ${distname}] \
-                md5     bc7faa7348e307145b3bb04ef70a87d2 \
-                sha1    65fa23d1168cb3af7651b990344f763c77bf6132 \
-                rmd160  34a5bb0a06e67a9ebe21f7abe8067cd8e793ea9e \
-                ngspice${version}-manual.pdf.gz \
-                md5     7c1766f61034725268fd1ba6817358d1 \
-                sha1    ea92e50eb84f973bf0b364e75d74416cf69291ce \
-                rmd160  286bfa0dc5b38d0d931cd686d9979c0734a17ea7
+set docdir      ${prefix}/share/doc/${name}
 
-worksrcdir      ngspice-${version}
-
-depends_lib     port:xorg-libXaw
-
-extract.only    [suffix ${distname}]  
-configure.args  --x-includes=${prefix}/include \
-                --x-libraries=${prefix}/lib \
-                --with-editline=yes \
-                --enable-x \
-                --enable-xspice
-
-post-destroot {
-    file rename ${destroot}${prefix}/share/ngspice ${destroot}${prefix}/share/${name}
+if {${name} == ${subport}} {
+    depends_lib         port:libedit \
+                        port:xorg-libXaw
+    
+    configure.args      --enable-x \
+                        --enable-xspice \
+                        --with-editline \
+                        --x-includes=${prefix}/include \
+                        --x-libraries=${prefix}/lib
+    
+    post-destroot {
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 644 -W ${worksrcpath} \
+            ANALYSES \
+            AUTHORS \
+            BUGS \
+            COPYING \
+            ChangeLog \
+            DEVICES \
+            FAQ \
+            NEWS \
+            README \
+            Stuarts_Poly_Notes \
+            ${destroot}${docdir}
+    }
+    
+    variant manual description {Legacy compatibility variant} {
+        depends_run-append  port:ngspice-docs
+    }
+    
+    livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
+} else {
+    livecheck.type      none
 }
 
-variant manual description {Includes manual in PDF format} {
-    distfiles-append ngspice${version}-manual.pdf.gz
-    post-destroot {
-        xinstall -d ${destroot}${prefix}/share/doc/${name}
-        xinstall -m 644 ${distpath}/ngspice${version}-manual.pdf.gz ${destroot}${prefix}/share/doc/${name}
-        system -W ${destroot}${prefix}/share/doc/${name} "gunzip ngspice${version}-manual.pdf.gz"
+subport ngspice-docs {
+    supported_archs     noarch
+    description         PDF manual for ngspice
+    long_description    ${description}
+    
+    distname            ${name}${version}-manual.pdf
+    extract.suffix      .gz
+    
+    checksums           rmd160  ec9a55175ca352530565b224032b5bb04f14a51b \
+                        sha256  dfb87979f285297f1e4c7fdbfc6380cc906f408019cdb39653d8e4411bb94ac4
+    
+    extract.only
+    
+    use_configure       no
+    
+    build {}
+    
+    destroot {
+        xinstall -d ${destroot}${docdir}
+        system "gzcat ${distpath}/${distfiles} > ${destroot}${docdir}/${name}-manual.pdf"
     }
 }
-
-livecheck.regex ngspice-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121103/454f5c23/attachment.html>


More information about the macports-changes mailing list