summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-04-01 14:57:03 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-04-01 14:57:03 +0000
commit2db3428b2d38ab08d4d0c0516fa764d56769cc3f (patch)
treec54030dfc7712d8de8ea4043290e97742d74193c /dev-python/pysvn
parentRemove old. Remove silly DEPEND. (diff)
downloadhistorical-2db3428b2d38ab08d4d0c0516fa764d56769cc3f.tar.gz
historical-2db3428b2d38ab08d4d0c0516fa764d56769cc3f.tar.bz2
historical-2db3428b2d38ab08d4d0c0516fa764d56769cc3f.zip
Initial import, ebuild from sunrise overlay. Thanks to idl0r and all the others who worked on this in the last 2 years.
Package-Manager: portage-2.2_rc28/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pysvn')
-rw-r--r--dev-python/pysvn/ChangeLog11
-rw-r--r--dev-python/pysvn/Manifest5
-rw-r--r--dev-python/pysvn/files/skip-root-test.patch20
-rw-r--r--dev-python/pysvn/metadata.xml5
-rw-r--r--dev-python/pysvn/pysvn-1.6.3-r1.ebuild87
5 files changed, 128 insertions, 0 deletions
diff --git a/dev-python/pysvn/ChangeLog b/dev-python/pysvn/ChangeLog
new file mode 100644
index 000000000000..d26a318ba19d
--- /dev/null
+++ b/dev-python/pysvn/ChangeLog
@@ -0,0 +1,11 @@
+# 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.1 2009/04/01 14:57:02 patrick Exp $
+
+*pysvn-1.6.3-r1 (01 Apr 2009)
+
+ 01 Apr 2009; Patrick Lauer <patrick@gentoo.org>
+ +files/skip-root-test.patch, +metadata.xml, +pysvn-1.6.3-r1.ebuild:
+ Initial import, ebuild from sunrise overlay. Thanks to idl0r and all the
+ others who worked on this in the last 2 years.
+
diff --git a/dev-python/pysvn/Manifest b/dev-python/pysvn/Manifest
new file mode 100644
index 000000000000..e99f51a9dae2
--- /dev/null
+++ b/dev-python/pysvn/Manifest
@@ -0,0 +1,5 @@
+AUX skip-root-test.patch 1206 RMD160 3e0b72a1b15b59ace598501b6a157b6ea79244bb SHA1 72463d4698e488b6dd49ae15372c42ea7aa5096d SHA256 3e57b9a525b19561d34b666b690c9fa46a7d8817f7eeb9a8b3d6515f8bfabf31
+DIST pysvn-1.6.3.tar.gz 310832 RMD160 aa2b1e02606fc01825eb8d35544863bf93f3ba88 SHA1 bcbc1313a0e832364bff87088e18b2bf1e6598c1 SHA256 85f514b98a5bc9e90c45e8d464940da20be3b2a43b7503fe3337863481918708
+EBUILD pysvn-1.6.3-r1.ebuild 2130 RMD160 465a475485b40123fab0523bd3f978a2d7bfe2ef SHA1 79c89ab3fed186d522c3087f5d01434e52075873 SHA256 a9d6df7703a2da3456c38ceae4d591eecab5b02831156622637b7a72b4261bf1
+MISC ChangeLog 482 RMD160 506a0d176801ad5fd77b4dac291a247da9e92a0f SHA1 d4daa31dbb43aeb855675b53ad4f9ad4a897d892 SHA256 a3e3385bf7a8e5af70d4d5aba4c06c416bf7e51411982d957df2c4caa436b970
+MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a
diff --git a/dev-python/pysvn/files/skip-root-test.patch b/dev-python/pysvn/files/skip-root-test.patch
new file mode 100644
index 000000000000..52c01785f6fc
--- /dev/null
+++ b/dev-python/pysvn/files/skip-root-test.patch
@@ -0,0 +1,20 @@
+--- Tests/pysvn_test_common.mak.old 2008-10-02 22:30:42.000000000 +0200
++++ Tests/pysvn_test_common.mak 2009-03-11 19:22:17.192351068 +0100
+@@ -85,9 +85,14 @@ new-05: test-05.unix.new.log
+ cp test-05.unix.new.log test-05.unix.known_good-$(SVN_VERSION_MAJ_MIN).log
+
+ test-06.unix.new.log: test-06.sh test-06.unix.known_good-$(SVN_VERSION_MAJ_MIN).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-$(SVN_VERSION_MAJ_MIN).log test-06.unix.new.log; fi
++ if [[ $${UID} -ne 0 ]]; \
++ then \
++ rm -f 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-$(SVN_VERSION_MAJ_MIN).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/metadata.xml b/dev-python/pysvn/metadata.xml
new file mode 100644
index 000000000000..301d2207cc29
--- /dev/null
+++ b/dev-python/pysvn/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+</pkgmetadata>
diff --git a/dev-python/pysvn/pysvn-1.6.3-r1.ebuild b/dev-python/pysvn/pysvn-1.6.3-r1.ebuild
new file mode 100644
index 000000000000..209472ee2a1b
--- /dev/null
+++ b/dev-python/pysvn/pysvn-1.6.3-r1.ebuild
@@ -0,0 +1,87 @@
+# 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.6.3-r1.ebuild,v 1.1 2009/04/01 14:57:02 patrick Exp $
+
+inherit eutils 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"
+IUSE="doc examples"
+
+DEPEND="dev-util/subversion"
+# >=dev-python/pycxx-5.5.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${P}/Source"
+
+src_unpack() {
+ python_version
+
+ unpack ${A}
+
+ # skip test test-06 if executed as root otherwise it will fail
+ cd "${S/Source/}"
+ epatch "${FILESDIR}/skip-root-test.patch"
+
+ cd "${S}"
+
+ # since pysvn-1.6.3: These sources are not compatible with python =< 2.5
+ # run the backport command to fix
+ if [[ $PYVER_MAJOR -eq 2 ]] && [[ $PYVER_MINOR -lt 6 ]]; then
+ einfo "prepare sources for python prior 2.6"
+ python setup.py backport || die "backport failed"
+ fi
+
+ # needed to generate the Makefile
+ python setup.py configure || die "configure failed"
+
+ # we want our CFLAGS as well
+ 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):" \
+ -i Makefile \
+ || die "sed failed in Makefile"
+}
+
+src_test() {
+ vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ emake test || die "test-pysvn.so failed"
+ emake -C ../Tests || die "test failed"
+ vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"
+}
+
+src_install() {
+ local sitedir="$(python_get_sitedir)/${PN}"
+
+ cd pysvn/
+
+ exeinto ${sitedir}
+ doexe _pysvn*.so || die "doexe failed"
+ insinto ${sitedir}
+ doins __init__.py || die "doins failed"
+
+ cd ../
+
+ 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 "$(python_get_sitedir)/${PN}"
+}
+
+pkg_postrm() {
+ python_mod_cleanup "$(python_get_sitedir)/${PN}"
+}