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: libcap-ng-0.7.1.ebuild ChangeLog
Date: Fri, 02 Nov 2012 11:43:37
Message-Id: 20121102114321.3F3DD21600@flycatcher.gentoo.org
1 radhermit 12/11/02 11:43:21
2
3 Modified: ChangeLog
4 Added: libcap-ng-0.7.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.50 sys-libs/libcap-ng/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?rev=1.50&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?rev=1.50&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?r1=1.49&r2=1.50
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v
20 retrieving revision 1.49
21 retrieving revision 1.50
22 diff -u -r1.49 -r1.50
23 --- ChangeLog 26 Jul 2012 02:39:08 -0000 1.49
24 +++ ChangeLog 2 Nov 2012 11:43:21 -0000 1.50
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/libcap-ng
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.49 2012/07/26 02:39:08 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.50 2012/11/02 11:43:21 radhermit Exp $
30 +
31 +*libcap-ng-0.7.1 (02 Nov 2012)
32 +
33 + 02 Nov 2012; Tim Harder <radhermit@g.o> +libcap-ng-0.7.1.ebuild:
34 + Version bump.
35
36 26 Jul 2012; Tim Harder <radhermit@g.o> libcap-ng-0.6.6.ebuild,
37 libcap-ng-0.7.ebuild:
38
39
40
41 1.1 sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.7.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libcap-ng-0.7.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.1.ebuild,v 1.1 2012/11/02 11:43:21 radhermit Exp $
51
52 EAPI=4
53
54 SUPPORT_PYTHON_ABIS="1"
55 RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
56
57 inherit autotools flag-o-matic python
58
59 DESCRIPTION="POSIX 1003.1e capabilities"
60 HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/"
61 SRC_URI="http://people.redhat.com/sgrubb/${PN}/${P}.tar.gz"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
66 IUSE="python static-libs"
67
68 RDEPEND="sys-apps/attr
69 python? ( dev-lang/python )"
70 DEPEND="${RDEPEND}
71 sys-kernel/linux-headers
72 python? ( >=dev-lang/swig-2 )"
73
74 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
75
76 pkg_setup() {
77 use python && python_pkg_setup
78 }
79
80 src_prepare() {
81 # Disable byte-compilation of Python modules.
82 >py-compile
83
84 # Python bindings are built/tested/installed manually.
85 sed -i -e "/^SUBDIRS/s/ python//" bindings/Makefile.am || die
86
87 eautoreconf
88
89 use sparc && replace-flags -O? -O0
90 }
91
92 src_configure() {
93 econf \
94 $(use_enable static-libs static) \
95 $(use_with python)
96 }
97
98 src_compile() {
99 default
100
101 if use python; then
102 python_copy_sources bindings/python
103
104 building() {
105 emake \
106 CFLAGS="${CFLAGS}" \
107 PYTHON_VERSION="$(python_get_version)" \
108 pyexecdir="$(python_get_sitedir)" \
109 pythondir="$(python_get_sitedir)"
110 }
111 python_execute_function -s --source-dir bindings/python building
112 fi
113 }
114
115 src_test() {
116 if [[ "${EUID}" -eq 0 ]]; then
117 ewarn "Skipping tests due to root permissions."
118 return
119 fi
120
121 default
122
123 if use python; then
124 testing() {
125 emake \
126 PYTHON_VERSION="$(python_get_version)" \
127 pyexecdir="$(python_get_sitedir)" \
128 pythondir="$(python_get_sitedir)" \
129 TESTS_ENVIRONMENT="PYTHONPATH=..:../.libs" \
130 check
131 }
132 python_execute_function -s --source-dir bindings/python testing
133 fi
134 }
135
136 src_install() {
137 default
138
139 if use python; then
140 installation() {
141 emake \
142 DESTDIR="${D}" \
143 PYTHON_VERSION="$(python_get_version)" \
144 pyexecdir="$(python_get_sitedir)" \
145 pythondir="$(python_get_sitedir)" \
146 install
147 }
148 python_execute_function -s --source-dir bindings/python installation
149
150 python_clean_installation_image
151 fi
152
153 rm -f "${ED}"/usr/lib*/${PN}.la
154 }
155
156 pkg_postinst() {
157 use python && python_mod_optimize capng.py
158 }
159
160 pkg_postrm() {
161 use python && python_mod_cleanup capng.py
162 }