[34724] trunk/dports/lang/python30/Portfile
reiffert at macports.org
reiffert at macports.org
Mon Mar 3 13:53:19 PST 2008
Revision: 34724
http://trac.macosforge.org/projects/macports/changeset/34724
Author: reiffert at macports.org
Date: 2008-03-03 13:53:17 -0800 (Mon, 03 Mar 2008)
Log Message:
-----------
Adjustments for having multiple frameworks in parallel. Signed off by: raimue.
Modified Paths:
--------------
trunk/dports/lang/python30/Portfile
Modified: trunk/dports/lang/python30/Portfile
===================================================================
--- trunk/dports/lang/python30/Portfile 2008-03-03 21:36:03 UTC (rev 34723)
+++ trunk/dports/lang/python30/Portfile 2008-03-03 21:53:17 UTC (rev 34724)
@@ -20,24 +20,38 @@
patch-Makefile.pre.in.diff
depends_lib port:gettext
+depends_run port:python_select
configure.args --without-readline --enable-shared --enable-ipv6 --disable-tk --enable-framework=${prefix}/Library/Frameworks
-destroot.target frameworkinstall maninstall libpython3.0.dylib
+destroot.target libpython3.0.dylib frameworkinstall maninstall
post-destroot {
system "cd ${destroot}${prefix}/bin && \
rm idle pydoc python python-config pythonw smtpd.py"
system "cd ${destroot}${prefix}/share/man/man1 && \
- ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/python.1 python3.0.1"
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/python.1 python3.0.1"
+
system "cd ${destroot}${prefix}/lib && \
- ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/libpython3.0.dylib"
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/libpython3.0.dylib && \
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0"
+ system "mkdir -p ${destroot}${prefix}/include && \
+ cd ${destroot}${prefix}/include && \
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/include/python3.0"
+
+ # install select file for python_select
xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
- xinstall -m 644 ${filespath}/python30 ${destroot}${prefix}/etc/select/python/
+ xinstall -m 644 ${filespath}/python30 ${destroot}${prefix}/etc/select/python/
+ system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework && \
+ rm -f Headers Resources Python && \
+ rm -f Versions/Current "
+}
+post-activate {
+ui_msg "\n\n\nTo fully complete your installation and make python 3.0 the default, \
+please run\n\nsudo python_select python30\n\n"
}
livecheck.check regex
livecheck.url http://www.python.org/download/releases/3.0/
livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080303/21084ed7/attachment.html
More information about the macports-changes
mailing list