Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/canna/
Date: Sat, 19 Jun 2021 22:54:54
Message-Id: 1624143270.290951188f0e3abd163d561860508bdacf982160.soap@gentoo
1 commit: 290951188f0e3abd163d561860508bdacf982160
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 19 22:54:30 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 19 22:54:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29095118
7
8 app-i18n/canna: Port to EAPI 7
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 ...nna-3.7_p3-r3.ebuild => canna-3.7_p3-r4.ebuild} | 58 +++++++++++-----------
13 1 file changed, 29 insertions(+), 29 deletions(-)
14
15 diff --git a/app-i18n/canna/canna-3.7_p3-r3.ebuild b/app-i18n/canna/canna-3.7_p3-r4.ebuild
16 similarity index 74%
17 rename from app-i18n/canna/canna-3.7_p3-r3.ebuild
18 rename to app-i18n/canna/canna-3.7_p3-r4.ebuild
19 index 9540c471791..998ca0d1f7f 100644
20 --- a/app-i18n/canna/canna-3.7_p3-r3.ebuild
21 +++ b/app-i18n/canna/canna-3.7_p3-r4.ebuild
22 @@ -1,7 +1,7 @@
23 # Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI="6"
27 +EAPI=7
28
29 inherit autotools cannadic toolchain-funcs
30
31 @@ -10,17 +10,20 @@ MY_P="Canna${PV//[._]/}"
32 DESCRIPTION="A client-server based Kana-Kanji conversion system"
33 HOMEPAGE="http://canna.osdn.jp/"
34 SRC_URI="mirror://sourceforge.jp/${PN}/9565/${MY_P}.tar.bz2"
35 +S="${WORKDIR}/${MY_P}"
36
37 LICENSE="MIT GPL-2"
38 SLOT="0"
39 KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
40 IUSE="canuum doc ipv6"
41
42 -RDEPEND="canuum? (
43 +RDEPEND="
44 + canuum? (
45 dev-libs/libspt
46 sys-libs/ncurses:=
47 )"
48 -DEPEND="${RDEPEND}
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="
51 x11-misc/gccmakedep
52 x11-misc/imake
53 canuum? ( virtual/pkgconfig )
54 @@ -29,7 +32,6 @@ DEPEND="${RDEPEND}
55 dev-texlive/texlive-langjapanese
56 dev-texlive/texlive-latexrecommended
57 )"
58 -S="${WORKDIR}/${MY_P}"
59
60 PATCHES=(
61 "${FILESDIR}"/${PN}-gentoo.patch
62 @@ -41,21 +43,18 @@ PATCHES=(
63 "${FILESDIR}"/${PN}-Wformat-security.patch
64 )
65
66 -DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
67 -
68 src_prepare() {
69 default
70
71 sed -i \
72 -e "/DefLibCannaDir/s:/lib$:/$(get_libdir):" \
73 -e "/UseInet6/s:0:$(usex ipv6 1 0):" \
74 - ${PN^c}.conf
75 + ${PN^c}.conf || die
76
77 if use canuum; then
78 - cd canuum
79 - mv configure.{in,ac}
80 + cd canuum || die
81 + mv configure.{in,ac} || die
82 eautoreconf
83 - cd - > /dev/null
84 fi
85 }
86
87 @@ -63,17 +62,17 @@ src_configure() {
88 xmkmf -a || die
89
90 if use canuum; then
91 - cd canuum
92 + pushd canuum >/dev/null || die
93 xmkmf -a || die
94 # workaround for sys-libs/ncurses[tinfo]
95 - sed -i "/^TERMCAP_LIB/s:=.*:=$($(tc-getPKG_CONFIG) --libs ncurses):" Makefile
96 - cd - > /dev/null
97 + sed -i "/^TERMCAP_LIB/s:=.*:=$($(tc-getPKG_CONFIG) --libs ncurses):" Makefile || die
98 + popd >/dev/null || die
99 fi
100
101 if use doc; then
102 - cd doc/man/guide/tex
103 + pushd doc/man/guide/tex >/dev/null || die
104 xmkmf -a || die
105 - cd - > /dev/null
106 + popd >/dev/null || die
107 fi
108 }
109
110 @@ -84,7 +83,7 @@ src_compile() {
111 CDEBUGFLAGS="${CFLAGS}" \
112 LOCAL_LDFLAGS="${LDFLAGS}" \
113 SHLIBGLOBALSFLAGS="${LDFLAGS}" \
114 - ${PN}
115 + canna
116
117 if use canuum; then
118 einfo "Compiling canuum"
119 @@ -103,14 +102,15 @@ src_compile() {
120 JLATEXCMD="platex -kanji=euc" \
121 DVI2PSCMD="dvips" \
122 VARTEXFONTS="${T}"/fonts \
123 - ${PN}.ps \
124 - ${PN}.pdf
125 + canna.ps \
126 + canna.pdf
127 fi
128 }
129
130 src_install() {
131 emake DESTDIR="${D}" install install.man
132 einstalldocs
133 + dodoc *CHANGES* INSTALL* RKCCONF* WHATIS*
134
135 if use canuum; then
136 emake -C canuum DESTDIR="${D}" install install.man
137 @@ -120,26 +120,26 @@ src_install() {
138
139 if use doc; then
140 insinto /usr/share/doc/${PF}
141 - doins doc/man/guide/tex/${PN}.{dvi,ps,pdf}
142 + doins doc/man/guide/tex/canna.{dvi,ps,pdf}
143 fi
144
145 # for backward compatibility
146 dosbin "${FILESDIR}"/update-canna-dics_dir
147
148 - keepdir /var/lib/${PN}/dic/{user,group}
149 - fowners bin:bin /var/lib/${PN}/dic/{user,group}
150 - fperms 0775 /var/lib/${PN}/dic/{user,group}
151 + keepdir /var/lib/canna/dic/{user,group}
152 + fowners bin:bin /var/lib/canna/dic/{user,group}
153 + fperms 0775 /var/lib/canna/dic/{user,group}
154
155 - insinto /var/lib/${PN}/dic/dics.d
156 - newins "${ED}"/var/lib/${PN}/dic/${PN}/dics.dir 00${PN}.dics.dir
157 + insinto /var/lib/canna/dic/dics.d
158 + newins "${ED}"/var/lib/canna/dic/canna/dics.dir 00canna.dics.dir
159
160 - keepdir /var/log/${PN}
161 + keepdir /var/log/canna
162
163 - newconfd "${FILESDIR}"/${PN}.confd ${PN}
164 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
165 + newconfd "${FILESDIR}"/canna.confd canna
166 + newinitd "${FILESDIR}"/canna.initd canna
167
168 insinto /etc
169 - newins "${FILESDIR}"/${PN}.hosts hosts.${PN}
170 + newins "${FILESDIR}"/canna.hosts hosts.canna
171 }
172
173 pkg_postinst() {
174 @@ -148,7 +148,7 @@ pkg_postinst() {
175 if ! locale -a | grep -iq "ja_JP.eucjp"; then
176 elog "Some dictionary tools in this package require ja_JP.EUC-JP locale."
177 elog
178 - elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen"
179 + elog "# echo 'ja_JP.EUC-JP EUC-JP' >> ${EROOT}/etc/locale.gen"
180 elog "# locale-gen"
181 elog
182 fi