[116783] trunk/dports/python/py26-pyphant/Portfile
Revision: 116783 https://trac.macports.org/changeset/116783 Author: rowue@macports.org Date: 2014-02-07 07:44:32 -0800 (Fri, 07 Feb 2014) Log Message: ----------- py26-pyphant: changed to the use of portgroup app Modified Paths: -------------- trunk/dports/python/py26-pyphant/Portfile Modified: trunk/dports/python/py26-pyphant/Portfile =================================================================== --- trunk/dports/python/py26-pyphant/Portfile 2014-02-07 15:32:42 UTC (rev 116782) +++ trunk/dports/python/py26-pyphant/Portfile 2014-02-07 15:44:32 UTC (rev 116783) @@ -4,6 +4,7 @@ PortSystem 1.0 PortGroup python26 1.0 PortGroup wxWidgets 1.0 +PortGroup app 1.0 name py26-pyphant version 1.0b2 @@ -35,6 +36,7 @@ from any worker in the recipe. homepage http://www.fmf.uni-freiburg.de/service/servicegruppen/sg_wissinfo/projekte/P... +license BSD platforms darwin depends_lib port:py26-scipy \ @@ -58,6 +60,10 @@ # py26-scipy is not universal universal_variant no +app.name pyphant +# app.executable wxPyphant-2.6 +app.executable pyphant +app.icon ${filespath}/Pyphant.icns master_sites sourceforge:pyphant # master_sites http://pyphant.sourceforge.net/nightly-builds/ @@ -74,18 +80,13 @@ } -post-destroot { - xinstall -m 755 -d ${destroot}${applications_dir}/Pyphant.app/Contents/MacOS +pre-destroot { if {[variant_isset carbon]} { - xinstall ${filespath}/pyphant.quartz ${destroot}${applications_dir}/Pyphant.app/Contents/MacOS/Pyphant + file copy ${filespath}/pyphant.quartz ${destroot}${prefix}/bin + file rename ${destroot}${prefix}/bin/pyphant.quartz ${destroot}${prefix}/bin/pyphant } else { - xinstall ${filespath}/pyphant ${destroot}${applications_dir}/Pyphant.app/Contents/MacOS/Pyphant - reinplace "s|@APPDIR@|${applications_dir}|" ${destroot}${applications_dir}/Pyphant.app/Contents/MacOS/Pyphant + file copy ${filespath}/pyphant ${destroot}${prefix}/bin + reinplace "s|@APPDIR@|${applications_dir}|" ${destroot}${prefix}/bin/pyphant } - reinplace "s|@PREFIX@|${prefix}|" ${destroot}${applications_dir}/Pyphant.app/Contents/MacOS/Pyphant - xinstall -m 755 -d ${destroot}${applications_dir}/Pyphant.app/Contents/Resources - xinstall -m 0644 ${filespath}/Pyphant.icns ${destroot}${applications_dir}/Pyphant.app/Contents/Resources - xinstall -m 0644 ${filespath}/Info.plist ${destroot}${applications_dir}/Pyphant.app/Contents/ - reinplace "s|@VERSION@|${version}|" ${destroot}${applications_dir}/Pyphant.app/Contents/Info.plist - system "echo 'APPL????' > ${destroot}${applications_dir}/Pyphant.app/Contents/PkgInfo" + reinplace "s|@PREFIX@|${prefix}|" ${destroot}${prefix}/bin/pyphant }
participants (1)
-
rowue@macports.org