# $Id$ PortSystem 1.0 PortGroup python 1.0 name py-pysvn version 1.8.0 categories-append devel maintainers blair openmaintainer platforms darwin license Apache-1.1 description Python Subversion Extension (pysvn) long_description \ The pysvn module is a python interface to the Subversion version \ control system. This API exposes client interfaces for managing a \ working copy, querying a repository, and synchronizing the two. homepage http://pysvn.tigris.org/ master_sites http://pysvn.barrys-emacs.org/source_kits/ distname pysvn-${version} checksums md5 3999a7680f4d3c4d3bddfc45edf65788 \ sha1 f1d584bc3b0d15eb27606ca1a6c364dc44fee345 \ sha256 39596f4884ed689cdb5a4e210e421724302a566c7ba756cc4d46bbfeb0c8326b python.versions 26 27 set cxx_stdlibflags {} if {[string match *clang* ${configure.cxx}]} { set cxx_stdlibflags -stdlib=${configure.cxx_stdlib} } if {${name} ne ${subport}} { depends_lib-append port:subversion patchfiles patch-Source_setup_configure.py.diff worksrcdir ${worksrcdir}/Source use_configure yes configure.universal_args-delete --disable-dependency-tracking pre-configure { system "cd ${worksrcpath} && ${python.bin} setup.py backport" reinplace "s|'gcc|'${configure.cc}|g" \ ${worksrcpath}/setup_configure.py reinplace "s|'g\+\+|'${configure.cxx} ${cxx_stdlibflags}|g" \ ${worksrcpath}/setup_configure.py } 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} configure.universal_args-delete --disable-dependency-tracking post-configure { reinplace "s|^\t@|\t|" ${worksrcpath}/Makefile } build.cmd make build.target 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} } test.run yes test.dir ${worksrcpath}/../Tests test.cmd make test.target livecheck.type none } else { livecheck.type regex livecheck.url http://pysvn.tigris.org/project_downloads.html livecheck.regex >pysvn-(.*?)${extract.suffix}< }