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: libselinux-2.0.85.ebuild ChangeLog
Date: Sun, 02 Aug 2009 01:13:04
Message-Id: E1MXPdF-0000QG-Eh@stork.gentoo.org
1 pebenito 09/08/02 01:13:01
2
3 Modified: ChangeLog
4 Added: libselinux-2.0.85.ebuild
5 Log:
6 new upstream release.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.63 sys-libs/libselinux/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.63&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.63&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.62&r2=1.63
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
19 retrieving revision 1.62
20 retrieving revision 1.63
21 diff -u -r1.62 -r1.63
22 --- ChangeLog 22 Jul 2009 13:25:49 -0000 1.62
23 +++ ChangeLog 2 Aug 2009 01:13:01 -0000 1.63
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-libs/libselinux
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.62 2009/07/22 13:25:49 pebenito Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.63 2009/08/02 01:13:01 pebenito Exp $
29 +
30 +*libselinux-2.0.85 (02 Aug 2009)
31 +
32 + 02 Aug 2009; Chris PeBenito <pebenito@g.o>
33 + +libselinux-2.0.85.ebuild:
34 + New upstream release.
35
36 18 Jul 2009; Chris PeBenito <pebenito@g.o>
37 -libselinux-1.34.14.ebuild, libselinux-2.0.71.ebuild:
38
39
40
41 1.1 sys-libs/libselinux/libselinux-2.0.85.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/libselinux-2.0.85.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libselinux/libselinux-2.0.85.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libselinux-2.0.85.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.85.ebuild,v 1.1 2009/08/02 01:13:01 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="~amd64 ~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 }