app-i18n/multiskkserv: update to EAPI 6

Package-Manager: Portage-2.3.6, Repoman-2.3.1
This commit is contained in:
Akinori Hattori
2017-07-01 22:25:32 +09:00
parent 2bbbe087ac
commit d3e2a8d531
4 changed files with 21 additions and 50 deletions

View File

@@ -1,6 +1,3 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Config file for /etc/init.d/multiskkserv
# define which SKK-JISYO to use (you may define multiple files)
@@ -11,4 +8,3 @@
#
SKKJISYO_CDB="SKK-JISYO.L.cdb"

View File

@@ -1,30 +1,12 @@
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command="/usr/sbin/${RC_SVCNAME}"
command_args="-r /usr/share/skk ${SKKJISYO_CDB}"
command_background="true"
pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
depend() {
need net
}
start() {
if [ -e /var/run/multiskkserv.pid ] ; then
eerror "Anothor pid file is detected."
eerror "If you are sure any multiskkserv is not running,"
eerror "please rm /var/run/multiskkserv manually."
fi
ebegin "Starting multiskkserv"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile /var/run/multiskkserv.pid \
/usr/sbin/multiskkserv -- \
-r /usr/share/skk ${SKKJISYO_CDB}
eend $?
}
stop() {
ebegin "Stopping multiskkserv"
start-stop-daemon --stop --quiet -R 5 \
--pidfile /var/run/multiskkserv.pid \
--exec /usr/sbin/multiskkserv
eend $?
}

View File

@@ -1,8 +1,8 @@
<?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>
<maintainer type="project">
<email>cjk@gentoo.org</email>
<name>Cjk</name>
</maintainer>
</pkgmetadata>

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
EAPI="6"
inherit autotools eutils
inherit autotools
DESCRIPTION="SKK server that handles multiple dictionaries"
HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
@@ -14,16 +14,15 @@ SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="test"
DEPEND="app-arch/xz-utils
dev-db/cdb
DEPEND="dev-db/cdb
test? ( app-i18n/nkf )"
RDEPEND="|| (
>=app-i18n/skk-jisyo-200705[cdb]
app-i18n/skk-jisyo-cdb
)"
RDEPEND="app-i18n/skk-jisyo[cdb]"
PATCHES=( "${FILESDIR}"/${P}-cdb.patch )
src_prepare() {
epatch "${FILESDIR}"/${P}-cdb.patch
default
mv configure.{in,ac}
eautoreconf
}
@@ -34,12 +33,6 @@ src_configure() {
src_install() {
default
newconfd "${FILESDIR}"/multiskkserv.conf multiskkserv
newinitd "${FILESDIR}"/multiskkserv.initd multiskkserv
}
pkg_postinst() {
elog "By default, multiskkserv will look up only SKK-JISYO.L.cdb."
elog "If you want to use more dictionaries,"
elog "edit /etc/conf.d/multiskkserv manually."
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}