[88359] trunk/dports/science/ng-spice/Portfile
and.damore at macports.org
and.damore at macports.org
Thu Dec 29 03:03:43 PST 2011
Revision: 88359
http://trac.macports.org/changeset/88359
Author: and.damore at macports.org
Date: 2011-12-29 03:03:42 -0800 (Thu, 29 Dec 2011)
Log Message:
-----------
port ng-spice: bumping version, adhering to porthier in $prefix/share, adding license, adding variant for PDF manual
Modified Paths:
--------------
trunk/dports/science/ng-spice/Portfile
Modified: trunk/dports/science/ng-spice/Portfile
===================================================================
--- trunk/dports/science/ng-spice/Portfile 2011-12-29 10:50:54 UTC (rev 88358)
+++ trunk/dports/science/ng-spice/Portfile 2011-12-29 11:03:42 UTC (rev 88359)
@@ -4,7 +4,8 @@
PortSystem 1.0
name ng-spice
-version 21
+version 23
+license BSD
categories science cad
maintainers nomaintainer
platforms darwin
@@ -19,21 +20,40 @@
homepage http://ngspice.sourceforge.net/
master_sites sourceforge:ngspice
-distname ${name}-rework-${version}
+distname ngspice-${version}
-checksums md5 68ae18d4c1f7312a1b8e7a5c0858b146 \
- sha1 4a66885b0de2333c0d07cefc6af41b557c46ffde \
- rmd160 f48bc6549a08cc9c3e0886fd4e09ff46debf86dc
+checksums [suffix ${distname}] \
+ md5 bc7faa7348e307145b3bb04ef70a87d2 \
+ sha1 65fa23d1168cb3af7651b990344f763c77bf6132 \
+ rmd160 34a5bb0a06e67a9ebe21f7abe8067cd8e793ea9e \
+ ngspice${version}-manual.pdf.gz \
+ md5 7c1766f61034725268fd1ba6817358d1 \
+ sha1 ea92e50eb84f973bf0b364e75d74416cf69291ce \
+ rmd160 286bfa0dc5b38d0d931cd686d9979c0734a17ea7
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
+post-destroot {
+ file rename ${destroot}${prefix}/share/ngspice ${destroot}${prefix}/share/${name}
+}
+
+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"
+ }
+}
+
livecheck.type regex
livecheck.url http://sourceforge.net/projects/ngspice/files/
livecheck.regex "${name}-rework-(\\d+)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111229/28336158/attachment.html>
More information about the macports-changes
mailing list