# $Id: Portfile 37692 2008-06-19 16:53:01Z dluke@macports.org $ PortSystem 1.0 name subversion-python25bindings version 1.5.0 categories devel python platforms darwin maintainers dluke@geeklair.net description Python bindings for the subversion version control system. long_description Subversion is a version control system designed to be \ as similar to cvs(1) as possible, while fixing many \ outstanding problems with cvs(1). The python bindings \ provide access to subversion API from python. homepage http://subversion.tigris.org/ master_sites ${homepage}/downloads use_bzip2 yes checksums md5 004b57643406dd10957ec87955702189 \ sha1 1236a32521b4d8c02261cdc567f6a33d9623f51f \ rmd160 ccbe67ebd473c7fed13253e02f4de88d1b7c89c8 distname subversion-${version} dist_subdir subversion depends_lib port:expat port:neon \ port:apr port:apr-util \ port:db46 port:subversion \ port:python25 \ port:py25-bsddb \ port:gettext port:libiconv \ port:serf post-patch { 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_py25/g'" file rename \ ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py \ ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py25 } configure.args --with-berkeley-db=${prefix}/include/db46:${prefix}/lib/db46 \ --with-neon=${prefix} --with-apr=${prefix} \ --with-apr-util=${prefix} --without-apxs \ --mandir=\\\${prefix}/share/man \ --disable-neon-version-check --with-serf=${prefix} configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.5 use_parallel_build yes build.target swig-py destroot.target install-swig-py DESTDIR=${destroot} test.run yes test.target check-swig-py pre-test { set x {} fs-traverse dir ${worksrcpath}/subversion { if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} { lappend x ${dir} continue } } test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"] } pre-configure { reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \ ${worksrcpath}/configure } post-configure { reinplace "s|need_relink=yes|need_relink=no|g" \ ${worksrcpath}/libtool } variant no_bdb description {Build without support for BerkeleyDB repositories} { depends_lib-delete port:db46 port:py25-bsddb configure.args-delete --with-berkeley-db=${prefix}/include/db46:${prefix}/lib/db46 configure.args-append --without-berkeley-db } variant no_neon description {Build without neon (http/https support)} { depends_lib-delete port:neon configure.args-append --without-neon configure.args-delete --with-neon=${prefix} } post-destroot { set PYTHON_PATH ${prefix}/lib/python2.5 xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth \ ${destroot}${PYTHON_PATH}/site-packages reinplace "s|@PREFIX@|${prefix}|g" \ ${destroot}${PYTHON_PATH}/site-packages/svn-python.pth file rename "${destroot}/${prefix}/lib/svn-python" \ "${destroot}/${prefix}/lib/svn-python2.5" } # 10.3 says -> CarbonCore/MacTypes.h: No such file or directory platform darwin 7 { configure.args-append \ --disable-keychain }