Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pysvn: ChangeLog pysvn-1.7.0.ebuild
Date: Sun, 21 Jun 2009 10:32:49
Message-Id: E1MIKLt-0006lf-Nv@stork.gentoo.org
1 patrick 09/06/21 10:32:45
2
3 Modified: ChangeLog
4 Added: pysvn-1.7.0.ebuild
5 Log:
6 Bump to 1.7.0, fixes bug #274848
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 dev-python/pysvn/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pysvn/ChangeLog?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pysvn/ChangeLog?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pysvn/ChangeLog?r1=1.1&r2=1.2
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/pysvn/ChangeLog,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ChangeLog 1 Apr 2009 14:57:02 -0000 1.1
23 +++ ChangeLog 21 Jun 2009 10:32:45 -0000 1.2
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-python/pysvn
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pysvn/ChangeLog,v 1.1 2009/04/01 14:57:02 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pysvn/ChangeLog,v 1.2 2009/06/21 10:32:45 patrick Exp $
29 +
30 +*pysvn-1.7.0 (21 Jun 2009)
31 +
32 + 21 Jun 2009; Patrick Lauer <patrick@g.o> +pysvn-1.7.0.ebuild:
33 + Bump to 1.7.0, fixes bug #274848
34
35 *pysvn-1.6.3-r1 (01 Apr 2009)
36
37
38
39
40 1.1 dev-python/pysvn/pysvn-1.7.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pysvn/pysvn-1.7.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pysvn/pysvn-1.7.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: pysvn-1.7.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-python/pysvn/pysvn-1.7.0.ebuild,v 1.1 2009/06/21 10:32:45 patrick Exp $
50
51 inherit eutils python toolchain-funcs
52
53 DESCRIPTION="Object-oriented python bindings for subversion"
54 HOMEPAGE="http://pysvn.tigris.org/"
55 SRC_URI="http://pysvn.barrys-emacs.org/source_kits/${P}.tar.gz"
56
57 LICENSE="Apache-1.1"
58 SLOT="0"
59 KEYWORDS="~amd64 ~ppc ~x86"
60 IUSE="doc examples"
61
62 DEPEND="dev-util/subversion"
63 # >=dev-python/pycxx-5.5.0"
64 RDEPEND="${DEPEND}"
65
66 S="${WORKDIR}/${P}/Source"
67
68 src_unpack() {
69 python_version
70
71 unpack ${A}
72
73 # skip test test-06 if executed as root otherwise it will fail
74 cd "${S/Source/}"
75 epatch "${FILESDIR}/skip-root-test.patch"
76
77 cd "${S}"
78
79 # since pysvn-1.6.3: These sources are not compatible with python =< 2.5
80 # run the backport command to fix
81 if [[ $PYVER_MAJOR -eq 2 ]] && [[ $PYVER_MINOR -lt 6 ]]; then
82 einfo "prepare sources for python prior 2.6"
83 python setup.py backport || die "backport failed"
84 fi
85
86 # needed to generate the Makefile
87 python setup.py configure || die "configure failed"
88
89 # we want our CFLAGS as well
90 sed -e 's:^\(CCFLAGS=\)\(.*\):\1$(CFLAGS) \2:g' \
91 -e 's:^\(CCCFLAGS=\)\(.*\):\1$(CXXFLAGS) \2:g' \
92 -e "/^CCC=/s:g++:$(tc-getCXX):" \
93 -e "/^CC=/s:gcc:$(tc-getCC):" \
94 -i Makefile \
95 || die "sed failed in Makefile"
96 }
97
98 src_test() {
99 vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
100 emake test || die "test-pysvn.so failed"
101 emake -C ../Tests || die "test failed"
102 vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"
103 }
104
105 src_install() {
106 local sitedir="$(python_get_sitedir)/${PN}"
107
108 cd pysvn/
109
110 exeinto ${sitedir}
111 doexe _pysvn*.so || die "doexe failed"
112 insinto ${sitedir}
113 doins __init__.py || die "doins failed"
114
115 cd ../
116
117 if use doc; then
118 dohtml -r ../Docs/ || die "dohtml failed"
119 fi
120
121 if use examples; then
122 docinto examples
123 dodoc ../Examples/Client/* || die "dodoc examples failed"
124 fi
125 }
126
127 pkg_postinst() {
128 python_mod_optimize "$(python_get_sitedir)/${PN}"
129 }
130
131 pkg_postrm() {
132 python_mod_cleanup "$(python_get_sitedir)/${PN}"
133 }