[101770] trunk/dports/_resources/port1.0/group/octave-1.0.tcl
and.damore at macports.org
and.damore at macports.org
Fri Jan 18 13:59:57 PST 2013
Revision: 101770
https://trac.macports.org/changeset/101770
Author: and.damore at macports.org
Date: 2013-01-18 13:59:57 -0800 (Fri, 18 Jan 2013)
Log Message:
-----------
octave-1.0 portgroup: relying on octave's builtin pkg manager for building each package's tarball and making it available to the user as package
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/octave-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/octave-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/octave-1.0.tcl 2013-01-18 21:51:55 UTC (rev 101769)
+++ trunk/dports/_resources/port1.0/group/octave-1.0.tcl 2013-01-18 21:59:57 UTC (rev 101770)
@@ -58,18 +58,39 @@
# octave is not universal
universal_variant no
+ use_configure no
livecheck.type regex
livecheck.url http://octave.sourceforge.net/packages.php
livecheck.regex http://downloads\\.sourceforge\\.net/octave/${octave.module}-(\\d+(\\.\\d+)*)\\.tar
}
-post-destroot {
- if {[file exists ${destroot}${prefix}/share/octave/octave_packages]} {
- move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
- }
+extract {
+ xinstall -d -m 755 ${worksrcpath}
}
+build {
+ system "${prefix}/bin/octave -q -f --eval 'pkg build -verbose -nodeps ${worksrcpath} ${distpath}/${distfiles}'"
+}
+
+destroot.keepdirs ${destroot}${prefix}/lib/octave/packages \
+ ${destroot}${prefix}/share/octave/packages
+
+pre-destroot {
+ xinstall -d -m 755 ${destroot}${prefix}/lib/octave/packages
+ xinstall -d -m 755 ${destroot}${prefix}/share/octave/packages
+}
+
+destroot {
+ xinstall -m 644 ${worksrcpath}/${distname}.tar.gz ${destroot}${prefix}/share/octave/${octave.module}.tar.gz
+}
+
+post-deactivate {
+ system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg uninstall ${octave.module}'"
+ system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg rebuild'"
+}
+
post-activate {
- system "${prefix}/bin/octave --eval \"pkg rebuild\""
+ system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg install -verbose -global ${prefix}/share/octave/${octave.module}.tar.gz'"
+ system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg rebuild'"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130118/116c8d9d/attachment.html>
More information about the macports-changes
mailing list