Gentoo Archives: gentoo-commits

From: "Chris PeBenito (pebenito)" <pebenito@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libselinux: ChangeLog libselinux-2.0.71.ebuild
Date: Fri, 03 Oct 2008 03:23:47
Message-Id: E1KlbGY-0007x5-5A@stork.gentoo.org
1 pebenito 08/10/03 03:23:42
2
3 Modified: ChangeLog
4 Added: libselinux-2.0.71.ebuild
5 Log:
6 Initial commit of 2.0 libselinux.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.24-gentoo-r3 x86_64)
8
9 Revision Changes Path
10 1.61 sys-libs/libselinux/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.61&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.61&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.60&r2=1.61
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
19 retrieving revision 1.60
20 retrieving revision 1.61
21 diff -u -r1.60 -r1.61
22 --- ChangeLog 29 May 2008 18:08:46 -0000 1.60
23 +++ ChangeLog 3 Oct 2008 03:23:41 -0000 1.61
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-libs/libselinux
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.60 2008/05/29 18:08:46 hawking Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.61 2008/10/03 03:23:41 pebenito Exp $
29 +
30 +*libselinux-2.0.71 (03 Oct 2008)
31 +
32 + 03 Oct 2008; Chris PeBenito <pebenito@g.o>
33 + +libselinux-2.0.71.ebuild:
34 + Initial commit of 2.0 libselinux.
35
36 29 May 2008; Ali Polatel <hawking@g.o> libselinux-1.34.14.ebuild:
37 python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
38
39
40
41 1.1 sys-libs/libselinux/libselinux-2.0.71.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/libselinux-2.0.71.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/libselinux-2.0.71.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libselinux-2.0.71.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.71.ebuild,v 1.1 2008/10/03 03:23:41 pebenito Exp $
51
52 IUSE="ruby"
53 RUBY_OPTIONAL="yes"
54
55 inherit eutils multilib python ruby
56
57 #BUGFIX_PATCH="${FILESDIR}/libselinux-1.30.3.diff"
58
59 SEPOL_VER="2.0"
60
61 DESCRIPTION="SELinux userland library"
62 HOMEPAGE="http://userspace.selinuxproject.org"
63 SRC_URI="http://userspace.selinuxproject.org/releases/current/devel/${P}.tar.gz"
64 LICENSE="public-domain"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86"
67
68 DEPEND="=sys-libs/libsepol-${SEPOL_VER}*
69 dev-lang/swig
70 ruby? ( dev-lang/ruby )"
71
72 RDEPEND="=sys-libs/libsepol-${SEPOL_VER}*
73 ruby? ( dev-lang/ruby )"
74
75 src_unpack() {
76 unpack ${A}
77 cd "${S}"
78
79 [ ! -z "${BUGFIX_PATCH}" ] && epatch "${BUGFIX_PATCH}"
80
81 # fix up paths for multilib
82 sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
83 || die "Fix for multilib LIBDIR failed."
84 sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
85 || die "Fix for multilib SHLIBDIR failed."
86 }
87
88 src_compile() {
89 python_version
90 emake LDFLAGS="-fPIC ${LDFLAGS}" all || die
91 emake PYLIBVER="python${PYVER}" LDFLAGS="-fPIC ${LDFLAGS}" pywrap || die
92
93 if use ruby; then
94 emake rubywrap || die
95 fi
96
97 # add compatability aliases to swig wrapper
98 cat "${FILESDIR}/compat.py" >> "${S}/src/selinux.py" || die
99 }
100
101 src_install() {
102 python_version
103 make DESTDIR="${D}" PYLIBVER="python${PYVER}" install install-pywrap || die
104
105 if use ruby; then
106 emake DESTDIR="${D}" install-rubywrap || die
107 fi
108 }
109
110 pkg_postinst() {
111 python_version
112 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
113 }
114
115 pkg_postrm() {
116 python_version
117 python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages
118 }