Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyECLib/, dev-libs/jerasure/, dev-python/PyECLib/files/, ...
Date: Thu, 27 Aug 2015 21:25:53
Message-Id: 1440710521.56240c05e5e9fcbeabef53b465f01dadda09b4bb.prometheanfire@gentoo
1 commit: 56240c05e5e9fcbeabef53b465f01dadda09b4bb
2 Author: Matthew Thode <mthode <AT> mthode <DOT> org>
3 AuthorDate: Thu Aug 27 21:20:34 2015 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 21:22:01 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56240c05
7
8 herd/openstack: Split out libs from dev-python/PyECLib
9
10 gentoo-bug: 558884
11 gentoo-bug: 558886
12
13 dev-libs/gf-complete/Manifest | 1 +
14 dev-libs/gf-complete/gf-complete-0.0.0.ebuild | 30 +++++++++++++
15 dev-libs/gf-complete/metadata.xml | 9 ++++
16 dev-libs/jerasure/Manifest | 1 +
17 dev-libs/jerasure/jerasure-0.0.0.ebuild | 30 +++++++++++++
18 dev-libs/jerasure/metadata.xml | 9 ++++
19 dev-python/PyECLib/PyECLib-1.0.7-r1.ebuild | 33 ---------------
20 dev-python/PyECLib/PyECLib-1.0.7-r2.ebuild | 27 ++++++++++++
21 dev-python/PyECLib/files/PyECLib-usr-local2.patch | 51 +++++++++++++++++++++++
22 9 files changed, 158 insertions(+), 33 deletions(-)
23
24 diff --git a/dev-libs/gf-complete/Manifest b/dev-libs/gf-complete/Manifest
25 new file mode 100644
26 index 0000000..86ef162
27 --- /dev/null
28 +++ b/dev-libs/gf-complete/Manifest
29 @@ -0,0 +1 @@
30 +DIST gf-complete-0.0.0.tar.gz 596339 SHA256 7ec49204d0ce28f9158c65535183f55c0964fad02707234f4982917308ca521b SHA512 7942a29b80972fffab15dc86c560345911db5aa976d2c505804d0eff10c9135f674f3511b579e2bac26342ca53a81d323826a1ff1d790836a4650a07769851a2 WHIRLPOOL 5e8b27c3514300869c42f6af4084dc498b7ad8bc02a2a2b5120038d3598b364f2344f323ca2b2d55c231f1d2d842266305585bab20582fd1bbc752e27323338a
31
32 diff --git a/dev-libs/gf-complete/gf-complete-0.0.0.ebuild b/dev-libs/gf-complete/gf-complete-0.0.0.ebuild
33 new file mode 100644
34 index 0000000..f19f324
35 --- /dev/null
36 +++ b/dev-libs/gf-complete/gf-complete-0.0.0.ebuild
37 @@ -0,0 +1,30 @@
38 +# Copyright 1999-2015 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Id$
41 +
42 +EAPI=5
43 +
44 +inherit autotools eutils
45 +
46 +DESCRIPTION="A Comprehensive Open Source Library for Galois Field Arithmetic"
47 +HOMEPAGE="http://jerasure.org/"
48 +SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/${P}.tar.gz"
49 +S="${WORKDIR}/${PN}.git"
50 +
51 +LICENSE="all-rights-reserved"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86"
54 +IUSE=""
55 +
56 +DEPEND=""
57 +RDEPEND="${DEPEND}"
58 +
59 +src_prepare() {
60 + sed -i -e 's/ -O3 $(SIMD_FLAGS)//g' src/Makefile.am tools/Makefile.am test/Makefile.am examples/Makefile.am|| die
61 + eautoreconf
62 +}
63 +
64 +src_install() {
65 + default
66 + prune_libtool_files
67 +}
68
69 diff --git a/dev-libs/gf-complete/metadata.xml b/dev-libs/gf-complete/metadata.xml
70 new file mode 100644
71 index 0000000..4d82098
72 --- /dev/null
73 +++ b/dev-libs/gf-complete/metadata.xml
74 @@ -0,0 +1,9 @@
75 +<?xml version="1.0" encoding="UTF-8"?>
76 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
77 +<pkgmetadata>
78 + <herd>openstack</herd>
79 + <maintainer>
80 + <email>prometheanfire@g.o</email>
81 + <name>Matthew Thode</name>
82 + </maintainer>
83 +</pkgmetadata>
84
85 diff --git a/dev-libs/jerasure/Manifest b/dev-libs/jerasure/Manifest
86 new file mode 100644
87 index 0000000..54df35a
88 --- /dev/null
89 +++ b/dev-libs/jerasure/Manifest
90 @@ -0,0 +1 @@
91 +DIST jerasure-0.0.0.tar.gz 506400 SHA256 4bb55ed9858cc623849507ca22f854e52d7408251733e46c6f58bea12cd41d14 SHA512 447fc9b4b2e2bb30baa241bc8f509eba71d34b8fc504f2fd6bbc6adb8b6f32d171f4d486dc08afd6f594064e11252a246dd663a1d6beda5b3129c4d9cdaf98db WHIRLPOOL 968f3059ac37fd2a168b067c84f311015f0c37c0b0517d496bd940d3352b5027e4e02c99b6bc918eea9d2dc4d5bf308f3bd6625e19710a0cd03cf6297501b6d5
92
93 diff --git a/dev-libs/jerasure/jerasure-0.0.0.ebuild b/dev-libs/jerasure/jerasure-0.0.0.ebuild
94 new file mode 100644
95 index 0000000..458a416
96 --- /dev/null
97 +++ b/dev-libs/jerasure/jerasure-0.0.0.ebuild
98 @@ -0,0 +1,30 @@
99 +# Copyright 1999-2015 Gentoo Foundation
100 +# Distributed under the terms of the GNU General Public License v2
101 +# $Id$
102 +
103 +EAPI=5
104 +
105 +inherit autotools eutils
106 +
107 +DESCRIPTION="A Library in C Facilitating Erasure Coding for Storage Applications"
108 +HOMEPAGE="http://jerasure.org/"
109 +SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/${P}.tar.gz"
110 +S="${WORKDIR}/${PN}.git"
111 +
112 +LICENSE="all-rights-reserved"
113 +SLOT="0"
114 +KEYWORDS="~amd64 ~x86"
115 +IUSE=""
116 +
117 +DEPEND="dev-libs/gf-complete"
118 +RDEPEND="${DEPEND}"
119 +
120 +src_prepare() {
121 + sed -i -e 's/ $(SIMD_FLAGS)//g' src/Makefile.am Examples/Makefile.am || die
122 + eautoreconf
123 +}
124 +
125 +src_install() {
126 + default
127 + prune_libtool_files
128 +}
129
130 diff --git a/dev-libs/jerasure/metadata.xml b/dev-libs/jerasure/metadata.xml
131 new file mode 100644
132 index 0000000..4d82098
133 --- /dev/null
134 +++ b/dev-libs/jerasure/metadata.xml
135 @@ -0,0 +1,9 @@
136 +<?xml version="1.0" encoding="UTF-8"?>
137 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
138 +<pkgmetadata>
139 + <herd>openstack</herd>
140 + <maintainer>
141 + <email>prometheanfire@g.o</email>
142 + <name>Matthew Thode</name>
143 + </maintainer>
144 +</pkgmetadata>
145
146 diff --git a/dev-python/PyECLib/PyECLib-1.0.7-r1.ebuild b/dev-python/PyECLib/PyECLib-1.0.7-r1.ebuild
147 deleted file mode 100644
148 index 46a3b94..0000000
149 --- a/dev-python/PyECLib/PyECLib-1.0.7-r1.ebuild
150 +++ /dev/null
151 @@ -1,33 +0,0 @@
152 -# Copyright 1999-2015 Gentoo Foundation
153 -# Distributed under the terms of the GNU General Public License v2
154 -# $Id$
155 -
156 -EAPI=5
157 -PYTHON_COMPAT=( python2_7 )
158 -
159 -inherit distutils-r1
160 -
161 -DESCRIPTION="Messaging API for RPC and notifications over a number of different messaging transports"
162 -HOMEPAGE="https://pypi.python.org/pypi/PyECLib"
163 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
164 -
165 -LICENSE="BSD"
166 -SLOT="0"
167 -KEYWORDS="~amd64 ~x86"
168 -IUSE="test"
169 -
170 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
171 -RDEPEND="dev-libs/liberasurecode"
172 -
173 -PATCHES=(
174 - "${FILESDIR}/1.0.7-erasurecode_locations.patch"
175 - "${FILESDIR}/PyECLib-usr-local.patch"
176 -)
177 -
178 -python_install() {
179 - distutils-r1_python_install
180 - # sed -i "s/^libdir.*$/libdir='\/usr\/lib'/g" "${D}"/usr/lib/libgf_complete.la || die
181 - # sed -i "s/^dependency_libs.*$/dependency_libs=''/g" "${D}"/usr/lib/libgf_complete.la "${D}"/usr/lib/libJerasure.la || die
182 - # package installs broken la files...
183 - rm "${D}"/usr/lib/*.la || die
184 -}
185
186 diff --git a/dev-python/PyECLib/PyECLib-1.0.7-r2.ebuild b/dev-python/PyECLib/PyECLib-1.0.7-r2.ebuild
187 new file mode 100644
188 index 0000000..12215bf
189 --- /dev/null
190 +++ b/dev-python/PyECLib/PyECLib-1.0.7-r2.ebuild
191 @@ -0,0 +1,27 @@
192 +# Copyright 1999-2015 Gentoo Foundation
193 +# Distributed under the terms of the GNU General Public License v2
194 +# $Id$
195 +
196 +EAPI=5
197 +PYTHON_COMPAT=( python2_7 )
198 +
199 +inherit distutils-r1 eutils multilib
200 +
201 +DESCRIPTION="Messaging API for RPC and notifications over a number of different messaging transports"
202 +HOMEPAGE="https://pypi.python.org/pypi/PyECLib"
203 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
204 +
205 +LICENSE="BSD"
206 +SLOT="0"
207 +KEYWORDS="~amd64 ~x86"
208 +IUSE="test"
209 +
210 +CDEPEND="dev-libs/jerasure"
211 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
212 + ${CDEPEND}"
213 +RDEPEND="dev-libs/liberasurecode
214 + ${CDEPEND}"
215 +
216 +PATCHES=(
217 + "${FILESDIR}/PyECLib-usr-local2.patch"
218 +)
219
220 diff --git a/dev-python/PyECLib/files/PyECLib-usr-local2.patch b/dev-python/PyECLib/files/PyECLib-usr-local2.patch
221 new file mode 100644
222 index 0000000..c0b23d4
223 --- /dev/null
224 +++ b/dev-python/PyECLib/files/PyECLib-usr-local2.patch
225 @@ -0,0 +1,51 @@
226 +--- setup.py 2015-08-27 14:33:44.643517647 -0500
227 ++++ setup.py.new 2015-08-27 14:34:05.202517349 -0500
228 +@@ -60,13 +60,12 @@
229 +
230 + default_library_paths = [default_python_libdir,
231 + ('%s/usr/local/lib' % _exec_prefix),
232 +- '/lib', '/usr/lib', '/usr/local/lib',
233 +- 'src/c/liberasurecode-1.0.7/src/.libs']
234 ++ '/lib', '/usr/lib', '/usr/local/lib']
235 +
236 + default_include_paths = [default_python_incdir,
237 + '/usr/local/include', '/usr/local/include/jerasure',
238 + '/usr/include', 'src/c/pyeclib_c',
239 +- '/usr/local/include']
240 ++ '/usr/include/liberasurecode', '/usr/local/include']
241 +
242 + libflags = ''
243 + includeflags = ''
244 +@@ -120,6 +119,7 @@
245 + if (os.path.isfile(library_file_path)):
246 + missing = False
247 + break
248 ++ missing = False
249 + if missing:
250 + # try using an integrated copy of the library
251 + srcpath = "src/c/"
252 +@@ -228,24 +228,6 @@
253 + ldpath_str = "DYLD_LIBRARY_PATH"
254 + else:
255 + ldpath_str = "LD_LIBRARY_PATH"
256 +- print("***************************************************")
257 +- print("** ")
258 +- print("** PyECLib libraries have been installed to: ")
259 +- print("** %susr/local/lib" % installroot)
260 +- print("** ")
261 +- print("** Any user using this library must update: ")
262 +- print("** %s" % ldpath_str)
263 +- print("** ")
264 +- print("** Run 'ldconfig' or place this line: ")
265 +- print("** export %s=%s" % (ldpath_str, "%susr/local/lib"
266 +- % installroot))
267 +- print("** ")
268 +- print("** into .bashrc, .profile, or the appropriate shell")
269 +- print("** start-up script! Also look at ldconfig(8) man ")
270 +- print("** page for a more static LD configuration ")
271 +- print("** ")
272 +- print("***************************************************")
273 +-
274 +
275 + module = Extension('pyeclib_c',
276 + define_macros=[('MAJOR VERSION', '0'),