Ticket #46394: retire-subversion-pythonbindings.patch

File retire-subversion-pythonbindings.patch, 7.5 KB (added by larryv (Lawrence Velázquez), 9 years ago)
  • dports/devel/subversion-python24bindings/Portfile

    diff --git a/dports/devel/subversion-python24bindings/Portfile b/dports/devel/subversion-python24bindings/Portfile
    index 4b79342..e6c6ba0 100644
    a b PortSystem 1.0 
    44
    55name                    subversion-python24bindings
    66version                 1.8.11
     7revision                1
    78categories              devel python
    8 platforms               darwin
    9 maintainers             openmaintainer blair
    109description             Python bindings for the subversion version control system (svn)
    1110license                 Apache-2
    1211
    long_description Subversion (svn) is a version control system designed to be \ 
    1514                        outstanding problems with cvs(1). The python bindings \
    1615                        provide access to subversion API from python.
    1716
    18 homepage                http://subversion.apache.org/
    19 master_sites            apache:subversion
    20 use_bzip2               yes
    21 checksums       sha1    161edaee328f4fdcfd2a7c10ecd3fbcd51c61275 \
    22                 rmd160  0c512065a168c4e928917e4377dc02b26fcbc72a
    23                
    24 distname                subversion-${version}
    25 dist_subdir             subversion
    26 
    27 depends_lib             port:expat \
    28                         port:apr port:apr-util \
    29                         port:db46 port:subversion \
    30                         port:python24 \
    31                         port:py24-bsddb port:sqlite3 \
    32                         port:gettext port:libiconv \
    33                         port:serf1 port:cyrus-sasl2 \
    34                         port:libmagic port:libcomerr \
    35                         port:zlib
    36 
    37 post-patch {
    38         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_py24/g'"
    39         file rename \
    40                 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py \
    41                 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py24
    42 }
    43 
    44 configure.args          --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 \
    45                         --with-apr=${prefix}/bin/apr-1-config \
    46                         --with-apr-util=${prefix}/bin/apu-1-config --without-apxs \
    47                         --mandir=\\\${prefix}/share/man \
    48                         --with-serf=${prefix} \
    49                         --with-sasl=${prefix} \
    50                         --with-libmagic=${prefix} \
    51                         --without-gnome-keyring
    52 
    53 configure.env           ac_cv_path_PYTHON=${prefix}/bin/python2.4 \
    54                         ac_cv_python_includes=-I${prefix}/include/python2.4 \
    55                         ac_cv_python_link="${configure.cc} -L${prefix}/lib -bundle -undefined dynamic_lookup" \
    56                         ac_cv_python_libs="-L${prefix}/lib -bundle -undefined dynamic_lookup" \
    57                         ac_cv_python_compile=${configure.cc}
    58 
    59 use_parallel_build      yes
    60 build.target            swig-py
    61 destroot.target         install-swig-py DESTDIR=${destroot}
    62 
    63 test.run                yes
    64 test.target             check-swig-py
    65 
    66 pre-test {
    67                         set x {}
    68                         fs-traverse dir ${worksrcpath}/subversion {
    69                                 if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} {
    70                                 lappend x ${dir}
    71                                 continue
    72                                 }
    73                         }
    74                         test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"]
    75                         }
     17replaced_by             subversion-python27bindings
     18PortGroup               obsolete 1.0
    7619
    77 pre-configure {         reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
    78                                 ${worksrcpath}/configure
    79                         }
    80 
    81 post-configure {        reinplace "s|need_relink=yes|need_relink=no|g" \
    82                                 ${worksrcpath}/libtool
    83                         }
    84 
    85 variant no_bdb description {Build without support for BerkeleyDB repositories} {
    86                         depends_lib-delete      port:db46 port:py-bsddb
    87                         configure.args-delete   --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6
    88                         configure.args-append   --without-berkeley-db
    89                         }
    90 
    91 post-destroot {
    92                 set PYTHON_PATH ${prefix}/lib/python2.4
    93 
    94                 xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages
    95                 xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth \
    96                         ${destroot}${PYTHON_PATH}/site-packages
    97                 reinplace "s|@PREFIX@|${prefix}|g" \
    98                         ${destroot}${PYTHON_PATH}/site-packages/svn-python.pth
    99 
    100                 file rename "${destroot}${prefix}/lib/svn-python" \
    101                         "${destroot}${prefix}/lib/svn-python2.4"
    102                 }
    103 
    104 livecheck.type  regex
    105 livecheck.url   http://svn.apache.org/repos/asf/subversion/tags/
    106 livecheck.regex "(\\d+\\.\\d+\\.\\d+)/"
     20homepage                http://subversion.apache.org/
  • dports/devel/subversion-python25bindings/Portfile

    diff --git a/dports/devel/subversion-python25bindings/Portfile b/dports/devel/subversion-python25bindings/Portfile
    index 760b22c..c25fe55 100644
    a b PortSystem 1.0 
    44
    55name                    subversion-python25bindings
    66version                 1.8.11
     7revision                1
    78categories              devel python
    8 platforms               darwin
    9 maintainers             openmaintainer blair
    109description             Python bindings for the subversion version control system (svn)
    1110license                 Apache-2
    1211
    long_description Subversion (svn) is a version control system designed to be \ 
    1514                        outstanding problems with cvs(1). The python bindings \
    1615                        provide access to subversion API from python.
    1716
    18 homepage                http://subversion.apache.org/
    19 master_sites            apache:subversion
    20 use_bzip2               yes
    21 checksums       sha1    161edaee328f4fdcfd2a7c10ecd3fbcd51c61275 \
    22                 rmd160  0c512065a168c4e928917e4377dc02b26fcbc72a
    23                
    24 distname                subversion-${version}
    25 dist_subdir             subversion
    26 
    27 depends_lib             port:expat \
    28                         port:apr port:apr-util \
    29                         port:db46 port:subversion \
    30                         port:python25 \
    31                         port:sqlite3 \
    32                         port:gettext port:libiconv \
    33                         port:serf1 port:cyrus-sasl2 \
    34                         port:libmagic port:libcomerr \
    35                         port:zlib
    36 
    37 post-patch {
    38         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'"
    39         file rename \
    40                 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py \
    41                 ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py25
    42 }
    43 
    44 configure.args          --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 \
    45                         --with-apr=${prefix}/bin/apr-1-config \
    46                         --with-apr-util=${prefix}/bin/apu-1-config --without-apxs \
    47                         --mandir=\\\${prefix}/share/man \
    48                         --with-serf=${prefix} \
    49                         --with-sasl=${prefix} \
    50                         --with-libmagic=${prefix} \
    51                         --without-gnome-keyring
    52 
    53 configure.env           ac_cv_path_PYTHON=${prefix}/bin/python2.5 \
    54                         ac_cv_python_includes=-I${prefix}/include/python2.5 \
    55                         ac_cv_python_link="${configure.cc} -L${prefix}/lib -bundle -undefined dynamic_lookup -lpython2.5" \
    56                         ac_cv_python_libs="-L${prefix}/lib -bundle -undefined dynamic_lookup -lpython2.5" \
    57                         ac_cv_python_compile=${configure.cc}
    58 
    59 use_parallel_build      yes
    60 build.target            swig-py
    61 destroot.target         install-swig-py DESTDIR=${destroot}
    62 
    63 test.run                yes
    64 test.target             check-swig-py
    65 
    66 pre-test {
    67                         set x {}
    68                         fs-traverse dir ${worksrcpath}/subversion {
    69                                 if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} {
    70                                 lappend x ${dir}
    71                                 continue
    72                                 }
    73                         }
    74                         test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"]
    75                         }
     17replaced_by             subversion-python27bindings
     18PortGroup               obsolete 1.0
    7619
    77 pre-configure {         reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
    78                                 ${worksrcpath}/configure
    79                         }
    80 
    81 post-configure {        reinplace "s|need_relink=yes|need_relink=no|g" \
    82                                 ${worksrcpath}/libtool
    83                         }
    84 
    85 variant no_bdb description {Build without support for BerkeleyDB repositories} {
    86                         depends_lib-delete      port:db46
    87                         configure.args-delete   --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6
    88                         configure.args-append   --without-berkeley-db
    89                         }
    90 
    91 post-destroot {
    92                 set PYTHON_PATH ${prefix}/lib/python2.5
    93 
    94                 xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages
    95                 xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth \
    96                         ${destroot}${PYTHON_PATH}/site-packages
    97                 reinplace "s|@PREFIX@|${prefix}|g" \
    98                         ${destroot}${PYTHON_PATH}/site-packages/svn-python.pth
    99 
    100                 file rename "${destroot}${prefix}/lib/svn-python" \
    101                         "${destroot}${prefix}/lib/svn-python2.5"
    102                 }
    103 
    104 livecheck.type  regex
    105 livecheck.url   http://svn.apache.org/repos/asf/subversion/tags/
    106 livecheck.regex "(\\d+\\.\\d+\\.\\d+)/"
     20homepage                http://subversion.apache.org/