Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libapparmor/
Date: Mon, 01 Jan 2018 02:59:40
Message-Id: 1514775563.1398d309d42f0600e2ba4e601c12ea1a3d2f2c72.kensington@gentoo
1 commit: 1398d309d42f0600e2ba4e601c12ea1a3d2f2c72
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 1 02:49:35 2018 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 1 02:59:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1398d309
7
8 sys-libs/libapparmor: version bump 2.12.0
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 sys-libs/libapparmor/Manifest | 1 +
13 sys-libs/libapparmor/libapparmor-2.12.0.ebuild | 95 ++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+)
15
16 diff --git a/sys-libs/libapparmor/Manifest b/sys-libs/libapparmor/Manifest
17 index fa2e8344639..10e4fbc530b 100644
18 --- a/sys-libs/libapparmor/Manifest
19 +++ b/sys-libs/libapparmor/Manifest
20 @@ -1 +1,2 @@
21 DIST apparmor-2.11.1.tar.gz 5017646 BLAKE2B ee0176c87b2800eb562c136ff324f08e444c412117c4593ff97c4b0e4c63db2aea0721c6ed38f3c733e3c95024165f329e520acf838c4798a8285b8dedf0d51e SHA512 f088157cc116987e56c0e02127497b1ec6241f3d761ec3b53211fa188f5f02c9408d6b903f2d275328ede88ebfd1393e00aad9f68cbe78fa9ab3711ba0f9c00c
22 +DIST apparmor-2.12.tar.gz 7258450 BLAKE2B c1d4e01d836c5f567ddb7c5ecf36dde6efccf1e59ae219824129fd5c92162a3fed7ebdc492f181ae132b07db068660078a9631543d40fd20ab0b44cd4c646d4c SHA512 d85fd47c66333fe5658ee5e977b32142697f6e36c575550712ee2ace2ad0fbf2aa59c8fd3b82ad8821c0190adf8cc150cf623ea09a84d5b32bde050a03dd6e9a
23
24 diff --git a/sys-libs/libapparmor/libapparmor-2.12.0.ebuild b/sys-libs/libapparmor/libapparmor-2.12.0.ebuild
25 new file mode 100644
26 index 00000000000..026e70ab2e8
27 --- /dev/null
28 +++ b/sys-libs/libapparmor/libapparmor-2.12.0.ebuild
29 @@ -0,0 +1,95 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=5
34 +
35 +AUTOTOOLS_AUTORECONF=1
36 +DISTUTILS_OPTIONAL=1
37 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
38 +GENTOO_DEPEND_ON_PERL="no"
39 +
40 +inherit autotools-utils distutils-r1 perl-functions versionator
41 +
42 +MY_PV="$(get_version_component_range 1-2)"
43 +
44 +DESCRIPTION="Library to support AppArmor userspace utilities"
45 +HOMEPAGE="http://apparmor.net/"
46 +SRC_URI="https://launchpad.net/apparmor/${MY_PV}/${PV}/+download/apparmor-${MY_PV}.tar.gz"
47 +
48 +LICENSE="LGPL-2.1"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="doc +perl +python static-libs"
52 +
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +RDEPEND="perl? ( dev-lang/perl:= )
56 + python? ( ${PYTHON_DEPS} )"
57 +
58 +DEPEND="${RDEPEND}
59 + sys-devel/autoconf-archive
60 + sys-devel/bison
61 + sys-devel/flex
62 + doc? ( dev-lang/perl )
63 + perl? ( dev-lang/swig )
64 + python? ( dev-lang/swig )"
65 +
66 +S=${WORKDIR}/apparmor-${MY_PV}/libraries/${PN}
67 +
68 +RESTRICT="test"
69 +
70 +src_prepare() {
71 + rm -r m4 || die "failed to remove bundled macros"
72 + epatch "${FILESDIR}"/${PN}-2.10-symbol_visibility.patch
73 + autotools-utils_src_prepare
74 + use python && distutils-r1_src_prepare
75 +}
76 +
77 +src_configure() {
78 + local myeconfargs=(
79 + $(use_with perl) \
80 + $(use_with python)
81 + )
82 +
83 + autotools-utils_src_configure
84 +}
85 +
86 +src_compile() {
87 + autotools-utils_src_compile -C src
88 + autotools-utils_src_compile -C include
89 + use doc && autotools-utils_src_compile -C doc
90 + use perl && autotools-utils_src_compile -C swig/perl
91 +
92 + if use python ; then
93 + pushd "${BUILD_DIR}"/swig/python > /dev/null
94 + emake libapparmor_wrap.c
95 + distutils-r1_src_compile
96 + popd > /dev/null
97 + fi
98 +}
99 +
100 +src_install() {
101 + autotools-utils_src_install -C src
102 + autotools-utils_src_install -C include
103 + use doc && autotools-utils_src_install -C doc
104 +
105 + if use perl ; then
106 + autotools-utils_src_install -C swig/perl
107 + perl_set_version
108 + insinto "${VENDOR_ARCH}"
109 + doins "${BUILD_DIR}"/swig/perl/LibAppArmor.pm
110 +
111 + # bug 620886
112 + perl_delete_localpod
113 + perl_fix_packlist
114 + fi
115 +
116 + if use python ; then
117 + pushd "${BUILD_DIR}"/swig/python > /dev/null
118 + distutils-r1_src_install
119 +
120 + python_moduleinto LibAppArmor
121 + python_foreach_impl python_domodule LibAppArmor.py
122 + popd > /dev/null
123 + fi
124 +}