summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-18 22:50:32 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-18 22:52:59 +0900
commitf23260753a1f5de5567d61dcdef02ec41be152ef (patch)
tree475a520a213923e2d65eb7d0579a8a249ac46c04 /app-i18n/freewnn
parentapp-i18n/freewnn: fix build with -Werror=format-security (diff)
downloadgentoo-f23260753a1f5de5567d61dcdef02ec41be152ef.tar.gz
gentoo-f23260753a1f5de5567d61dcdef02ec41be152ef.tar.bz2
gentoo-f23260753a1f5de5567d61dcdef02ec41be152ef.zip
app-i18n/freewnn: new upstream release
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/freewnn')
-rw-r--r--app-i18n/freewnn/Manifest1
-rw-r--r--app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch13
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild72
-rw-r--r--app-i18n/freewnn/metadata.xml3
4 files changed, 89 insertions, 0 deletions
diff --git a/app-i18n/freewnn/Manifest b/app-i18n/freewnn/Manifest
index 746f5c8144e5..577940b63253 100644
--- a/app-i18n/freewnn/Manifest
+++ b/app-i18n/freewnn/Manifest
@@ -1 +1,2 @@
DIST FreeWnn-1.1.1-a022.tar.bz2 3137954 SHA256 3728352fe9d3352ce16884bd0a517eaf227da0cf7e6f1d09b7a3f38f6bfb6dba SHA512 938c8bff69e2f43cce265a6a84822ae08b89725837f808addb66ba202dadafa60c213638f298d9efe1257fd96f7193fd711a3dacecd803289d925d8f6ea6eaf3 WHIRLPOOL f7462c2d6214ea416c8b726b0d086911b238efd39615c4eea5d2c1a9685974ce1c9f20d23d65e861753e64d796c8b98d72682d670d48bf5da80e8051df8d7de9
+DIST FreeWnn-1.1.1-a023.tar.bz2 3147378 SHA256 88c81a9aae33151dcc66259637e5499b1fc313b7288d5b1e90d8dd6290c7a7e9 SHA512 f0b8c657f0441463c752314b7d2fd603b4df056b049d247ecd77ff8b2f2f837fed7e75ce89deabca7061d3126afd51bf301bcdd3ac429056f43bfc8e0c7c8385 WHIRLPOOL 1fa31f568346c69b2cd263ff336ae1eedb6da1d085827eb9b65634fe690f6148b4535f125881053bf6fe79de149f78af6e226c40d1ea278a4977403a36b4efd4
diff --git a/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch b/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch
new file mode 100644
index 000000000000..919492d912c6
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch
@@ -0,0 +1,13 @@
+--- a/Wnn/include/wnn_config.h
++++ b/Wnn/include/wnn_config.h
+@@ -149,8 +149,8 @@
+ #define TTY_KCODE J_EUJIS
+ #define PTY_KCODE J_EUJIS
+ # else /* !DGUX */
+-#define TTY_KCODE J_JIS
+-#define PTY_KCODE J_JIS
++#define TTY_KCODE J_EUJIS
++#define PTY_KCODE J_EUJIS
+ # endif
+ #endif
+
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild
new file mode 100644
index 000000000000..e6dae1fef125
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="FreeWnn-${PV/_alpha/-a0}"
+
+DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
+HOMEPAGE="http://freewnn.sourceforge.jp/ http://www.freewnn.org/"
+SRC_URI="mirror://sourceforge.jp/${PN}/63271/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ipv6 uum"
+
+RDEPEND="uum? ( sys-libs/ncurses:= )"
+DEPEND="${RDEPEND}
+ uum? ( virtual/pkgconfig )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-uum-EUC-JP.patch
+ "${FILESDIR}"/${PN}-Wformat-security.patch
+)
+DOCS="ChangeLog* CONTRIBUTORS"
+
+src_prepare() {
+ sed -i \
+ -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s|@mandir@/|@mandir@/ja/|" \
+ -e "s/@INSTPGMFLAGS@//" \
+ makerule.mk.in
+
+ # bug #542534
+ sed -i \
+ -e "s/egrep -v/egrep -av/" \
+ PubdicPlus/Makefile.in \
+ Wnn/pubdicplus/Makefile.in \
+ cWnn/[ct]dic/Makefile.in \
+ kWnn/kdic/Makefile.in
+
+ default
+}
+
+src_configure() {
+ econf \
+ $(use_enable uum client) \
+ $(use_with ipv6) \
+ --disable-cWnn \
+ --disable-kWnn \
+ --disable-traditional-layout \
+ --with-term-libs="$(pkg-config --libs ncurses)"
+}
+
+src_compile() {
+ default
+
+ local m
+ for m in $(find Wnn/man -name "*.man"); do
+ iconv -f EUC-JP -t UTF-8 "${m}" > "${m}".UTF-8 || die
+ mv "${m}"{.UTF-8,} || die
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+}
diff --git a/app-i18n/freewnn/metadata.xml b/app-i18n/freewnn/metadata.xml
index b05cbf372990..00f1f852743c 100644
--- a/app-i18n/freewnn/metadata.xml
+++ b/app-i18n/freewnn/metadata.xml
@@ -5,6 +5,9 @@
<email>cjk@gentoo.org</email>
<name>Cjk</name>
</maintainer>
+ <use>
+ <flag name="uum">Build uum</flag>
+ </use>
<upstream>
<remote-id type="sourceforge-jp">freewnn</remote-id>
</upstream>