summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-17 06:36:55 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-17 06:36:55 +0000
commit97a52cee3ac41d7d059577e22dc40046f77d95f0 (patch)
tree527e7c4cdd262b9b7c24954bbfbe1effb3395cd2 /dev-python
parentFix paths passed to python_mod_optimize() and python_mod_cleanup() (bug #2883... (diff)
downloadhistorical-97a52cee3ac41d7d059577e22dc40046f77d95f0.tar.gz
historical-97a52cee3ac41d7d059577e22dc40046f77d95f0.tar.bz2
historical-97a52cee3ac41d7d059577e22dc40046f77d95f0.zip
Version bump (bug #289376). Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-14615-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pysvn/ChangeLog8
-rw-r--r--dev-python/pysvn/Manifest5
-rw-r--r--dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch17
-rw-r--r--dev-python/pysvn/pysvn-1.7.1.ebuild102
4 files changed, 130 insertions, 2 deletions
diff --git a/dev-python/pysvn/ChangeLog b/dev-python/pysvn/ChangeLog
index 7048c6473fb4..f9c95c7c5cd6 100644
--- a/dev-python/pysvn/ChangeLog
+++ b/dev-python/pysvn/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pysvn
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pysvn/ChangeLog,v 1.4 2009/10/08 20:26:20 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pysvn/ChangeLog,v 1.5 2009/10/17 06:36:54 arfrever Exp $
+
+*pysvn-1.7.1 (17 Oct 2009)
+
+ 17 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +pysvn-1.7.1.ebuild, +files/pysvn-1.7.1-skip_root_test.patch:
+ Version bump (bug #289376). Set SUPPORT_PYTHON_ABIS.
08 Oct 2009; Fabian Groffen <grobian@gentoo.org> pysvn-1.7.0.ebuild,
+files/pysvn-1.7.0-darwin-freebsd.patch:
diff --git a/dev-python/pysvn/Manifest b/dev-python/pysvn/Manifest
index ca25bf74f2ce..9a28539c2527 100644
--- a/dev-python/pysvn/Manifest
+++ b/dev-python/pysvn/Manifest
@@ -1,6 +1,9 @@
AUX pysvn-1.7.0-darwin-freebsd.patch 3424 RMD160 72ef610f51553867cf77b9cff2c8ef4af4b6b980 SHA1 9a2fe1b43ebc85ae0fe2bb5df9401a00bdfd3a5f SHA256 13aecd8a489ba8f237e0ebf6ee05a65729d83a0267e41f17fa98159f213449e9
+AUX pysvn-1.7.1-skip_root_test.patch 985 RMD160 e5479747d3d2eaf6be704d8a62aabb1b6ac7081c SHA1 4c84c61555bfede768a3cf3d54cf988e319800a4 SHA256 1ee21a57a9765b07e955a5ce5386153d68c90d35528ddbc4fb5020ae3d70b96d
AUX skip-root-test.patch 1206 RMD160 3e0b72a1b15b59ace598501b6a157b6ea79244bb SHA1 72463d4698e488b6dd49ae15372c42ea7aa5096d SHA256 3e57b9a525b19561d34b666b690c9fa46a7d8817f7eeb9a8b3d6515f8bfabf31
DIST pysvn-1.7.0.tar.gz 324484 RMD160 e343fd373559d138e7b8414034527a3721566594 SHA1 96f5217e7d74dbb2eee52e490e79d97b3959b0f0 SHA256 55ae53e2e05fc7099c329a08f13a9b5d216b620cdba9f4036e3de0115601f505
+DIST pysvn-1.7.1.tar.gz 321975 RMD160 dd4ac03699482452d672ed3e1460820e51de14ad SHA1 ad3bce1a5080afac381b1bdeccd123e12fd895c1 SHA256 0dee58f80af0221b574d2809a552f3b5380ad7f2d916035602a6d1efe01becff
EBUILD pysvn-1.7.0.ebuild 2349 RMD160 8bc8b140aa82f0f1896c066b174f6049ee22756c SHA1 5008f51262ac6d06171ec5487a69f7ffbb5efb12 SHA256 e15742004c09b0a849137a191c3f4f07318b700ad3579beefe76458c85bc476e
-MISC ChangeLog 940 RMD160 772f10231b320db9e6e41c4c908be100e7b7ef14 SHA1 ab3f013d965d8f4daa3071ee02e25164da588ff6 SHA256 7519ba9dddc344b711e41af01dffc211e89827e49c8947c1a3d6ced762614e84
+EBUILD pysvn-1.7.1.ebuild 2524 RMD160 bd4e175c5911835f648ca9c5c058201b3e3ab906 SHA1 92e8328da7676760ffd7e2ff5f6380c3ac92008f SHA256 b435fb2ac3eed21d4614457652d72da1ab546e6284492727d6296cdf00d061ba
+MISC ChangeLog 1162 RMD160 da3457ec274c343bd9d14e0ed6f66ad8bd4f778c SHA1 a52107e216c9980a820a2647b4d6d4e1db14a87c SHA256 2cb4c5696615b94f12c55056383f7f0bb336c9f817a26258e5b064fcc97d2127
MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a
diff --git a/dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch b/dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch
new file mode 100644
index 000000000000..90f0fff48f07
--- /dev/null
+++ b/dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch
@@ -0,0 +1,17 @@
+--- Tests/pysvn_test_common.mak
++++ Tests/pysvn_test_common.mak
+@@ -89,8 +89,12 @@
+
+ test-06.unix.new.log: test-06.sh test-06.unix.known_good-$(KNOWN_GOOD_VERSION).log
+ -rm -rf testroot-06
+- if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then PATH=$(SVN_BIN_DIR):$(PATH) PYTHON=$(PYTHON) ./test-06.sh >test-06.unix.new.log 2>&1; fi
+- if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then $(PYTHON) benchmark_diff.py test-06.unix.known_good-$(KNOWN_GOOD_VERSION).log test-06.unix.new.log; fi
++ if [[ $${UID} -ne 0 ]]; \
++ if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then PATH=$(SVN_BIN_DIR):$(PATH) PYTHON=$(PYTHON) ./test-06.sh >test-06.unix.new.log 2>&1; fi \
++ if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then $(PYTHON) benchmark_diff.py test-06.unix.known_good-$(KNOWN_GOOD_VERSION).log test-06.unix.new.log; fi \
++ else \
++ echo "Skipping $@, Reason: executed as root"; \
++ fi
+
+ clean-06:
+ -rm -f test-06.unix.new.log
diff --git a/dev-python/pysvn/pysvn-1.7.1.ebuild b/dev-python/pysvn/pysvn-1.7.1.ebuild
new file mode 100644
index 000000000000..0b88a762b2a5
--- /dev/null
+++ b/dev-python/pysvn/pysvn-1.7.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pysvn/pysvn-1.7.1.ebuild,v 1.1 2009/10/17 06:36:54 arfrever Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils multilib python toolchain-funcs
+
+DESCRIPTION="Object-oriented python bindings for subversion"
+HOMEPAGE="http://pysvn.tigris.org/"
+SRC_URI="http://pysvn.barrys-emacs.org/source_kits/${P}.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-freebsd ~ppc-macos"
+IUSE="doc examples"
+
+DEPEND="dev-util/subversion
+ >=dev-python/pycxx-5.5.0"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Skip test test-06 if executed as root to avoid failure.
+ epatch "${FILESDIR}/${P}-skip_root_test.patch"
+
+ epatch "${FILESDIR}/${PN}-1.7.0-darwin-freebsd.patch"
+
+ # Don't use internal copy of dev-python/pycxx.
+ rm -fr Import
+
+ python_copy_sources --no-link
+
+ preparation() {
+ cd Source
+ if has "${PYTHON_ABI}" 2.4 2.5; then
+ "$(PYTHON)" setup.py backport || die "Backport failed"
+ fi
+ }
+ python_execute_function -s preparation
+}
+
+src_configure() {
+ configuration() {
+ cd Source
+ "$(PYTHON)" setup.py configure --apr-inc-dir="${EPREFIX}/usr/include/apr-1" --svn-root-dir="${EPREFIX}/usr" || die "Configuration failed with Python {PYTHON_ABI}"
+
+ sed -e 's:^\(CCFLAGS=\)\(.*\):\1$(CFLAGS) \2:g' \
+ -e 's:^\(CCCFLAGS=\)\(.*\):\1$(CXXFLAGS) \2:g' \
+ -e "/^CCC=/s:g++:$(tc-getCXX):" \
+ -e "/^CC=/s:gcc:$(tc-getCC):" \
+ -e "/^LDSHARED=/s:g++:$(tc-getCXX):" \
+ -i Makefile \
+ || die "sed failed in Makefile"
+ }
+ python_execute_function -s configuration
+}
+
+src_compile() {
+ building() {
+ cd Source
+ emake || die "emake failed with Python ${PYTHON_ABI}"
+ }
+ python_execute_function -s building
+}
+
+src_test() {
+ testing() {
+ cd Source
+ emake test || die "test-pysvn.so failed with Python ${PYTHON_ABI}"
+ emake -C ../Tests || die "Tests failed with Python ${PYTHON_ABI}"
+ }
+ python_execute_function -s testing
+}
+
+src_install() {
+ installation() {
+ cd Source/pysvn
+ exeinto "$(python_get_sitedir)/pysvn"
+ doexe _pysvn*$(get_modname) || die "doexe failed"
+ insinto "$(python_get_sitedir)/pysvn"
+ doins __init__.py || die "doins failed"
+ }
+ python_execute_function -s installation
+
+ if use doc; then
+ dohtml -r ../Docs/ || die "dohtml failed"
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc ../Examples/Client/* || die "dodoc examples failed"
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize pysvn
+}
+
+pkg_postrm() {
+ python_mod_cleanup pysvn
+}