summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-18 22:38:07 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-18 22:52:58 +0900
commit93c808484b1d2a4b1b44a82abf0d6d6f6a0da705 (patch)
tree32c27d5bc822c7204ee179a892630afdf55ffcea
parentapp-i18n/freewnn: drop old (diff)
downloadgentoo-93c808484b1d2a4b1b44a82abf0d6d6f6a0da705.tar.gz
gentoo-93c808484b1d2a4b1b44a82abf0d6d6f6a0da705.tar.bz2
gentoo-93c808484b1d2a4b1b44a82abf0d6d6f6a0da705.zip
app-i18n/freewnn: update to EAPI 6
Package-Manager: Portage-2.3.6, Repoman-2.3.1
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild63
-rw-r--r--app-i18n/freewnn/metadata.xml14
2 files changed, 34 insertions, 43 deletions
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
index 0a7b948bba65..39f27f3bf6a9 100644
--- a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
@@ -1,60 +1,51 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-
-inherit eutils
+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/freewnn/59257/${MY_P}.tar.bz2"
+HOMEPAGE="http://freewnn.sourceforge.jp/ http://www.freewnn.org/"
+SRC_URI="mirror://sourceforge.jp/${PN}/59257/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm64 hppa ia64 ppc ppc64 sparc x86"
-IUSE="X ipv6"
-
-DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
-RDEPEND="${DEPEND}"
+IUSE="ipv6"
S="${WORKDIR}/${MY_P}"
-src_prepare() {
- #Change WNNOWNER to root so we don't need to add wnn user
- # and disable stripping of binary files
- sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
- -e "s/@INSTPGMFLAGS@//" makerule.mk.in \
- -e "s/@LN_S@/ln -sf/" || die
-
- #bug #318593
+PATCHES=( "${FILESDIR}"/${P}-parallel-build.patch )
+DOCS="ChangeLog* CONTRIBUTORS"
- epatch "${FILESDIR}"/${P}-parallel-build.patch #517916
-
- # 542534
- sed -i -e "s/egrep -v/egrep -av/" kWnn/kdic/Makefile.in \
- cWnn/tdic/Makefile.in cWnn/cdic/Makefile.in \
- Wnn/pubdicplus/Makefile.in || die
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -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
}
src_configure() {
econf \
+ $(use_with ipv6) \
--disable-cWnn \
- --disable-kWnn \
- --without-termcap \
- $(use_with X x) \
- $(use_with ipv6)
+ --disable-kWnn
}
src_install() {
- # install executables, libs ,dictionaries
- emake DESTDIR="${ED}" install || die
- # install man pages
- emake DESTDIR="${ED}" install.man || die
- # install docs
- dodoc ChangeLog* CONTRIBUTORS
- # install rc script
- newinitd "${FILESDIR}"/freewnn.initd freewnn
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
}
diff --git a/app-i18n/freewnn/metadata.xml b/app-i18n/freewnn/metadata.xml
index a20c4e7b6017..b05cbf372990 100644
--- a/app-i18n/freewnn/metadata.xml
+++ b/app-i18n/freewnn/metadata.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>cjk@gentoo.org</email>
- <name>Cjk</name>
- </maintainer>
- <upstream>
- <remote-id type="sourceforge-jp">freewnn</remote-id>
- </upstream>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge-jp">freewnn</remote-id>
+ </upstream>
</pkgmetadata>