1 |
commit: 137c26e86e2791c8cf73f0cb7b52cd7be965b659 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 15 19:52:27 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 15 19:52:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137c26e8 |
7 |
|
8 |
app-dicts/eblook: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742059 |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
app-dicts/eblook/eblook-1.6.1.ebuild | 13 ++++--------- |
15 |
app-dicts/eblook/files/eblook-1.6.1-LDFLAGS.patch | 20 ++++++++++++++++++++ |
16 |
2 files changed, 24 insertions(+), 9 deletions(-) |
17 |
|
18 |
diff --git a/app-dicts/eblook/eblook-1.6.1.ebuild b/app-dicts/eblook/eblook-1.6.1.ebuild |
19 |
index c99eec6320c..79e8ddff225 100644 |
20 |
--- a/app-dicts/eblook/eblook-1.6.1.ebuild |
21 |
+++ b/app-dicts/eblook/eblook-1.6.1.ebuild |
22 |
@@ -1,7 +1,7 @@ |
23 |
-# Copyright 1999-2012 Gentoo Foundation |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=4 |
28 |
+EAPI=7 |
29 |
|
30 |
DESCRIPTION="Interactive search utility for electronic dictionaries" |
31 |
HOMEPAGE="http://openlab.ring.gr.jp/edict/eblook/" |
32 |
@@ -10,19 +10,14 @@ SRC_URI="http://openlab.ring.gr.jp/edict/eblook/dist/${P/_/}.tar.gz" |
33 |
LICENSE="GPL-2" |
34 |
SLOT="0" |
35 |
KEYWORDS="~amd64 ppc x86" |
36 |
-IUSE="" |
37 |
|
38 |
DEPEND=">=dev-libs/eb-3.3.4" |
39 |
RDEPEND="${DEPEND}" |
40 |
|
41 |
S="${WORKDIR}/${P%_*}" |
42 |
|
43 |
-src_prepare() { |
44 |
- sed \ |
45 |
- -e 's:LDFAGS:LDFLAGS:g' \ |
46 |
- -i configure || die |
47 |
-} |
48 |
+PATCHES=( "${FILESDIR}"/${P}-LDFLAGS.patch ) |
49 |
|
50 |
src_configure() { |
51 |
- econf --with-eb-conf=/etc/eb.conf |
52 |
+ econf --with-eb-conf="${EPREFIX}"/etc/eb.conf |
53 |
} |
54 |
|
55 |
diff --git a/app-dicts/eblook/files/eblook-1.6.1-LDFLAGS.patch b/app-dicts/eblook/files/eblook-1.6.1-LDFLAGS.patch |
56 |
new file mode 100644 |
57 |
index 00000000000..79bb33dd029 |
58 |
--- /dev/null |
59 |
+++ b/app-dicts/eblook/files/eblook-1.6.1-LDFLAGS.patch |
60 |
@@ -0,0 +1,20 @@ |
61 |
+--- a/configure |
62 |
++++ b/configure |
63 |
+@@ -21918,7 +21918,7 @@ |
64 |
+ save_LIBS=$LIBS |
65 |
+ CPPFLAGS="$CPPFLAGS $EBCONF_PTHREAD_CPPFLAGS $EBCONF_EBINCS $EBCONF_ZLIBINCS $EBCONF_INTLINCS" |
66 |
+ CFLAGS="$CFLAGS $EBCONF_PTHREAD_CFLAGS" |
67 |
+-LDFLAGS="$LDFAGS $EBCONF_PTHREAD_LDFLAGS" |
68 |
++LDFLAGS="$LDFLAGS $EBCONF_PTHREAD_LDFLAGS" |
69 |
+ LIBS="$LIBS $EBCONF_EBLIBS $EBCONF_ZLIBLIBS $EBCONF_INTLLIBS" |
70 |
+ cat >conftest.$ac_ext <<_ACEOF |
71 |
+ /* confdefs.h. */ |
72 |
+@@ -21981,7 +21981,7 @@ |
73 |
+ sysconfdir=$sysconfdir |
74 |
+ CPPFLAGS="$CPPFLAGS $EBCONF_PTHREAD_CPPFLAGS $EBCONF_EBINCS $EBCONF_ZLIBINCS $EBCONF_INTLINCS" |
75 |
+ CFLAGS="$CFLAGS $EBCONF_PTHREAD_CFLAGS" |
76 |
+-LDFLAGS="$LDFAGS $EBCONF_PTHREAD_LDFLAGS" |
77 |
++LDFLAGS="$LDFLAGS $EBCONF_PTHREAD_LDFLAGS" |
78 |
+ LIBS="$LIBS $EBCONF_EBLIBS $EBCONF_ZLIBLIBS $EBCONF_INTLLIBS" |
79 |
+ |
80 |
+ |