Ticket #19218: subversion-bindings.diff
File subversion-bindings.diff, 2.4 KB (added by tenomoto (Takeshi Enomoto), 16 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 5 name subversion-python2 5bindings5 name subversion-python26bindings 6 6 version 1.6.0 7 7 revision 1 8 8 categories devel python … … 27 27 depends_lib port:expat port:neon \ 28 28 port:apr port:apr-util \ 29 29 port:db46 port:subversion \ 30 port:python2 5\31 port: py25-bsddb port:sqlite3 \30 port:python26 \ 31 port:sqlite3 \ 32 32 port:gettext port:libiconv \ 33 33 port:serf port:cyrus-sasl2 34 34 35 35 post-patch { 36 system "cd ${worksrcpath}; find build* Makefile.in subversion/bindings/swig/python -type f -print0 | xargs -0 perl -w -p -i -e 's/libsvn_swig_py/libsvn_swig_py2 5/g'"36 system "cd ${worksrcpath}; find build* Makefile.in subversion/bindings/swig/python -type f -print0 | xargs -0 perl -w -p -i -e 's/libsvn_swig_py/libsvn_swig_py26/g'" 37 37 file rename \ 38 38 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py \ 39 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py2 539 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py26 40 40 } 41 41 42 42 configure.args --with-berkeley-db=yes \ … … 46 46 --disable-neon-version-check --with-serf=${prefix} \ 47 47 --with-sasl=${prefix} 48 48 49 configure.env ac_cv_path_PYTHON=${prefix}/bin/python2. 549 configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.6 50 50 use_parallel_build yes 51 51 build.target swig-py 52 52 destroot.target install-swig-py DESTDIR=${destroot} … … 74 74 } 75 75 76 76 variant no_bdb description {Build without support for BerkeleyDB repositories} { 77 depends_lib-delete port:db46 port:py25-bsddb77 depends_lib-delete port:db46 78 78 configure.args-delete --with-berkeley-db=yes 79 79 configure.args-append --without-berkeley-db 80 80 } … … 86 86 } 87 87 88 88 post-destroot { 89 set PYTHON_PATH ${prefix}/ lib/python2.589 set PYTHON_PATH ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 90 90 91 91 xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages 92 92 xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth \ … … 95 95 ${destroot}${PYTHON_PATH}/site-packages/svn-python.pth 96 96 97 97 file rename "${destroot}/${prefix}/lib/svn-python" \ 98 "${destroot}/${prefix}/lib/svn-python2. 5"98 "${destroot}/${prefix}/lib/svn-python2.6" 99 99 } 100 100 101 101 # 10.3 says -> CarbonCore/MacTypes.h: No such file or directory