[116540] trunk/dports/math
snc at macports.org
snc at macports.org
Mon Jan 27 20:04:52 PST 2014
Revision: 116540
https://trac.macports.org/changeset/116540
Author: snc at macports.org
Date: 2014-01-27 20:04:52 -0800 (Mon, 27 Jan 2014)
Log Message:
-----------
pspp{,-devel}: cd before launching from app bundle
Modified Paths:
--------------
trunk/dports/math/pspp/Portfile
trunk/dports/math/pspp-devel/Portfile
Added Paths:
-----------
trunk/dports/math/pspp/files/PSPP
trunk/dports/math/pspp-devel/files/PSPP
Modified: trunk/dports/math/pspp/Portfile
===================================================================
--- trunk/dports/math/pspp/Portfile 2014-01-27 23:28:38 UTC (rev 116539)
+++ trunk/dports/math/pspp/Portfile 2014-01-28 04:04:52 UTC (rev 116540)
@@ -7,6 +7,7 @@
name pspp
version 0.8.2
+revision 1
categories math
license GPL-3+
maintainers snc
@@ -41,6 +42,19 @@
depends_build-append port:libglade2 \
port:pkgconfig
+post-extract {
+ if {[variant_isset gui]} {
+ copy ${filespath}/PSPP ${worksrcpath}
+ file attributes ${worksrcpath}/PSPP -permissions ugo+rx
+ }
+}
+
+post-patch {
+ if {[variant_isset gui]} {
+ reinplace s|@@PREFIX@@|${prefix}| ${worksrcpath}/PSPP
+ }
+}
+
configure.args-append --disable-rpath \
--without-libpq \
--without-gui \
@@ -151,5 +165,5 @@
app.create no
}
app.name PSPP
-app.executable psppire
+app.executable ${worksrcpath}/PSPP
app.icon ${filespath}/logo.png
Added: trunk/dports/math/pspp/files/PSPP
===================================================================
--- trunk/dports/math/pspp/files/PSPP (rev 0)
+++ trunk/dports/math/pspp/files/PSPP 2014-01-28 04:04:52 UTC (rev 116540)
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd && @@PREFIX@@/bin/psppire
Modified: trunk/dports/math/pspp-devel/Portfile
===================================================================
--- trunk/dports/math/pspp-devel/Portfile 2014-01-27 23:28:38 UTC (rev 116539)
+++ trunk/dports/math/pspp-devel/Portfile 2014-01-28 04:04:52 UTC (rev 116540)
@@ -9,7 +9,7 @@
set buildstamp 20140127030505
set buildhash gdd2531
version 0.8.2
-revision 1
+revision 2
# depends_test port:p5.16-text-diff
categories math
license GPL-3+
@@ -46,6 +46,19 @@
checksums rmd160 5f9bd967b36bc53f271632e7b0b7c6d18bc1e500 \
sha256 d335a9f42fc505aafb3313da943be20fa5769e953df17d9ca99b1a5e11243d33
+post-extract {
+ if {[variant_isset gui]} {
+ copy ${filespath}/PSPP ${worksrcpath}
+ file attributes ${worksrcpath}/PSPP -permissions ugo+rx
+ }
+}
+
+post-patch {
+ if {[variant_isset gui]} {
+ reinplace s|@@PREFIX@@|${prefix}| ${worksrcpath}/PSPP
+ }
+}
+
#configure.cflags-append -g
configure.perl ${prefix}/bin/perl
configure.args-append --disable-rpath \
@@ -141,7 +154,7 @@
app.create no
}
app.name PSPP
-app.executable psppire
+app.executable ${worksrcpath}/PSPP
app.icon ${filespath}/logo.png
livecheck.url http://pspp.benpfaff.org/~blp/pspp-master/latest/
Added: trunk/dports/math/pspp-devel/files/PSPP
===================================================================
--- trunk/dports/math/pspp-devel/files/PSPP (rev 0)
+++ trunk/dports/math/pspp-devel/files/PSPP 2014-01-28 04:04:52 UTC (rev 116540)
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd && @@PREFIX@@/bin/psppire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140127/cf527243/attachment.html>
More information about the macports-changes
mailing list