From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/libcap-ng: ChangeLog libcap-ng-0.6.5.ebuild |
Date: | Thu, 25 Nov 2010 17:19:24 |
Message-Id: | 20101125171915.1F72F20051@flycatcher.gentoo.org |
1 | flameeyes 10/11/25 17:19:15 |
2 | |
3 | Modified: ChangeLog |
4 | Added: libcap-ng-0.6.5.ebuild |
5 | Log: |
6 | Version bump, thanks to Gary Macindoe in bug #346517. Fixes build with linux-headers 2.6.36.1. |
7 | |
8 | (Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.22 sys-libs/libcap-ng/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?rev=1.22&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?rev=1.22&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/ChangeLog?r1=1.21&r2=1.22 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v |
20 | retrieving revision 1.21 |
21 | retrieving revision 1.22 |
22 | diff -u -r1.21 -r1.22 |
23 | --- ChangeLog 1 Nov 2010 12:26:06 -0000 1.21 |
24 | +++ ChangeLog 25 Nov 2010 17:19:15 -0000 1.22 |
25 | @@ -1,6 +1,13 @@ |
26 | # ChangeLog for sys-libs/libcap-ng |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.21 2010/11/01 12:26:06 phajdan.jr Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.22 2010/11/25 17:19:15 flameeyes Exp $ |
30 | + |
31 | +*libcap-ng-0.6.5 (25 Nov 2010) |
32 | + |
33 | + 25 Nov 2010; Diego E. Pettenò <flameeyes@g.o> |
34 | + +libcap-ng-0.6.5.ebuild: |
35 | + Version bump, thanks to Gary Macindoe in bug #346517. Fixes build with |
36 | + linux-headers 2.6.36.1. |
37 | |
38 | 01 Nov 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
39 | libcap-ng-0.6.4.ebuild: |
40 | |
41 | |
42 | |
43 | 1.1 sys-libs/libcap-ng/libcap-ng-0.6.5.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.6.5.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.6.5.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: libcap-ng-0.6.5.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2010 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.6.5.ebuild,v 1.1 2010/11/25 17:19:15 flameeyes Exp $ |
53 | |
54 | EAPI="2" |
55 | SUPPORT_PYTHON_ABIS="1" |
56 | |
57 | inherit eutils 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/libcap-ng/${P}.tar.gz" |
62 | |
63 | LICENSE="LGPL-2.1" |
64 | SLOT="0" |
65 | KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
66 | IUSE="python" |
67 | |
68 | RDEPEND="sys-apps/attr |
69 | python? ( dev-lang/python )" |
70 | DEPEND="${RDEPEND} |
71 | sys-kernel/linux-headers |
72 | python? ( dev-lang/swig )" |
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 | echo "#!/bin/sh" > py-compile |
83 | |
84 | # Python bindings are built/tested/installed manually. |
85 | sed -e "/^SUBDIRS/s/ python//" -i bindings/Makefile.am |
86 | |
87 | eautoreconf |
88 | |
89 | use sparc && replace-flags -O? -O0 |
90 | } |
91 | |
92 | src_configure() { |
93 | econf $(use_with python) |
94 | } |
95 | |
96 | src_compile() { |
97 | default |
98 | |
99 | if use python; then |
100 | python_copy_sources bindings/python |
101 | |
102 | building() { |
103 | emake \ |
104 | CFLAGS="${CFLAGS}" \ |
105 | PYTHON_VERSION="$(python_get_version)" \ |
106 | pyexecdir="$(python_get_sitedir)" \ |
107 | pythondir="$(python_get_sitedir)" |
108 | } |
109 | python_execute_function -s --source-dir bindings/python building |
110 | fi |
111 | } |
112 | |
113 | src_test() { |
114 | if [[ "${EUID}" -eq 0 ]]; then |
115 | ewarn "Skipping tests due to root permissions." |
116 | return |
117 | fi |
118 | |
119 | default |
120 | |
121 | if use python; then |
122 | testing() { |
123 | emake \ |
124 | PYTHON_VERSION="$(python_get_version)" \ |
125 | pyexecdir="$(python_get_sitedir)" \ |
126 | pythondir="$(python_get_sitedir)" \ |
127 | TESTS_ENVIRONMENT="PYTHONPATH=..:../.libs" \ |
128 | check |
129 | } |
130 | python_execute_function -s --source-dir bindings/python testing |
131 | fi |
132 | } |
133 | |
134 | src_install() { |
135 | emake install DESTDIR="${D}" || die "emake install failed" |
136 | |
137 | if use python; then |
138 | installation() { |
139 | emake \ |
140 | DESTDIR="${D}" \ |
141 | PYTHON_VERSION="$(python_get_version)" \ |
142 | pyexecdir="$(python_get_sitedir)" \ |
143 | pythondir="$(python_get_sitedir)" \ |
144 | install |
145 | } |
146 | python_execute_function -s --source-dir bindings/python installation |
147 | |
148 | python_clean_installation_image |
149 | fi |
150 | |
151 | dodoc ChangeLog README |
152 | } |
153 | |
154 | pkg_postinst() { |
155 | use python && python_mod_optimize capng.py |
156 | } |
157 | |
158 | pkg_postrm() { |
159 | use python && python_mod_cleanup capng.py |
160 | } |