Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcap-ng/files/, sys-libs/libcap-ng/
Date: Wed, 17 Feb 2016 16:04:08
Message-Id: 1455725032.8c69c05cabd3207eb37a135eac0525fd886ad845.vapier@gentoo
1 commit: 8c69c05cabd3207eb37a135eac0525fd886ad845
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 17 07:21:25 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 17 16:03:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c69c05c
7
8 sys-libs/libcap-ng: drop old <0.7.7 versions
9
10 sys-libs/libcap-ng/Manifest | 5 -
11 .../files/libcap-ng-0.7.5-add-unistd_h.patch | 20 ----
12 sys-libs/libcap-ng/libcap-ng-0.6.6.ebuild | 117 ---------------------
13 sys-libs/libcap-ng/libcap-ng-0.7.3.ebuild | 115 --------------------
14 sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild | 92 ----------------
15 sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild | 93 ----------------
16 sys-libs/libcap-ng/libcap-ng-0.7.6.ebuild | 93 ----------------
17 7 files changed, 535 deletions(-)
18
19 diff --git a/sys-libs/libcap-ng/Manifest b/sys-libs/libcap-ng/Manifest
20 index 52418a0..1f99af6 100644
21 --- a/sys-libs/libcap-ng/Manifest
22 +++ b/sys-libs/libcap-ng/Manifest
23 @@ -1,6 +1 @@
24 -DIST libcap-ng-0.6.6.tar.gz 367231 SHA256 89589a29a6b19068edd650dd4f626c10e84bfe63eacae7b1fd1f98f3ac8ea00d SHA512 383aaa9e315e2498c779a17bef35df6aee072c42598d07d92bdd7a2328a3bcd22d5ec46d600babc467aa4d1b01e9dd660493dafba3b06c7ac81f35df9d4d6e3e WHIRLPOOL c1a72480d545b45ae385065449098f0878f8c8d138f1d9bd9b3445d1146fd6a227bb9b0ac0148542995c5b6683c7c5998d0cd61a369b9f5c84fb39a9dc5cf8a3
25 -DIST libcap-ng-0.7.3.tar.gz 392613 SHA256 5ca441c8d3a1e4cfe8a8151907977662679457311ccaa7eaac91447c33a35bb1 SHA512 f03a35c54b5998ef2e712540caa1f4ade37f9abe60992a1e727142b26815a4b8a7ce86ea94466fe692e4798c7297e5e1bbd338e5afe05689905ee9e0c0f16ef2 WHIRLPOOL 7752a70ea348dfc52537f67d5dccab03d598a112a7263a8811987453b53cda58643e938b4651c5cd8d0ea02f20fddc10bff2ac8bc23f68f97c9ab8c5791429ab
26 -DIST libcap-ng-0.7.4.tar.gz 407007 SHA256 48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b SHA512 443b92f44cffd4b436a2651eb3539c560382102d918faf63f993d3b6627c03e80f7b4a5105ddb040890ef82122a42ca6881795ab0639de337f693705f5506cf0 WHIRLPOOL 3d62f26fad8c9e7756374022982a4f2fcdde5af5532474dfa7eb6ba1bc7f97984691bdda8975ef32423b8e86af2462ef672ba3175a3121a484c46096cc8f10b2
27 -DIST libcap-ng-0.7.5.tar.gz 409426 SHA256 7ba01e73c027e4f17bff6cdd77c01b25987e58ed14e422a437e14df6e2dbca31 SHA512 947ec84037c6c383e47d7e15168058b01a0a6eddf73c94cea7e1d4c8b27af1d646b483abdf14d3aa8ecb35fda2ead803f8596aed023a7e5ff9396690313c24a1 WHIRLPOOL 8dc79529034f5ad2c4c8cc514157adfd9097b902647240134be82bd2bc2eb590adadb74c71f4324788702a0694d612ab0f5bdb9c0ddfc688407505ad23a39132
28 -DIST libcap-ng-0.7.6.tar.gz 417329 SHA256 9de3caebcc6248f3e9f8c278068253dee89c39d7ffcd284a10fc6ce2b06a2dff SHA512 838b8731d10c4adcfbc5fd1199d60f831dcb4e69cb3a645bd9e5c284c883ddbdc48289d696ecbed47a782112403210b685816935d2eec38f344adc1051d357fe WHIRLPOOL 3863f22d74e22cdfd88fc329a8f616fda1e846ed8489dcfe3a5bceeb76d847fce4b7fc3ac4166429b1e1c37691ac5b085e08c790b1c274b52551678797b7d4c3
29 DIST libcap-ng-0.7.7.tar.gz 420178 SHA256 615549ce39b333f6b78baee0c0b4ef18bc726c6bf1cca123dfd89dd963f6d06b SHA512 eb049b29fdd31aa31c6c14ca023df62c2910504c1edd1242dba13579d0befae5b98249c22c145517bd5451969a0b186390dc11b2269e58001336e10c855e920c WHIRLPOOL 5d376b8d12ed8c19ca649095297e6016e86e5ad6112fd12685929bdd5f3c34bbcdf9c1c61cad44f44d3784192ca37df1a77c478e5fc15dacb20a2561ee945652
30
31 diff --git a/sys-libs/libcap-ng/files/libcap-ng-0.7.5-add-unistd_h.patch b/sys-libs/libcap-ng/files/libcap-ng-0.7.5-add-unistd_h.patch
32 deleted file mode 100644
33 index bfeef6e..0000000
34 --- a/sys-libs/libcap-ng/files/libcap-ng-0.7.5-add-unistd_h.patch
35 +++ /dev/null
36 @@ -1,20 +0,0 @@
37 -utils/proc-llist.c: include <unistd.h>
38 -
39 -proc-llist.c references pid_t and uid_t types but does not include <unistd.h>. This
40 -works on glibc and uClibc because of the way their headers stack, but on musl (and
41 -possible other libc) this fails. POSIX mandates that <unistd.h> provides these. See
42 -Issue 6 at http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html.
43 -
44 -Signed-off-by: Anthony G. Basile <blueness@g.o>
45 -
46 -diff -Nuar libcap-ng-0.7.5.orig/utils/proc-llist.c libcap-ng-0.7.5/utils/proc-llist.c
47 ---- libcap-ng-0.7.5.orig/utils/proc-llist.c 2015-02-18 17:13:33.000000000 -0500
48 -+++ libcap-ng-0.7.5/utils/proc-llist.c 2015-05-25 13:39:32.196624248 -0400
49 -@@ -24,6 +24,7 @@
50 - #include "config.h"
51 - #include <stdlib.h>
52 - #include <string.h>
53 -+#include <unistd.h>
54 - #include "proc-llist.h"
55 -
56 - void list_create(llist *l)
57
58 diff --git a/sys-libs/libcap-ng/libcap-ng-0.6.6.ebuild b/sys-libs/libcap-ng/libcap-ng-0.6.6.ebuild
59 deleted file mode 100644
60 index 5de6541..0000000
61 --- a/sys-libs/libcap-ng/libcap-ng-0.6.6.ebuild
62 +++ /dev/null
63 @@ -1,117 +0,0 @@
64 -# Copyright 1999-2012 Gentoo Foundation
65 -# Distributed under the terms of the GNU General Public License v2
66 -# $Id$
67 -
68 -EAPI=4
69 -
70 -SUPPORT_PYTHON_ABIS="1"
71 -RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
72 -
73 -inherit autotools flag-o-matic python
74 -
75 -DESCRIPTION="POSIX 1003.1e capabilities"
76 -HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/"
77 -SRC_URI="https://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
78 -
79 -LICENSE="LGPL-2.1"
80 -SLOT="0"
81 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
82 -IUSE="python static-libs"
83 -
84 -RDEPEND="sys-apps/attr
85 - python? ( dev-lang/python )"
86 -DEPEND="${RDEPEND}
87 - sys-kernel/linux-headers
88 - python? ( >=dev-lang/swig-2 )"
89 -
90 -PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
91 -
92 -pkg_setup() {
93 - use python && python_pkg_setup
94 -}
95 -
96 -src_prepare() {
97 - # Disable byte-compilation of Python modules.
98 - >py-compile
99 -
100 - # Python bindings are built/tested/installed manually.
101 - sed -i -e "/^SUBDIRS/s/ python//" bindings/Makefile.am || die
102 -
103 - eautoreconf
104 -
105 - use sparc && replace-flags -O? -O0
106 -}
107 -
108 -src_configure() {
109 - econf \
110 - $(use_enable static-libs static) \
111 - $(use_with python)
112 -}
113 -
114 -src_compile() {
115 - default
116 -
117 - if use python; then
118 - python_copy_sources bindings/python
119 -
120 - building() {
121 - emake \
122 - CFLAGS="${CFLAGS}" \
123 - PYTHON_VERSION="$(python_get_version)" \
124 - pyexecdir="$(python_get_sitedir)" \
125 - pythondir="$(python_get_sitedir)"
126 - }
127 - python_execute_function -s --source-dir bindings/python building
128 - fi
129 -}
130 -
131 -src_test() {
132 - if [[ "${EUID}" -eq 0 ]]; then
133 - ewarn "Skipping tests due to root permissions."
134 - return
135 - fi
136 -
137 - default
138 -
139 - if use python; then
140 - testing() {
141 - emake \
142 - PYTHON_VERSION="$(python_get_version)" \
143 - pyexecdir="$(python_get_sitedir)" \
144 - pythondir="$(python_get_sitedir)" \
145 - TESTS_ENVIRONMENT="PYTHONPATH=..:../.libs" \
146 - check
147 - }
148 - python_execute_function -s --source-dir bindings/python testing
149 - fi
150 -}
151 -
152 -src_install() {
153 - emake DESTDIR="${D}" install
154 -
155 - if use python; then
156 - installation() {
157 - emake \
158 - DESTDIR="${D}" \
159 - PYTHON_VERSION="$(python_get_version)" \
160 - pyexecdir="$(python_get_sitedir)" \
161 - pythondir="$(python_get_sitedir)" \
162 - install
163 - }
164 - python_execute_function -s --source-dir bindings/python installation
165 -
166 - python_clean_installation_image
167 - fi
168 -
169 - dodoc AUTHORS ChangeLog README
170 -
171 - rm -f "${ED}"/usr/lib*/${PN}.la
172 -}
173 -
174 -pkg_postinst() {
175 - use python && python_mod_optimize capng.py
176 -}
177 -
178 -pkg_postrm() {
179 - use python && python_mod_cleanup capng.py
180 -}
181
182 diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.3.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.3.ebuild
183 deleted file mode 100644
184 index 9d49df9..0000000
185 --- a/sys-libs/libcap-ng/libcap-ng-0.7.3.ebuild
186 +++ /dev/null
187 @@ -1,115 +0,0 @@
188 -# Copyright 1999-2014 Gentoo Foundation
189 -# Distributed under the terms of the GNU General Public License v2
190 -# $Id$
191 -
192 -EAPI=5
193 -
194 -SUPPORT_PYTHON_ABIS="1"
195 -RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
196 -
197 -inherit autotools flag-o-matic python
198 -
199 -DESCRIPTION="POSIX 1003.1e capabilities"
200 -HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/"
201 -SRC_URI="https://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
202 -
203 -LICENSE="LGPL-2.1"
204 -SLOT="0"
205 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~arm-linux ~x86-linux"
206 -IUSE="python static-libs"
207 -
208 -RDEPEND="python? ( dev-lang/python )"
209 -DEPEND="${RDEPEND}
210 - sys-kernel/linux-headers
211 - python? ( >=dev-lang/swig-2 )"
212 -
213 -PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
214 -
215 -pkg_setup() {
216 - use python && python_pkg_setup
217 -}
218 -
219 -src_prepare() {
220 - # Disable byte-compilation of Python modules.
221 - >py-compile
222 -
223 - # Python bindings are built/tested/installed manually.
224 - sed -i -e "/^SUBDIRS/s/ python//" bindings/Makefile.am || die
225 - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
226 -
227 - eautoreconf
228 -
229 - use sparc && replace-flags -O? -O0
230 -}
231 -
232 -src_configure() {
233 - econf \
234 - $(use_enable static-libs static) \
235 - $(use_with python)
236 -}
237 -
238 -src_compile() {
239 - default
240 -
241 - if use python; then
242 - python_copy_sources bindings/python
243 -
244 - building() {
245 - emake \
246 - CFLAGS="${CFLAGS}" \
247 - PYTHON_VERSION="$(python_get_version)" \
248 - pyexecdir="$(python_get_sitedir)" \
249 - pythondir="$(python_get_sitedir)"
250 - }
251 - python_execute_function -s --source-dir bindings/python building
252 - fi
253 -}
254 -
255 -src_test() {
256 - if [[ "${EUID}" -eq 0 ]]; then
257 - ewarn "Skipping tests due to root permissions."
258 - return
259 - fi
260 -
261 - default
262 -
263 - if use python; then
264 - testing() {
265 - emake \
266 - PYTHON_VERSION="$(python_get_version)" \
267 - pyexecdir="$(python_get_sitedir)" \
268 - pythondir="$(python_get_sitedir)" \
269 - TESTS_ENVIRONMENT="PYTHONPATH=..:../.libs" \
270 - check
271 - }
272 - python_execute_function -s --source-dir bindings/python testing
273 - fi
274 -}
275 -
276 -src_install() {
277 - default
278 -
279 - if use python; then
280 - installation() {
281 - emake \
282 - DESTDIR="${D}" \
283 - PYTHON_VERSION="$(python_get_version)" \
284 - pyexecdir="$(python_get_sitedir)" \
285 - pythondir="$(python_get_sitedir)" \
286 - install
287 - }
288 - python_execute_function -s --source-dir bindings/python installation
289 -
290 - python_clean_installation_image
291 - fi
292 -
293 - rm -f "${ED}"/usr/lib*/${PN}.la
294 -}
295 -
296 -pkg_postinst() {
297 - use python && python_mod_optimize capng.py
298 -}
299 -
300 -pkg_postrm() {
301 - use python && python_mod_cleanup capng.py
302 -}
303
304 diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild
305 deleted file mode 100644
306 index 642fdc2..0000000
307 --- a/sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild
308 +++ /dev/null
309 @@ -1,92 +0,0 @@
310 -# Copyright 1999-2014 Gentoo Foundation
311 -# Distributed under the terms of the GNU General Public License v2
312 -# $Id$
313 -
314 -EAPI=5
315 -
316 -AUTOTOOLS_AUTORECONF=1
317 -AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
318 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
319 -
320 -inherit autotools-utils flag-o-matic python-r1
321 -
322 -DESCRIPTION="POSIX 1003.1e capabilities"
323 -HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/"
324 -SRC_URI="https://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
325 -
326 -LICENSE="LGPL-2.1"
327 -SLOT="0"
328 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc ~x86 ~arm-linux ~x86-linux"
329 -IUSE="python static-libs"
330 -
331 -RDEPEND="python? ( ${PYTHON_DEPS} )"
332 -DEPEND="${RDEPEND}
333 - sys-kernel/linux-headers
334 - python? ( >=dev-lang/swig-2 )"
335 -
336 -src_prepare() {
337 - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
338 -
339 - autotools-utils_src_prepare
340 -
341 - use sparc && replace-flags -O? -O0
342 -}
343 -
344 -src_configure() {
345 - local myeconfargs=(
346 - --without-python
347 - )
348 -
349 - # set up the library build
350 - autotools-utils_src_configure
351 -
352 - if use python; then
353 - python_foreach_impl \
354 - autotools-utils_src_configure --with-python
355 - fi
356 -}
357 -
358 -src_compile() {
359 - autotools-utils_src_compile
360 -
361 - if use python; then
362 - python_compile() {
363 - local CFLAGS=${CFLAGS}
364 -
365 - python_is_python3 || CFLAGS+=" -fno-strict-aliasing"
366 -
367 - emake "${@}" \
368 - -C "${BUILD_DIR}"/bindings/python
369 - }
370 -
371 - # help build system find the right objects
372 - python_foreach_impl python_compile \
373 - VPATH="${BUILD_DIR}"/bindings/python \
374 - LIBS="${BUILD_DIR}"/src/libcap-ng.la
375 - fi
376 -}
377 -
378 -src_test() {
379 - if [[ "${EUID}" -eq 0 ]]; then
380 - ewarn "Skipping tests due to root permissions."
381 - return
382 - fi
383 -
384 - autotools-utils_src_test
385 -
386 - if use python; then
387 - python_foreach_impl \
388 - autotools-utils_src_compile -C bindings/python check \
389 - VPATH="${BUILD_DIR}"/bindings/python:"${S}"/bindings/python/test
390 - fi
391 -}
392 -
393 -src_install() {
394 - autotools-utils_src_install
395 -
396 - if use python; then
397 - python_foreach_impl \
398 - autotools-utils_src_install -C bindings/python \
399 - VPATH="${BUILD_DIR}"/bindings/python
400 - fi
401 -}
402
403 diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild
404 deleted file mode 100644
405 index 8dcd469..0000000
406 --- a/sys-libs/libcap-ng/libcap-ng-0.7.5.ebuild
407 +++ /dev/null
408 @@ -1,93 +0,0 @@
409 -# Copyright 1999-2015 Gentoo Foundation
410 -# Distributed under the terms of the GNU General Public License v2
411 -# $Id$
412 -
413 -EAPI=5
414 -
415 -AUTOTOOLS_AUTORECONF=1
416 -AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
417 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
418 -
419 -inherit autotools-utils flag-o-matic python-r1
420 -
421 -DESCRIPTION="POSIX 1003.1e capabilities"
422 -HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/"
423 -SRC_URI="https://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
424 -
425 -LICENSE="LGPL-2.1"
426 -SLOT="0"
427 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
428 -IUSE="python static-libs"
429 -
430 -RDEPEND="python? ( ${PYTHON_DEPS} )"
431 -DEPEND="${RDEPEND}
432 - sys-kernel/linux-headers
433 - python? ( >=dev-lang/swig-2 )"
434 -
435 -src_prepare() {
436 - epatch "${FILESDIR}"/${P}-add-unistd_h.patch
437 - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
438 -
439 - autotools-utils_src_prepare
440 -
441 - use sparc && replace-flags -O? -O0
442 -}
443 -
444 -src_configure() {
445 - local myeconfargs=(
446 - --without-python
447 - )
448 -
449 - # set up the library build
450 - autotools-utils_src_configure
451 -
452 - if use python; then
453 - python_foreach_impl \
454 - autotools-utils_src_configure --with-python
455 - fi
456 -}
457 -
458 -src_compile() {
459 - autotools-utils_src_compile
460 -
461 - if use python; then
462 - python_compile() {
463 - local CFLAGS=${CFLAGS}
464 -
465 - python_is_python3 || CFLAGS+=" -fno-strict-aliasing"
466 -
467 - emake "${@}" \
468 - -C "${BUILD_DIR}"/bindings/python
469 - }
470 -
471 - # help build system find the right objects
472 - python_foreach_impl python_compile \
473 - VPATH="${BUILD_DIR}"/bindings/python \
474 - LIBS="${BUILD_DIR}"/src/libcap-ng.la
475 - fi
476 -}
477 -
478 -src_test() {
479 - if [[ "${EUID}" -eq 0 ]]; then
480 - ewarn "Skipping tests due to root permissions."
481 - return
482 - fi
483 -
484 - autotools-utils_src_test
485 -
486 - if use python; then
487 - python_foreach_impl \
488 - autotools-utils_src_compile -C bindings/python check \
489 - VPATH="${BUILD_DIR}"/bindings/python:"${S}"/bindings/python/test
490 - fi
491 -}
492 -
493 -src_install() {
494 - autotools-utils_src_install
495 -
496 - if use python; then
497 - python_foreach_impl \
498 - autotools-utils_src_install -C bindings/python \
499 - VPATH="${BUILD_DIR}"/bindings/python
500 - fi
501 -}
502
503 diff --git a/sys-libs/libcap-ng/libcap-ng-0.7.6.ebuild b/sys-libs/libcap-ng/libcap-ng-0.7.6.ebuild
504 deleted file mode 100644
505 index df1d0b4..0000000
506 --- a/sys-libs/libcap-ng/libcap-ng-0.7.6.ebuild
507 +++ /dev/null
508 @@ -1,93 +0,0 @@
509 -# Copyright 1999-2015 Gentoo Foundation
510 -# Distributed under the terms of the GNU General Public License v2
511 -# $Id$
512 -
513 -EAPI=5
514 -
515 -AUTOTOOLS_AUTORECONF=1
516 -AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
517 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
518 -
519 -inherit autotools-utils flag-o-matic python-r1
520 -
521 -DESCRIPTION="POSIX 1003.1e capabilities"
522 -HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/"
523 -SRC_URI="https://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
524 -
525 -LICENSE="LGPL-2.1"
526 -SLOT="0"
527 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
528 -IUSE="python static-libs"
529 -
530 -RDEPEND="python? ( ${PYTHON_DEPS} )"
531 -DEPEND="${RDEPEND}
532 - sys-kernel/linux-headers
533 - python? ( >=dev-lang/swig-2 )"
534 -
535 -src_prepare() {
536 - epatch "${FILESDIR}"/${PN}-0.7.5-add-unistd_h.patch
537 - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
538 -
539 - autotools-utils_src_prepare
540 -
541 - use sparc && replace-flags -O? -O0
542 -}
543 -
544 -src_configure() {
545 - local myeconfargs=(
546 - --without-python
547 - )
548 -
549 - # set up the library build
550 - autotools-utils_src_configure
551 -
552 - if use python; then
553 - python_foreach_impl \
554 - autotools-utils_src_configure --with-python
555 - fi
556 -}
557 -
558 -src_compile() {
559 - autotools-utils_src_compile
560 -
561 - if use python; then
562 - python_compile() {
563 - local CFLAGS=${CFLAGS}
564 -
565 - python_is_python3 || CFLAGS+=" -fno-strict-aliasing"
566 -
567 - emake "${@}" \
568 - -C "${BUILD_DIR}"/bindings/python
569 - }
570 -
571 - # help build system find the right objects
572 - python_foreach_impl python_compile \
573 - VPATH="${BUILD_DIR}"/bindings/python \
574 - LIBS="${BUILD_DIR}"/src/libcap-ng.la
575 - fi
576 -}
577 -
578 -src_test() {
579 - if [[ "${EUID}" -eq 0 ]]; then
580 - ewarn "Skipping tests due to root permissions."
581 - return
582 - fi
583 -
584 - autotools-utils_src_test
585 -
586 - if use python; then
587 - python_foreach_impl \
588 - autotools-utils_src_compile -C bindings/python check \
589 - VPATH="${BUILD_DIR}"/bindings/python:"${S}"/bindings/python/test
590 - fi
591 -}
592 -
593 -src_install() {
594 - autotools-utils_src_install
595 -
596 - if use python; then
597 - python_foreach_impl \
598 - autotools-utils_src_install -C bindings/python \
599 - VPATH="${BUILD_DIR}"/bindings/python
600 - fi
601 -}