# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup app 1.0 PortGroup active_variants 1.1 name pspp-devel set buildstamp 20161017030502 set buildhash gc86c40 version 0.10.4 revision 6 # depends_test port:p${perl5.major}-text-diff categories math license GPL-3+ maintainers snc conflicts pspp description Statistical analysis of sampled data (free \ replacement for SPSS). long_description PSPP is a program for \ statistical analysis of sampled data. It is a Free \ replacement for the proprietary program SPSS, and \ appears very similar to it with a few exceptions. homepage http://www.gnu.org/software/pspp/ platforms darwin master_sites http://pspp.benpfaff.org/~blp/pspp-master/${buildstamp}/source distname pspp-${version}-${buildhash} depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \ port:fontconfig \ port:freetype \ port:gettext \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:gsl \ port:libiconv \ port:libxml2 \ port:ncurses \ path:bin/perl:perl5 \ path:lib/pkgconfig/pango.pc:pango \ port:readline \ port:zlib depends_build-append port:pkgconfig checksums rmd160 0bf5ce92d8c4134172300650f429f1f7852ef5a2 \ sha256 73f9c652dd3734b75221d35768cf6bd3a786c85ebd07cfd84957412d04a35e46 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 \ --without-libpq \ --without-gui \ --with-packager=snc \ --with-packager-version=${version}-${buildstamp} \ --with-packager-bug-reports=${maintainers} set nif_compilers {macports-llvm-gcc-4.2 llvm-gcc-4.2} if {[lsearch -exact ${nif_compilers} ${configure.compiler}] > -1} { configure.optflags-append -fno-inline-functions } build.target-append html test.run yes test.target check #test.env TESTSUITEFLAGS='125 128 129 1007' variant help requires gui description {Provide in-application help via yelp} { depends_run-append port:yelp } variant postgres description {Enables reading of postgresql databases} { depends_lib-append port:postgresql92 configure.args-delete --without-libpq configure.ldflags-append -L${prefix}/lib/postgresql92 configure.env-append PG_CONFIG=${prefix}/lib/postgresql92/bin/pg_config } variant gui description {Build PSPPIRE, the graphical interface} { depends_lib-append port:atk \ port:gdk-pixbuf2 \ port:gtksourceview3 configure.args-delete --without-gui } variant quartz requires gui { require_active_variants gtk3 quartz require_active_variants gtksourceview3 quartz } variant x11 requires gui { require_active_variants gtk3 x11 } if {![variant_isset x11] && ![variant_isset quartz]} { default_variants +x11 } # check for x11-poisoned dependencies set x11 no set depspecs {gtk3} foreach depspec depspecs { if {![catch {set result [active_variants $depspec x11]}]} { if {$result} { $x11 yes break } } } # if x11 poison, depend on x11 if {[string is true -strict $x11]} { default_variants +x11 } post-destroot { if {[variant_isset doc]} { 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} } } } post-activate { system "${prefix}/bin/gtk-update-icon-cache-3.0 --ignore-theme-index ${prefix}/share/icons/hicolor" } post-deactivate { system "${prefix}/bin/gtk-update-icon-cache-3.0 --ignore-theme-index ${prefix}/share/icons/hicolor" } if {![variant_isset gui]} { app.create no } app.name PSPP app.executable ${worksrcpath}/PSPP app.icon ${filespath}/logo.png livecheck.url http://pspp.benpfaff.org/~blp/pspp-master/latest/i386/ livecheck.regex