[27408] trunk/dports/devel
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 2 10:57:17 PDT 2007
Revision: 27408
http://trac.macosforge.org/projects/macports/changeset/27408
Author: blair at macports.org
Date: 2007-08-02 10:57:17 -0700 (Thu, 02 Aug 2007)
Log Message:
-----------
New subversion-python24bindings port based off the
subversion-pythonbindings, but for Python 2.4. This new port renames
all files and directories to have 24 in the name so this port can be
installed along side subversion-pythonbindings and the soon to be
released subversion-python25bindings.
Modified Paths:
--------------
trunk/dports/devel/subversion-python24bindings/Portfile
trunk/dports/devel/subversion-python24bindings/files/svn-python.pth
Added Paths:
-----------
trunk/dports/devel/subversion-python24bindings/
Copied: trunk/dports/devel/subversion-python24bindings (from rev 27407, trunk/dports/devel/subversion-pythonbindings)
Modified: trunk/dports/devel/subversion-python24bindings/Portfile
===================================================================
--- trunk/dports/devel/subversion-pythonbindings/Portfile 2007-08-02 17:04:55 UTC (rev 27407)
+++ trunk/dports/devel/subversion-python24bindings/Portfile 2007-08-02 17:57:17 UTC (rev 27408)
@@ -1,10 +1,10 @@
# $Id$
PortSystem 1.0
-name subversion-pythonbindings
+name subversion-python24bindings
version 1.4.4
categories devel python
-maintainers dluke at geeklair.net
+maintainers blair
description Python bindings for the subversion version control system.
long_description Subversion is a version control system designed to be \
@@ -22,21 +22,28 @@
depends_lib port:expat port:neon \
port:apr port:apr-util \
port:db44 port:subversion \
- port:python25 \
- port:py25-bsddb \
+ port:python24 \
+ port:py-bsddb \
port:gettext
+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_py24/g'"
+ file rename \
+ ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py \
+ ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py24
+}
+
configure.args --with-berkeley-db=${prefix}/include/db44:${prefix}/lib/db44 \
--with-neon=${prefix} --with-apr=${prefix} \
--with-apr-util=${prefix} --without-apxs \
--mandir=\\\${prefix}/share/man \
--disable-neon-version-check \
-configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.5
+configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.4
build.target swig-py
destroot.target install-swig-py DESTDIR=${destroot}
-test.env DYLD_LIBRARY_PATH=${worksrcpath}/subversion/bindings/swig/python/.libs:${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py/.libs:${worksrcpath}/subversion/libsvn_client/.libs:${worksrcpath}/subversion/libsvn_delta/.libs:${worksrcpath}/subversion/libsvn_diff/.libs:${worksrcpath}/subversion/libsvn_fs/.libs:${worksrcpath}/subversion/libsvn_fs_base/.libs:${worksrcpath}/subversion/libsvn_fs_base/bdb/.libs:${worksrcpath}/subversion/libsvn_fs_base/util/.libs:${worksrcpath}/subversion/libsvn_fs_fs/.libs:${worksrcpath}/subversion/libsvn_ra/.libs:${worksrcpath}/subversion/libsvn_ra_dav/.libs:${worksrcpath}/subversion/libsvn_ra_local/.libs:${worksrcpath}/subversion/libsvn_ra_svn/.libs:${worksrcpath}/subversion/libsvn_repos/.libs:${worksrcpath}/subversion/libsvn_subr/.libs:${worksrcpath}/subversion/libsvn_wc/.libs
+test.env DYLD_LIBRARY_PATH=${worksrcpath}/subversion/bindings/swig/python/.libs:${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py24/.libs:${worksrcpath}/subversion/libsvn_client/.libs:${worksrcpath}/subversion/libsvn_delta/.libs:${worksrcpath}/subversion/libsvn_diff/.libs:${worksrcpath}/subversion/libsvn_fs/.libs:${worksrcpath}/subversion/libsvn_fs_base/.libs:${worksrcpath}/subversion/libsvn_fs_base/bdb/.libs:${worksrcpath}/subversion/libsvn_fs_base/util/.libs:${worksrcpath}/subversion/libsvn_fs_fs/.libs:${worksrcpath}/subversion/libsvn_ra/.libs:${worksrcpath}/subversion/libsvn_ra_dav/.libs:${worksrcpath}/subversion/libsvn_ra_local/.libs:${worksrcpath}/subversion/libsvn_ra_svn/.libs:${worksrcpath}/subversion/libsvn_repos/.libs:${worksrcpath}/subversion/libsvn_subr/.libs:${worksrcpath}/subversion/libsvn_wc/.libs
test.run yes
test.target check-swig-py
@@ -48,7 +55,7 @@
${worksrcpath}/libtool
}
-variant no_bdb { depends_lib-delete port:db44 port:py25-bsddb
+variant no_bdb { depends_lib-delete port:db44 port:py-bsddb
configure.args-delete --with-berkeley-db=${prefix}/include/db44:${prefix}/lib/db44
configure.args-append --without-berkeley-db
}
@@ -59,7 +66,7 @@
}
post-destroot {
- set PYTHON_PATH ${prefix}/lib/python2.5
+ set PYTHON_PATH ${prefix}/lib/python2.4
xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages
xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth \
@@ -67,6 +74,9 @@
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.4"
+
file delete "${destroot}/${prefix}/lib/libsvn_client-1.0.0.0.dylib"
file delete "${destroot}/${prefix}/lib/libsvn_fs-1.dylib"
file delete "${destroot}/${prefix}/lib/libsvn_ra_dav-1.0.dylib"
Modified: trunk/dports/devel/subversion-python24bindings/files/svn-python.pth
===================================================================
--- trunk/dports/devel/subversion-pythonbindings/files/svn-python.pth 2007-08-02 17:04:55 UTC (rev 27407)
+++ trunk/dports/devel/subversion-python24bindings/files/svn-python.pth 2007-08-02 17:57:17 UTC (rev 27408)
@@ -1 +1 @@
- at PREFIX@/lib/svn-python
+ at PREFIX@/lib/svn-python2.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070802/0ed3d7a4/attachment.html
More information about the macports-changes
mailing list