
Property changes on: files/patch-Modules-posixmodule.c.diff
___________________________________________________________________
Added: svn:mergeinfo

Index: Portfile
===================================================================
--- Portfile	(revision 62316)
+++ Portfile	(working copy)
@@ -89,6 +89,7 @@
 select.group            python
 select.file             ${filespath}/python[string map {. {}} ${branch}]
 
+platform macosx {
 post-destroot {
    set framewpath ${frameworks_dir}/Python.framework
    set framewdir  ${framewpath}/Versions/${branch}
@@ -113,6 +114,7 @@
       delete ${destroot}${prefix}/bin/${unversionedFile}
    }
 }
+}
 
 post-activate {
    ui_msg "\nTo fully complete your installation and make python $branch the default, please run
@@ -127,6 +129,23 @@
    }
 }
 
+platform puredarwin {
+        patchfiles-append       patch-Modules-posixmodule.c.diff
+        configure.args-append   --enable-shared
+        configure.args-delete   --enable-framework=${frameworks_dir}
+        configure.args-append   --disable-toolbox-glue --disable-framework
+        destroot.target     install maninstall
+
+post-destroot {
+   file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
+   file rename ${destroot}${prefix}/bin/2to3 ${destroot}${prefix}/bin/2to3-${branch}
+
+   foreach unversionedFile {idle pydoc python python-config smtpd.py} {
+      delete ${destroot}${prefix}/bin/${unversionedFile}
+   }
+}
+}
+
 variant universal {
    post-patch {
       set universal_arch_flags {}

