source: trunk/dports/python/py-pysvn/Portfile

Last change on this file was 142774, checked in by blair@…, 22 months ago

py-pysvn: update to 1.8.0 to fix compilation with svn 1.9.0; closes #48529.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 142774 2015-11-23 01:12:33Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name            py-pysvn
7version         1.8.0
8categories-append      devel
9maintainers     blair openmaintainer
10platforms       darwin
11license         Apache-1.1
12description     Python Subversion Extension (pysvn)
13long_description \
14    The pysvn module is a python interface to the Subversion version \
15    control system. This API exposes client interfaces for managing a \
16    working copy, querying a repository, and synchronizing the two.
17
18homepage        http://pysvn.tigris.org/
19
20master_sites    http://pysvn.barrys-emacs.org/source_kits/
21distname        pysvn-${version}
22checksums       md5    3999a7680f4d3c4d3bddfc45edf65788 \
23                sha1   f1d584bc3b0d15eb27606ca1a6c364dc44fee345 \
24                sha256 39596f4884ed689cdb5a4e210e421724302a566c7ba756cc4d46bbfeb0c8326b
25
26python.versions 26 27
27
28set cxx_stdlibflags {}
29if {[string match *clang* ${configure.cxx}]} {
30    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
31}
32
33if {${name} ne ${subport}} {
34    depends_lib-append  port:subversion
35
36    patchfiles      patch-Source_setup_configure.py.diff
37
38    worksrcdir      ${worksrcdir}/Source
39
40    use_configure   yes
41    configure.universal_args-delete --disable-dependency-tracking
42
43    pre-configure {
44        system "cd ${worksrcpath} && ${python.bin} setup.py backport"
45        reinplace "s|'gcc|'${configure.cc}|g" \
46            ${worksrcpath}/setup_configure.py
47        reinplace "s|'g\+\+|'${configure.cxx} ${cxx_stdlibflags}|g" \
48            ${worksrcpath}/setup_configure.py
49    }
50
51    configure.cmd   ${python.bin} setup.py configure
52    configure.pre_args
53    configure.args  --apr-inc-dir=${prefix}/include/apr-1 \
54                    --apu-inc-dir=${prefix}/include/apr-1 \
55                    --apr-lib-dir=${prefix}/lib \
56                    --svn-root-dir=${prefix}
57    configure.universal_args-delete --disable-dependency-tracking
58
59    post-configure {
60        reinplace "s|^\t@|\t|" ${worksrcpath}/Makefile
61    }
62
63    build.cmd       make
64    build.target
65
66    destroot {
67        file mkdir ${destroot}${python.pkgd}
68        file copy ${worksrcpath}/pysvn ${destroot}${python.pkgd}
69
70        eval file copy [glob ${worksrcpath}/../Examples/*] \
71            ${destroot}${prefix}/share/doc/${subport}/examples
72        eval file copy [glob ${worksrcpath}/../Docs/*] \
73            ${destroot}${prefix}/share/doc/${subport}
74    }
75
76    test.run        yes
77    test.dir        ${worksrcpath}/../Tests
78    test.cmd        make
79    test.target
80
81    livecheck.type  none
82} else {
83    livecheck.type  regex
84    livecheck.url   http://pysvn.tigris.org/project_downloads.html
85    livecheck.regex >pysvn-(.*?)${extract.suffix}<
86}
Note: See TracBrowser for help on using the repository browser.