1 |
commit: 94afb8682a30f5e6d1b45c01cd863e0782cf54f5 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 18 19:11:31 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 18 19:11:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94afb868 |
7 |
|
8 |
dev-util/biew: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-util/biew/biew-6.1.0-r3.ebuild | 43 +++++++++++++++++++------------------- |
14 |
1 file changed, 22 insertions(+), 21 deletions(-) |
15 |
|
16 |
diff --git a/dev-util/biew/biew-6.1.0-r3.ebuild b/dev-util/biew/biew-6.1.0-r3.ebuild |
17 |
index d35ab26a959..9c225d4a5e5 100644 |
18 |
--- a/dev-util/biew/biew-6.1.0-r3.ebuild |
19 |
+++ b/dev-util/biew/biew-6.1.0-r3.ebuild |
20 |
@@ -1,15 +1,15 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=4 |
26 |
-inherit eutils flag-o-matic toolchain-funcs versionator |
27 |
+EAPI=7 |
28 |
|
29 |
-MY_P=${PN}-$(replace_all_version_separators "") |
30 |
+inherit flag-o-matic toolchain-funcs |
31 |
+ |
32 |
+MY_P=${PN}-$(ver_rs 1- "") |
33 |
|
34 |
DESCRIPTION="A portable viewer of binary files, hexadecimal and disassembler modes" |
35 |
HOMEPAGE="http://beye.sourceforge.net/" |
36 |
SRC_URI="mirror://sourceforge/beye/${PV}/${MY_P}-src.tar.bz2" |
37 |
-S=${WORKDIR}/${MY_P} |
38 |
|
39 |
LICENSE="GPL-2" |
40 |
SLOT="0" |
41 |
@@ -20,30 +20,31 @@ REQUIRED_USE="cpu_flags_x86_mmx cpu_flags_x86_sse" |
42 |
RDEPEND="gpm? ( sys-libs/gpm )" |
43 |
DEPEND="${RDEPEND}" |
44 |
|
45 |
-pkg_setup() { |
46 |
- append-flags -mmmx -msse #362043 |
47 |
-} |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${PN}-610-fix_localedep-1.patch |
52 |
+ "${FILESDIR}"/${PN}-610-portable_configure-1.patch |
53 |
+ "${FILESDIR}"/${PN}-610-crash.patch |
54 |
+) |
55 |
|
56 |
src_prepare() { |
57 |
- epatch "${FILESDIR}/${PN}-610-fix_localedep-1.patch" |
58 |
- epatch "${FILESDIR}/${PN}-610-portable_configure-1.patch" |
59 |
- epatch "${FILESDIR}/${PN}-610-crash.patch" |
60 |
- sed -i -e 's^man/man1/biew.1^share/man/man1/biew.1^' makefile || die "Failed to edit makefile." |
61 |
+ default |
62 |
+ sed -i -e 's^man/man1/biew.1^share/man/man1/biew.1^' makefile || die |
63 |
} |
64 |
|
65 |
src_configure() { |
66 |
- if use gpm; then |
67 |
- append-cppflags -DHAVE_MOUSE |
68 |
- else |
69 |
- append-cppflags -UHAVE_MOUSE |
70 |
- fi |
71 |
- ./configure --datadir=/usr/share/${PN} \ |
72 |
- --prefix=/usr \ |
73 |
+ append-flags -mmmx -msse #362043 |
74 |
+ append-cppflags $(usex gpm -DHAVE_MOUSE -UHAVE_MOUSE) |
75 |
+ |
76 |
+ ./configure \ |
77 |
+ --datadir="${EPREFIX}"/usr/share/${PN} \ |
78 |
+ --prefix="${EPREFIX}"/usr \ |
79 |
--cc="$(tc-getCC)" \ |
80 |
--ld="$(tc-getCC)" \ |
81 |
--ar="$(tc-getAR) -rcu" \ |
82 |
--as="$(tc-getAS)" \ |
83 |
- --ranlib="$(tc-getRANLIB)" || die "configure failed." |
84 |
+ --ranlib="$(tc-getRANLIB)" || die "configure failed" |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
@@ -51,7 +52,7 @@ src_compile() { |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
- emake DESTDIR="${D}" install |
93 |
+ default |
94 |
dodoc doc/{biew_en,release,unix}.txt |
95 |
} |