Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysvn/, dev-python/pysvn/files/
Date: Thu, 17 Dec 2015 10:48:03
Message-Id: 1450349275.b1f960073ca686cb5bdf51bdf470f9f6a1960840.jlec@gentoo
1 commit: b1f960073ca686cb5bdf51bdf470f9f6a1960840
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 17 10:44:49 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 17 10:47:55 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1f96007
7
8 dev-python/pysvn: Version Bump
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568392
11
12 Package-Manager: portage-2.2.26
13 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
14
15 dev-python/pysvn/Manifest | 1 +
16 .../pysvn/files/pysvn-1.8.0-respect_flags.patch | 99 ++++++++++++++++++++++
17 dev-python/pysvn/pysvn-1.8.0.ebuild | 60 +++++++++++++
18 3 files changed, 160 insertions(+)
19
20 diff --git a/dev-python/pysvn/Manifest b/dev-python/pysvn/Manifest
21 index 7af5410..5db2a53 100644
22 --- a/dev-python/pysvn/Manifest
23 +++ b/dev-python/pysvn/Manifest
24 @@ -1,2 +1,3 @@
25 DIST pysvn-1.7.10.tar.gz 352631 SHA256 cb8a7eca9fd5d077f4b086c79cc1115a2f38a37979eee836ff258b4da0aee517 SHA512 3404ce53f974ff91a7eecea29176f6b71f1dbb37a716880dfd3d2961d4c6e0c81f87aa46308994d4f7ed6a6cbca7f7451753e1de43ce95fef4443fc5f70ff3aa WHIRLPOOL 99ac425ad2e19355521c73947cf33b2c5bff0023af686d699fdfcd7abc8c5f965974c9762b0dbd3ae3cddfc833e35ac549af1de54ca2472d1354a8fa126e8c36
26 DIST pysvn-1.7.9.tar.gz 352320 SHA256 8a58ea6405e5f5ffd0850fc5ed6bc29a93b3573da099293f49ef3241e5be1692 SHA512 966f9b57f63abc68d82a0f0f0d710d3109c2bd515eb0b0dacdca140b0db32154c802d27b4f79062da19f0d18ff6332b729c6f9c06e0a74742161a00b74bef7aa WHIRLPOOL 53f27a30ce97b723fe0d1a8540221e25e593fc00789eab7b6e2814f3ffe3ff8f485523ad7fe3bff7c1b5d101fb87d694a1c18111d2523895835ea72ea1ee6aab
27 +DIST pysvn-1.8.0.tar.gz 366583 SHA256 39596f4884ed689cdb5a4e210e421724302a566c7ba756cc4d46bbfeb0c8326b SHA512 14a70b910be986eba638a903edde5046c93314fedb08a7c15d464dc51da1c7efeb87147cc68c00ff9ac1b4ca506d099d3aedf7e4d86f92642c7304ef9540653b WHIRLPOOL 90a795f4d6a1c353321a116f5676741ce2121122de0426d045893e2688cc10bcd248ffef98da6d920daba70e2406ce136fed972e8172b7e648c6dd02f04e608d
28
29 diff --git a/dev-python/pysvn/files/pysvn-1.8.0-respect_flags.patch b/dev-python/pysvn/files/pysvn-1.8.0-respect_flags.patch
30 new file mode 100644
31 index 0000000..9b4c3a0
32 --- /dev/null
33 +++ b/dev-python/pysvn/files/pysvn-1.8.0-respect_flags.patch
34 @@ -0,0 +1,99 @@
35 + Source/setup_configure.py | 26 +++++++++++++-------------
36 + 1 file changed, 13 insertions(+), 13 deletions(-)
37 +
38 +diff --git a/Source/setup_configure.py b/Source/setup_configure.py
39 +index afeee2d..47f2717 100644
40 +--- a/Source/setup_configure.py
41 ++++ b/Source/setup_configure.py
42 +@@ -849,8 +849,8 @@ class CompilerGCC(Compiler):
43 + def __init__( self, setup ):
44 + Compiler.__init__( self, setup )
45 +
46 +- self._addVar( 'CCC', 'g++' )
47 +- self._addVar( 'CC', 'gcc' )
48 ++ self._addVar( 'CCC', '$(CXX)' )
49 ++ self._addVar( 'CC', '$(CC)' )
50 +
51 + def getPythonExtensionFileExt( self ):
52 + return '.so'
53 +@@ -976,8 +976,8 @@ class MacOsxCompilerGCC(CompilerGCC):
54 + else:
55 + arch_options = ''
56 +
57 +- self._addVar( 'CCC', 'g++ %s' % (arch_options,) )
58 +- self._addVar( 'CC', 'gcc %s' % (arch_options,) )
59 ++ self._addVar( 'CCC', '$(CXX) %s' % (arch_options,) )
60 ++ self._addVar( 'CC', '$(CC) %s' % (arch_options,) )
61 +
62 + self._find_paths_pycxx_dir = [
63 + '../Import/pycxx-%d.%d.%d' % pycxx_version,
64 +@@ -1032,11 +1032,11 @@ class MacOsxCompilerGCC(CompilerGCC):
65 +
66 + def setupUtilities( self ):
67 + self._addVar( 'CCCFLAGS',
68 +- '-g '
69 ++ '$(CXXFLAGS) '
70 + '-Wall -fPIC -fexceptions -frtti '
71 + '-I. -I%(APR_INC)s -I%(APU_INC)s -I%(SVN_INC)s '
72 + '-D%(DEBUG)s' )
73 +- self._addVar( 'LDEXE', '%(CCC)s -g' )
74 ++ self._addVar( 'LDEXE', '$(CXX) $(LDFLAGS)' )
75 +
76 + def setupPySvn( self ):
77 + self._pysvnModuleSetup()
78 +@@ -1048,7 +1048,7 @@ class MacOsxCompilerGCC(CompilerGCC):
79 + self._addVar( 'PYTHON_INC', distutils.sysconfig.get_python_inc() )
80 +
81 + py_cflags_list = [
82 +- '-g',
83 ++ '$(CXXFLAGS) ',
84 + '-Wall -fPIC -fexceptions -frtti',
85 + '-I. -I%(APR_INC)s -I%(APU_INC)s -I%(SVN_INC)s',
86 + '-DPYCXX_PYTHON_2TO3 -I%(PYCXX)s -I%(PYCXX_SRC)s -I%(PYTHON_INC)s',
87 +@@ -1074,13 +1074,12 @@ class MacOsxCompilerGCC(CompilerGCC):
88 +
89 + self._addVar( 'CCCFLAGS', ' '.join( py_cflags_list ) )
90 + self._addVar( 'LDLIBS', ' '.join( py_ld_libs ) )
91 +- self._addVar( 'LDSHARED', '%(CCC)s -bundle -g '
92 ++ self._addVar( 'LDSHARED', '$(CXX) $(LDFLAGS) -bundle '
93 + '-framework System '
94 + '%(PYTHON_FRAMEWORK)s '
95 + '-framework CoreFoundation '
96 + '-framework Kerberos '
97 +- '-framework Security '
98 +- '%(LDLIBS)s' )
99 ++ '-framework Security' )
100 +
101 + class UnixCompilerGCC(CompilerGCC):
102 + def __init__( self, setup ):
103 +@@ -1140,11 +1139,11 @@ class UnixCompilerGCC(CompilerGCC):
104 +
105 + def setupUtilities( self ):
106 + self._addVar( 'CCCFLAGS',
107 +- '-g '
108 ++ '$(CXXFLAGS) '
109 + '-Wall -fPIC -fexceptions -frtti '
110 + '-I. -I%(APR_INC)s -I%(APU_INC)s -I%(SVN_INC)s '
111 + '-D%(DEBUG)s' )
112 +- self._addVar( 'LDEXE', '%(CCC)s -g' )
113 ++ self._addVar( 'LDEXE', '$(CXX) $(LDFLAGS)' )
114 +
115 + def setupPySvn( self ):
116 + self._pysvnModuleSetup()
117 +@@ -1155,6 +1154,7 @@ class UnixCompilerGCC(CompilerGCC):
118 + self._addVar( 'PYTHON_ARCH_SPECIFIC_INC', distutils.sysconfig.get_python_inc( True ) )
119 +
120 + py_cflags_list = [
121 ++ '$(CXXFLAGS)',
122 + '-Wall -fPIC -fexceptions -frtti',
123 + '-I. -I%(APR_INC)s -I%(APU_INC)s -I%(SVN_INC)s',
124 + '-DPYCXX_PYTHON_2TO3 -I%(PYCXX)s -I%(PYCXX_SRC)s -I%(PYTHON_INC)s',
125 +@@ -1176,7 +1176,7 @@ class UnixCompilerGCC(CompilerGCC):
126 +
127 + self._addVar( 'CCCFLAGS', ' '.join( py_cflags_list ) )
128 + self._addVar( 'LDLIBS', ' '.join( self._getLdLibs() ) )
129 +- self._addVar( 'LDSHARED', '%(CCC)s -shared -g' )
130 ++ self._addVar( 'LDSHARED', '$(CXX) $(LDFLAGS) -shared' )
131 +
132 + #--------------------------------------------------------------------------------
133 + class LinuxCompilerGCC(UnixCompilerGCC):
134
135 diff --git a/dev-python/pysvn/pysvn-1.8.0.ebuild b/dev-python/pysvn/pysvn-1.8.0.ebuild
136 new file mode 100644
137 index 0000000..2f797d4
138 --- /dev/null
139 +++ b/dev-python/pysvn/pysvn-1.8.0.ebuild
140 @@ -0,0 +1,60 @@
141 +# Copyright 1999-2015 Gentoo Foundation
142 +# Distributed under the terms of the GNU General Public License v2
143 +# $Id$
144 +
145 +EAPI=5
146 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
147 +
148 +inherit eutils distutils-r1 toolchain-funcs
149 +
150 +DESCRIPTION="Object-oriented python bindings for subversion"
151 +HOMEPAGE="http://pysvn.tigris.org/"
152 +SRC_URI="http://pysvn.barrys-emacs.org/source_kits/${P}.tar.gz"
153 +
154 +LICENSE="Apache-1.1"
155 +SLOT="0"
156 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
157 +IUSE="doc examples"
158 +
159 +DEPEND="
160 + >=dev-python/pycxx-6.2.6[${PYTHON_USEDEP}]
161 + dev-vcs/subversion"
162 +RDEPEND="${DEPEND}"
163 +
164 +PATCHES=( "${FILESDIR}"/${P}-respect_flags.patch )
165 +
166 +DISTUTILS_IN_SOURCE_BUILD=true
167 +
168 +python_prepare_all() {
169 + # Don't use internal copy of dev-python/pycxx.
170 + rm -r Import || die
171 +
172 + distutils-r1_python_prepare_all
173 +}
174 +
175 +python_configure() {
176 + cd Source || die
177 + # all config options from 1.7.6 are all already set
178 + esetup.py configure
179 +}
180 +
181 +python_compile() {
182 + cd Source || die
183 + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
184 +}
185 +
186 +python_test() {
187 + cd Tests || die
188 + emake
189 +}
190 +
191 +python_install() {
192 + cd Source || die
193 + python_domodule pysvn
194 +}
195 +
196 +python_install_all() {
197 + use doc && local HTML_DOCS=( Docs/. )
198 + use examples && local EXAMPLES=( Examples/Client/. )
199 + distutils-r1_python_install_all
200 +}