Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libcap-ng: ChangeLog libcap-ng-0.7.4.ebuild
Date: Wed, 30 Apr 2014 18:40:35
Message-Id: 20140430184031.96AE12004B@flycatcher.gentoo.org
1 radhermit 14/04/30 18:40:31
2
3 Modified: ChangeLog
4 Added: libcap-ng-0.7.4.ebuild
5 Log:
6 Version bump, move to python-r1 (bug #460044, patch by mgorny).
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.67 sys-libs/libcap-ng/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?rev=1.67&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?rev=1.67&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?r1=1.66&r2=1.67
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v
20 retrieving revision 1.66
21 retrieving revision 1.67
22 diff -u -r1.66 -r1.67
23 --- ChangeLog 19 Jan 2014 20:11:39 -0000 1.66
24 +++ ChangeLog 30 Apr 2014 18:40:31 -0000 1.67
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/libcap-ng
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.66 2014/01/19 20:11:39 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.67 2014/04/30 18:40:31 radhermit Exp $
30 +
31 +*libcap-ng-0.7.4 (30 Apr 2014)
32 +
33 + 30 Apr 2014; Tim Harder <radhermit@g.o> +libcap-ng-0.7.4.ebuild:
34 + Version bump, move to python-r1 (bug #460044, patch by mgorny).
35
36 19 Jan 2014; Mike Frysinger <vapier@g.o> libcap-ng-0.7.3.ebuild:
37 Add arm64 love.
38
39
40
41 1.1 sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libcap-ng-0.7.4.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.4.ebuild,v 1.1 2014/04/30 18:40:31 radhermit Exp $
51
52 EAPI=5
53
54 AUTOTOOLS_AUTORECONF=1
55 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
56 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
57
58 inherit autotools-utils flag-o-matic python-r1
59
60 DESCRIPTION="POSIX 1003.1e capabilities"
61 HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/"
62 SRC_URI="http://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
63
64 LICENSE="LGPL-2.1"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
67 IUSE="python static-libs"
68
69 RDEPEND="python? ( ${PYTHON_DEPS} )"
70 DEPEND="${RDEPEND}
71 sys-kernel/linux-headers
72 python? ( >=dev-lang/swig-2 )"
73
74 src_prepare() {
75 sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
76
77 autotools-utils_src_prepare
78
79 use sparc && replace-flags -O? -O0
80 }
81
82 src_configure() {
83 local myeconfargs=(
84 --without-python
85 )
86
87 # set up the library build
88 autotools-utils_src_configure
89
90 if use python; then
91 python_parallel_foreach_impl \
92 autotools-utils_src_configure --with-python
93 fi
94 }
95
96 src_compile() {
97 autotools-utils_src_compile
98
99 if use python; then
100 python_compile() {
101 local CFLAGS=${CFLAGS}
102
103 python_is_python3 || CFLAGS+=" -fno-strict-aliasing"
104
105 emake "${@}" \
106 -C "${BUILD_DIR}"/bindings/python
107 }
108
109 # help build system find the right objects
110 python_foreach_impl python_compile \
111 VPATH="${BUILD_DIR}"/bindings/python \
112 LIBS="${BUILD_DIR}"/src/libcap-ng.la
113 fi
114 }
115
116 src_test() {
117 if [[ "${EUID}" -eq 0 ]]; then
118 ewarn "Skipping tests due to root permissions."
119 return
120 fi
121
122 autotools-utils_src_test
123
124 if use python; then
125 python_foreach_impl \
126 autotools-utils_src_compile -C bindings/python check \
127 VPATH="${BUILD_DIR}"/bindings/python:"${S}"/bindings/python/test
128 fi
129 }
130
131 src_install() {
132 autotools-utils_src_install
133
134 if use python; then
135 python_foreach_impl \
136 autotools-utils_src_install -C bindings/python \
137 VPATH="${BUILD_DIR}"/bindings/python
138 fi
139 }