Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libselinux: ChangeLog libselinux-2.0.94.ebuild
Date: Sat, 05 Feb 2011 22:07:50
Message-Id: 20110205220740.72B5F20054@flycatcher.gentoo.org
1 arfrever 11/02/05 22:07:40
2
3 Modified: ChangeLog libselinux-2.0.94.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS (bug #353763). Respect AR and CC.
6
7 (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.68 sys-libs/libselinux/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.68&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.68&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.67&r2=1.68
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
19 retrieving revision 1.67
20 retrieving revision 1.68
21 diff -u -r1.67 -r1.68
22 --- ChangeLog 5 Feb 2011 11:13:11 -0000 1.67
23 +++ ChangeLog 5 Feb 2011 22:07:40 -0000 1.68
24 @@ -1,6 +1,10 @@
25 # ChangeLog for sys-libs/libselinux
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.67 2011/02/05 11:13:11 blueness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.68 2011/02/05 22:07:40 arfrever Exp $
29 +
30 + 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + libselinux-2.0.94.ebuild:
32 + Set SUPPORT_PYTHON_ABIS (bug #353763). Respect AR and CC.
33
34 *libselinux-2.0.94 (05 Feb 2011)
35
36
37
38
39 1.2 sys-libs/libselinux/libselinux-2.0.94.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?r1=1.1&r2=1.2
44
45 Index: libselinux-2.0.94.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- libselinux-2.0.94.ebuild 5 Feb 2011 11:13:11 -0000 1.1
52 +++ libselinux-2.0.94.ebuild 5 Feb 2011 22:07:40 -0000 1.2
53 @@ -1,21 +1,25 @@
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.1 2011/02/05 11:13:11 blueness Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.2 2011/02/05 22:07:40 arfrever Exp $
58
59 EAPI="2"
60 -IUSE="ruby"
61 +PYTHON_DEPEND="2"
62 +SUPPORT_PYTHON_ABIS="1"
63 +RESTRICT_PYTHON_ABIS="3.* *-jython"
64 RUBY_OPTIONAL="yes"
65
66 -inherit eutils multilib python
67 +inherit multilib python toolchain-funcs
68
69 SEPOL_VER="2.0.41"
70
71 DESCRIPTION="SELinux userland library"
72 HOMEPAGE="http://userspace.selinuxproject.org"
73 SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
74 +
75 LICENSE="public-domain"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78 +IUSE="ruby"
79
80 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
81 dev-lang/swig
82 @@ -24,11 +28,6 @@
83 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
84 ruby? ( dev-lang/ruby )"
85
86 -src_unpack() {
87 - unpack ${A}
88 - cd "${S}"
89 -}
90 -
91 src_prepare() {
92 # fix up paths for multilib
93 sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
94 @@ -38,17 +37,26 @@
95 }
96
97 src_compile() {
98 - emake LDFLAGS="-fPIC ${LDFLAGS}" all || die
99 - emake PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap || die
100 + emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die
101 +
102 + python_copy_sources src
103 + building() {
104 + emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap
105 + }
106 + python_execute_function -s --source-dir src building
107
108 if use ruby; then
109 - emake rubywrap || die
110 + emake CC="$(tc-getCC)" rubywrap || die
111 fi
112 }
113
114 src_install() {
115 - python_need_rebuild
116 - make DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install install-pywrap || die
117 + emake DESTDIR="${D}" install || die
118 +
119 + installation() {
120 + emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install-pywrap
121 + }
122 + python_execute_function -s --source-dir src installation
123
124 if use ruby; then
125 emake DESTDIR="${D}" install-rubywrap || die
126 @@ -56,9 +64,9 @@
127 }
128
129 pkg_postinst() {
130 - python_mod_optimize $(python_get_sitedir)
131 + python_mod_optimize selinux
132 }
133
134 pkg_postrm() {
135 - python_mod_cleanup $(python_get_sitedir)
136 + python_mod_cleanup selinux
137 }