I havent tried, but this looks totally like a case for the Python group code; also you should just rely on a concrete version of Python as the path to the "real" python executable gets hardcoded in the "archivemail" python program ($prefix/Library/Frameworks/Python.framework/Versions/ 2.4/Resources/Python.app/Contents/MacOS/Python for Python 2.4..) cheers, -Markus On 13 Feb 2008, at 18:16, simon@macports.org wrote:
Revision34110Authorsimon@macports.orgDate2008-02-13 09:16:14 -0800 (Wed, 13 Feb 2008)Log Message mail/archivemail: Updated to version 0.7.2. Also removed unnecessary compression of man page. Modified Paths • trunk/dports/mail/archivemail/Portfile Diff Modified: trunk/dports/mail/archivemail/Portfile (34109 => 34110) --- trunk/dports/mail/archivemail/Portfile 2008-02-13 16:57:22 UTC (rev 34109) +++ trunk/dports/mail/archivemail/Portfile 2008-02-13 17:16:14 UTC (rev 34110) @@ -3,7 +3,7 @@ PortSystem 1.0
name archivemail -version 0.7.0 +version 0.7.2 categories mail python platforms darwin maintainers nomaintainer @@ -16,20 +16,30 @@
homepage http://archivemail.sourceforge.net master_sites sourceforge -checksums sha1 fcba04b7ae748d54b8ebcbecb0aad08c4f58e927 +checksums md5 e444424688e6ec063e829176e4eb62e2 \ + sha1 0ff9b8991b04f09cf9536c45b6f9e05d2427a459 \ + rmd160 da85dff5114100d76f8f5ac19172d8a557801455
depends_lib bin:python:python24
use_configure no build {}
-destroot.cmd ${prefix}/bin/python setup.py install +# I don't know a better way so it works even if python_select is not +# installed. If there is please tell me (simon@macports.org) or just change +# it. +if {[file exists ${prefix}/bin/python]} { + set python python +} else { + set python python2.4 +} + +destroot.cmd ${prefix}/bin/${python} setup.py install destroot.destdir --prefix=${prefix} \ --root=${destroot} \ --install-data=${prefix}/share post-destroot { - system "gzip -9 ${destroot}${prefix}/share/man/man1/archivemail. 1" - xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} + xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -W ${worksrcpath} CHANGELOG FAQ README TODO \ ${destroot}${prefix}/share/doc/${name} } _______________________________________________ macports-changes mailing list macports-changes@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-changes
-- Dipl. Inf. (FH) Markus W. Weissmann http://www.mweissmann.de/