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