1 |
commit: 0a7b0ae182e07e30d40cb4e1178f4710469a0ac6 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 11:40:33 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 11:40:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a7b0ae1 |
7 |
|
8 |
app-i18n/xcin: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742044 |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild | 70 +++++++++++++++++++-------------- |
15 |
1 file changed, 40 insertions(+), 30 deletions(-) |
16 |
|
17 |
diff --git a/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild |
18 |
index 3950d850a1c..dcd1696d1c4 100644 |
19 |
--- a/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild |
20 |
+++ b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild |
21 |
@@ -1,14 +1,16 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI="4" |
27 |
-inherit multilib eutils autotools libtool |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit autotools |
31 |
|
32 |
MY_P=${PN}_2.5.2.99.pre2+cvs20030224 |
33 |
|
34 |
DESCRIPTION="Chinese X Input Method" |
35 |
HOMEPAGE="http://cle.linux.org.tw/xcin/" |
36 |
-SRC_URI="mirror://debian/pool/main/x/${PN}/${MY_P}.orig.tar.gz |
37 |
+SRC_URI=" |
38 |
+ mirror://debian/pool/main/x/${PN}/${MY_P}.orig.tar.gz |
39 |
mirror://debian/pool/main/x/${PN}/${MY_P}-1.4.diff.gz" |
40 |
|
41 |
LICENSE="XCIN GPL-2" |
42 |
@@ -16,38 +18,42 @@ SLOT="0" |
43 |
KEYWORDS="~amd64 ppc x86" |
44 |
IUSE="debug nls unicode" |
45 |
|
46 |
-RDEPEND=">=sys-libs/db-4.5 |
47 |
- >=app-i18n/libtabe-0.2.6 |
48 |
- unicode? ( media-fonts/hkscs-ming |
49 |
- media-fonts/arphicfonts ) |
50 |
+RDEPEND=" |
51 |
app-i18n/libchewing |
52 |
- x11-libs/libX11" |
53 |
-DEPEND="${RDEPEND} |
54 |
- nls? ( sys-devel/gettext )" |
55 |
+ >=app-i18n/libtabe-0.2.6 |
56 |
+ >=sys-libs/db-4.5 |
57 |
+ x11-libs/libX11 |
58 |
+ unicode? ( media-fonts/arphicfonts )" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND="nls? ( sys-devel/gettext )" |
61 |
|
62 |
S="${WORKDIR}/${MY_P/_/-}" |
63 |
|
64 |
+PATCHES=( |
65 |
+ "${WORKDIR}"/${MY_P}-1.4.diff |
66 |
+ "${FILESDIR}"/${P}-glibc-2.10.patch |
67 |
+ "${FILESDIR}"/${P}-make.patch |
68 |
+ "${FILESDIR}"/${P}-ldflags.patch |
69 |
+) |
70 |
+ |
71 |
src_prepare() { |
72 |
- epatch \ |
73 |
- "${WORKDIR}"/${MY_P}-1.4.diff \ |
74 |
- "${FILESDIR}"/${P}-glibc-2.10.patch \ |
75 |
- "${FILESDIR}"/${P}-make.patch \ |
76 |
- "${FILESDIR}"/${P}-ldflags.patch |
77 |
- rm -f configure |
78 |
- cd script |
79 |
- elibtoolize |
80 |
+ default |
81 |
+ |
82 |
+ rm configure || die |
83 |
+ cd script || die |
84 |
+ mv configure.{in,ac} || die |
85 |
eautoreconf |
86 |
- mv configure ../ |
87 |
+ mv configure .. || die |
88 |
} |
89 |
|
90 |
src_configure() { |
91 |
econf \ |
92 |
--disable-static \ |
93 |
- --with-xcin-rcdir="${EPREFIX}/etc" \ |
94 |
- --with-xcin-dir="${EPREFIX}/usr/$(get_libdir)/xcin25" \ |
95 |
- --with-db-lib="${EPREFIX}/usr/$(get_libdir)" \ |
96 |
- --with-tabe-inc="${EPREFIX}/usr/include/tabe" \ |
97 |
- --with-tabe-lib="${EPREFIX}/usr/$(get_libdir)" \ |
98 |
+ --with-xcin-rcdir="${EPREFIX}"/etc \ |
99 |
+ --with-xcin-dir="${EPREFIX}"/usr/$(get_libdir)/xcin25 \ |
100 |
+ --with-db-lib="${EPREFIX}"/usr/$(get_libdir) \ |
101 |
+ --with-tabe-inc="${EPREFIX}"/usr/include/tabe \ |
102 |
+ --with-tabe-lib="${EPREFIX}"/usr/$(get_libdir) \ |
103 |
$(use_enable debug) |
104 |
} |
105 |
|
106 |
@@ -61,16 +67,20 @@ src_install() { |
107 |
program_prefix="${D}" \ |
108 |
install |
109 |
|
110 |
- find "${ED}" -name "*.la" -type f -delete || die |
111 |
+ # no static archives |
112 |
+ find "${ED}" -name '*.la' -delete || die |
113 |
|
114 |
+ local docdir |
115 |
for docdir in doc doc/En doc/En/internal doc/history doc/internal doc/modules; do |
116 |
docinto ${docdir#doc/} |
117 |
- for doc in $(find ${docdir} -maxdepth '1' -type 'f'); do |
118 |
+ |
119 |
+ local doc |
120 |
+ while IFS="" read -d $'\0' -r doc; do |
121 |
if use unicode; then |
122 |
- iconv -f BIG5 -t UTF-8 --output=${doc}.UTF-8 ${doc} |
123 |
- mv ${doc}.UTF-8 ${doc} |
124 |
+ iconv -f BIG5 -t UTF-8 --output=${doc}.UTF-8 ${doc} || die |
125 |
+ mv ${doc}.UTF-8 ${doc} || die |
126 |
fi |
127 |
dodoc ${doc} |
128 |
- done |
129 |
+ done < <(find ${docdir} -maxdepth '1' -type f -print0) |
130 |
done |
131 |
} |