[45332] trunk/dports/math/pspp/Portfile
snc at macports.org
snc at macports.org
Tue Jan 13 12:33:37 PST 2009
Revision: 45332
http://trac.macports.org/changeset/45332
Author: snc at macports.org
Date: 2009-01-13 12:33:36 -0800 (Tue, 13 Jan 2009)
Log Message:
-----------
updated maintainer to snc and ticket #17605
Modified Paths:
--------------
trunk/dports/math/pspp/Portfile
Modified: trunk/dports/math/pspp/Portfile
===================================================================
--- trunk/dports/math/pspp/Portfile 2009-01-13 20:21:04 UTC (rev 45331)
+++ trunk/dports/math/pspp/Portfile 2009-01-13 20:33:36 UTC (rev 45332)
@@ -6,7 +6,7 @@
name pspp
version 0.6.1
categories math
-maintainers lavergne.gotdns.org:jeremy
+maintainers snc
description Statistical analysis of sampled data (free \
replacement for SPSS).
long_description PSPP is a program for \
@@ -16,7 +16,7 @@
homepage http://www.gnu.org/software/pspp/
platforms darwin
-master_sites http://ftpmirror.gnu.org/pspp
+master_sites gnu
checksums md5 b871739200938820d8db898cd200ed06 \
sha1 22f335053a3e1d3861bfc2d87536b9a6fc5a1ae7 \
@@ -24,24 +24,86 @@
use_parallel_build yes
+depends_build path:bin/perl:perl5
+configure.perl ${prefix}/bin/perl
+
depends_lib port:gsl \
- path:bin/perl:perl5 \
port:libiconv \
- port:plotutils \
+ port:zlib \
port:pkgconfig \
- port:gtk2 \
- port:libglade2 \
- port:libpqxx \
- port:zlib \
port:libxml2 \
- port:ncursesw \
- port:readline \
- port:texinfo
+ port:readline
-configure.perl ${prefix}/bin/perl
+configure.args --disable-rpath \
+ --without-gui \
+ --without-libplot \
+ --without-libpq \
+ --enable-debug \
+ --without-libncurses \
+ --program-suffix=orig
patchfiles patch-config.h.in
+variant ncurses description {Enable terminal resizing} {
+ depends_lib-append port:ncursesw
+ configure.args-delete --without-libncurses
+}
+
+variant doc description {Build documentation} {
+ depends_lib-append port:texinfo
+ build.target-append pdf html
+ post-destroot {
+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+ foreach fl [glob -nocomplain -directory ${worksrcpath}/doc *.pdf *.html] {
+ copy ${fl} ${destroot}${prefix}/share/doc/${name}
+ }
+ }
+}
+
+variant postgres description {Enables reading of postgresql databases} {
+ depends_lib-append port:postgresql83
+ configure.args-delete --without-libpq
+ configure.ldflags-append -L${prefix}/lib/postgresql83
+}
+
+variant graph description {Enable graphing features (default)} {
+ depends_lib-append port:plotutils
+ configure.args-delete --without-libplot
+}
+
+variant gui description {Enable PSPPIRE, the graphical interface (default)} {
+ depends_lib-append port:pkgconfig \
+ port:gtk2 \
+ port:libglade2
+ configure.args-delete --without-gui
+}
+
+default_variants +graph +gui
+
post-destroot {
delete ${destroot}${prefix}/lib/charset.alias
+
+ ln -s ${prefix}/lib/pspp/libpsppire.dylib \
+ ${destroot}${prefix}/lib/pspp/libpsppire.so
+ ln -s ${prefix}/lib/pspp/libpsppwidgets.dylib \
+ ${destroot}${prefix}/lib/pspp/libpsppwidgets.so
+
+ set script [open ${destroot}${prefix}/bin/psppire w+]
+ puts $script "#!/bin/bash"
+ puts $script "export OLDPWD=`pwd`"
+ puts $script "cd /tmp"
+ puts $script "LD_LIBRARY_PATH=${prefix}/lib/pspp ${prefix}/bin/psppireorig"
+ puts $script "cd \$OLDPWD"
+ close $script
+
+ set script [open ${destroot}${prefix}/bin/pspp w+]
+ puts $script "#!/bin/bash"
+ puts $script "export OLDPWD=`pwd`"
+ puts $script "cd /tmp"
+ puts $script "LD_LIBRARY_PATH=${prefix}/lib/pspp ${prefix}/bin/pspporig"
+ puts $script "cd \$OLDPWD"
+ close $script
+
+ system "chmod 755 ${destroot}${prefix}/bin/psppire"
+ system "chmod 755 ${destroot}${prefix}/bin/pspp"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090113/d68589bb/attachment.html>
More information about the macports-changes
mailing list