[96752] trunk/dports/python

blair at macports.org blair at macports.org
Fri Aug 17 20:58:44 PDT 2012


Revision: 96752
          https://trac.macports.org/changeset/96752
Author:   blair at macports.org
Date:     2012-08-17 20:58:44 -0700 (Fri, 17 Aug 2012)
Log Message:
-----------
New unified py2{5,6,7}-pysvn ports based on py27-svn.

This port follows the naming convention that the entire upstream name
is listed after the py\d\d-.

Python 2.4 support is not included currently because of this following
build failure:

Link pysvn/_pysvn_2_4.so
g++  -bundle -g -framework System /opt/local/Python -framework CoreFoundation -framework Kerberos -framework Security -L/opt/local/lib -L/usr/lib -lsvn_client-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_fs-1 -lsvn_subr-1 -lsvn_diff-1 -lapr-1 -lssl -o pysvn/_pysvn_2_4.so -g -O2 -Wall -fPIC -fexceptions -frtti -I. -I/opt/local/include/apr-1 -I/opt/local/include/subversion-1 -DPYCXX_PYTHON_2TO3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pysvn/py24-pysvn/work/pysvn-1.7.6/Import/pycxx-6.2.4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pysvn/py24-pysvn/work/pysvn-1.7.6/Import/pycxx-6.2.4/Src -I/opt/local/include/python2.4 -DNDEBUG -Dinit_pysvn=init_pysvn_2_4 -Dinit_pysvn_d=init_pysvn_2_4_d pysvn.o pysvn_callbacks.o pysvn_client.o pysvn_static_strings.o pysvn_enum_string.o pysvn_client_cmd_add.o pysvn_client_cmd_changelist.o pysvn_client_cmd_checkin.o pysvn_client_cmd_copy.o pysvn_client_cmd_diff.o pysvn_client_cmd_export.o pysvn_client_cmd_info.o pysvn_client_cmd_list.o pysvn_client_cmd_lock.o pysvn_client_cmd_merge.o pysvn_client_cmd_prop.o pysvn_client_cmd_revprop.o pysvn_client_cmd_switch.o pysvn_transaction.o pysvn_revision.o pysvn_docs.o pysvn_path.o pysvn_arg_processing.o pysvn_converters.o pysvn_svnenv.o pysvn_profile.o cxxsupport.o cxx_extensions.o cxxextensions.o IndirectPythonInterface.o
i686-apple-darwin11-llvm-g++-4.2: /opt/local/Python: No such file or directory
make: *** [pysvn/_pysvn_2_4.so] Error 1

Modified Paths:
--------------
    trunk/dports/python/py-pysvn/Portfile

Added Paths:
-----------
    trunk/dports/python/py-pysvn/

Modified: trunk/dports/python/py-pysvn/Portfile
===================================================================
--- trunk/dports/python/py27-svn/Portfile	2012-08-18 03:48:59 UTC (rev 96751)
+++ trunk/dports/python/py-pysvn/Portfile	2012-08-18 03:58:44 UTC (rev 96752)
@@ -1,11 +1,10 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python27 1.0
+PortGroup python 1.0
                 
-name            py27-svn
+name            py-pysvn
 version         1.7.6
-revision        1
 categories      python devel
 maintainers     blair gmail.com:yunzheng.hu openmaintainer
 platforms       darwin
@@ -26,40 +25,44 @@
 
 depends_lib-append  port:subversion
 
-patchfiles      patch-Source_setup_configure.py.diff
+python.versions 25 26 27
 
-worksrcdir      ${worksrcdir}/Source
+if {$subport != $name} {
+    patchfiles      patch-Source_setup_configure.py.diff
 
-use_configure   yes
+    worksrcdir      ${worksrcdir}/Source
 
-pre-configure {
-    system "cd ${worksrcpath} && ${python.bin} setup.py backport"
-}
+    use_configure   yes
 
-configure.cmd   ${python.bin} setup.py configure
-configure.pre_args
-configure.args  --apr-inc-dir=${prefix}/include/apr-1 \
-                --apu-inc-dir=${prefix}/include/apr-1 \
-                --apr-lib-dir=${prefix}/lib \
-                --svn-root-dir=${prefix}
+    pre-configure {
+        system "cd ${worksrcpath} && ${python.bin} setup.py backport"
+    }
 
-post-configure {
-    reinplace "s|^\t@|\t|" ${worksrcpath}/Makefile
-}
+    configure.cmd   ${python.bin} setup.py configure
+    configure.pre_args
+    configure.args  --apr-inc-dir=${prefix}/include/apr-1 \
+                    --apu-inc-dir=${prefix}/include/apr-1 \
+                    --apr-lib-dir=${prefix}/lib \
+                    --svn-root-dir=${prefix}
 
-build.cmd       make
-build.target
+    post-configure {
+        reinplace "s|^\t@|\t|" ${worksrcpath}/Makefile
+    }
 
-destroot {
-    file mkdir ${destroot}${python.pkgd}
-    file copy ${worksrcpath}/pysvn ${destroot}${python.pkgd}
+    build.cmd       make
+    build.target
 
-    eval file copy [glob ${worksrcpath}/../Examples/*] \
-        ${destroot}${prefix}/share/doc/${name}/examples
-    eval file copy [glob ${worksrcpath}/../Docs/*] \
-        ${destroot}${prefix}/share/doc/${name}
+    destroot {
+        file mkdir ${destroot}${python.pkgd}
+        file copy ${worksrcpath}/pysvn ${destroot}${python.pkgd}
+
+        eval file copy [glob ${worksrcpath}/../Examples/*] \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+        eval file copy [glob ${worksrcpath}/../Docs/*] \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+} else {
+    livecheck.type  regex
+    livecheck.url   http://pysvn.tigris.org/project_downloads.html
+    livecheck.regex >pysvn-(.*?)${extract.suffix}<
 }
-
-livecheck.type  regex
-livecheck.url   http://pysvn.tigris.org/project_downloads.html
-livecheck.regex >pysvn-(.*?)${extract.suffix}<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120817/05711cbd/attachment.html>


More information about the macports-changes mailing list