1 |
commit: b5c1bb58b6a37d92139d65b364f3ccd3e2a98392 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 5 18:29:27 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 20:32:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5c1bb58 |
7 |
|
8 |
sys-apps/tomoyo-tools: Port to EAPI 8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/819240 |
11 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
12 |
|
13 |
.../tomoyo-tools-2.5.0_p20130214-r1.ebuild | 26 ++++++++++++---------- |
14 |
1 file changed, 14 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214-r1.ebuild b/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214-r1.ebuild |
17 |
index e8e373515d0..025594e4dd3 100644 |
18 |
--- a/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214-r1.ebuild |
19 |
+++ b/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214-r1.ebuild |
20 |
@@ -1,29 +1,31 @@ |
21 |
# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
+EAPI=8 |
26 |
|
27 |
-inherit epatch multilib toolchain-funcs |
28 |
+inherit toolchain-funcs |
29 |
|
30 |
MY_P="${P/_p/-}" |
31 |
DESCRIPTION="TOMOYO Linux tools" |
32 |
HOMEPAGE="http://tomoyo.sourceforge.jp/" |
33 |
SRC_URI="mirror://sourceforge.jp/tomoyo/53357/${MY_P}.tar.gz" |
34 |
+S="${WORKDIR}/${PN}" |
35 |
|
36 |
LICENSE="GPL-2" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
|
40 |
-COMMON_DEPEND="sys-libs/ncurses:=" |
41 |
-DEPEND="${COMMON_DEPEND} |
42 |
- virtual/pkgconfig" |
43 |
-RDEPEND="${COMMON_DEPEND} |
44 |
+DEPEND="sys-libs/ncurses:=" |
45 |
+RDEPEND="${DEPEND} |
46 |
!sys-apps/ccs-tools" |
47 |
+BDEPEND="virtual/pkgconfig" |
48 |
|
49 |
-S="${WORKDIR}/${PN}" |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${P}-warnings.patch |
52 |
+) |
53 |
|
54 |
src_prepare() { |
55 |
- epatch "${FILESDIR}"/${P}-warnings.patch |
56 |
+ default |
57 |
|
58 |
# Fix libdir |
59 |
sed -i \ |
60 |
@@ -35,8 +37,6 @@ src_prepare() { |
61 |
-e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses)|g' \ |
62 |
usr_sbin/Makefile || die |
63 |
|
64 |
- echo "CONFIG_PROTECT=\"/usr/$(get_libdir)/tomoyo/conf\"" > "${T}/50${PN}" |
65 |
- |
66 |
tc-export CC PKG_CONFIG |
67 |
} |
68 |
|
69 |
@@ -45,10 +45,12 @@ src_install() { |
70 |
|
71 |
emake INSTALLDIR="${D}" install |
72 |
|
73 |
- doenvd "${T}/50${PN}" |
74 |
+ newenvd - 50${PN} <<- _EOF_ |
75 |
+ CONFIG_PROTECT=/usr/$(get_libdir)/tomoyo/conf |
76 |
+ _EOF_ |
77 |
|
78 |
# Fix out-of-place readme and license |
79 |
- rm "${D}"/usr/$(get_libdir)/tomoyo/{COPYING.tomoyo,README.tomoyo} || die |
80 |
+ rm "${ED}"/usr/$(get_libdir)/tomoyo/{COPYING.tomoyo,README.tomoyo} || die |
81 |
dodoc README.tomoyo |
82 |
} |