Gentoo Archives: gentoo-commits

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