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.0.94.ebuild
Date: Sat, 05 Feb 2011 11:13:22
Message-Id: 20110205111312.151D620054@flycatcher.gentoo.org
1 blueness 11/02/05 11:13:11
2
3 Modified: ChangeLog
4 Added: libselinux-2.0.94.ebuild
5 Log:
6 New upstream release.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.67 sys-libs/libselinux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.67&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.67&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.66&r2=1.67
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
20 retrieving revision 1.66
21 retrieving revision 1.67
22 diff -u -r1.66 -r1.67
23 --- ChangeLog 29 Sep 2010 22:58:55 -0000 1.66
24 +++ ChangeLog 5 Feb 2011 11:13:11 -0000 1.67
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/libselinux
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.66 2010/09/29 22:58:55 vapier Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.67 2011/02/05 11:13:11 blueness Exp $
31 +
32 +*libselinux-2.0.94 (05 Feb 2011)
33 +
34 + 05 Feb 2011; Anthony G. Basile <blueness@g.o>
35 + +libselinux-2.0.94.ebuild:
36 + New upstream release.
37
38 29 Sep 2010; Mike Frysinger <vapier@g.o> libselinux-2.0.85.ebuild,
39 +files/libselinux-2.0.85-headers.patch:
40
41
42
43 1.1 sys-libs/libselinux/libselinux-2.0.94.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libselinux-2.0.94.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.1 2011/02/05 11:13:11 blueness Exp $
53
54 EAPI="2"
55 IUSE="ruby"
56 RUBY_OPTIONAL="yes"
57
58 inherit eutils multilib python
59
60 SEPOL_VER="2.0.41"
61
62 DESCRIPTION="SELinux userland library"
63 HOMEPAGE="http://userspace.selinuxproject.org"
64 SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
65 LICENSE="public-domain"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68
69 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
70 dev-lang/swig
71 ruby? ( dev-lang/ruby )"
72
73 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
74 ruby? ( dev-lang/ruby )"
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79 }
80
81 src_prepare() {
82 # fix up paths for multilib
83 sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
84 || die "Fix for multilib LIBDIR failed."
85 sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \
86 || die "Fix for multilib SHLIBDIR failed."
87 }
88
89 src_compile() {
90 emake LDFLAGS="-fPIC ${LDFLAGS}" all || die
91 emake PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap || die
92
93 if use ruby; then
94 emake rubywrap || die
95 fi
96 }
97
98 src_install() {
99 python_need_rebuild
100 make DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install install-pywrap || die
101
102 if use ruby; then
103 emake DESTDIR="${D}" install-rubywrap || die
104 fi
105 }
106
107 pkg_postinst() {
108 python_mod_optimize $(python_get_sitedir)
109 }
110
111 pkg_postrm() {
112 python_mod_cleanup $(python_get_sitedir)
113 }