Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/multiskkserv/files/, app-i18n/multiskkserv/
Date: Sat, 01 Jul 2017 13:29:32
Message-Id: 1498915532.d3e2a8d5314f00b8e8c8d838ef83d73d58e0b288.hattya@gentoo
1 commit: d3e2a8d5314f00b8e8c8d838ef83d73d58e0b288
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 1 13:25:32 2017 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 1 13:25:32 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3e2a8d5
7
8 app-i18n/multiskkserv: update to EAPI 6
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 .../{multiskkserv.conf => multiskkserv.confd} | 4 ---
13 app-i18n/multiskkserv/files/multiskkserv.initd | 30 +++++-----------------
14 app-i18n/multiskkserv/metadata.xml | 8 +++---
15 app-i18n/multiskkserv/multiskkserv-20100128.ebuild | 29 ++++++++-------------
16 4 files changed, 21 insertions(+), 50 deletions(-)
17
18 diff --git a/app-i18n/multiskkserv/files/multiskkserv.conf b/app-i18n/multiskkserv/files/multiskkserv.confd
19 similarity index 67%
20 rename from app-i18n/multiskkserv/files/multiskkserv.conf
21 rename to app-i18n/multiskkserv/files/multiskkserv.confd
22 index 12ca62e3987..eaaa90def3f 100644
23 --- a/app-i18n/multiskkserv/files/multiskkserv.conf
24 +++ b/app-i18n/multiskkserv/files/multiskkserv.confd
25 @@ -1,6 +1,3 @@
26 -# Copyright 1999-2004 Gentoo Foundation
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 # Config file for /etc/init.d/multiskkserv
30
31 # define which SKK-JISYO to use (you may define multiple files)
32 @@ -11,4 +8,3 @@
33 #
34
35 SKKJISYO_CDB="SKK-JISYO.L.cdb"
36 -
37
38 diff --git a/app-i18n/multiskkserv/files/multiskkserv.initd b/app-i18n/multiskkserv/files/multiskkserv.initd
39 index 43fd803993f..31c447da9d5 100644
40 --- a/app-i18n/multiskkserv/files/multiskkserv.initd
41 +++ b/app-i18n/multiskkserv/files/multiskkserv.initd
42 @@ -1,30 +1,12 @@
43 #!/sbin/openrc-run
44 -# Copyright 1999-2012 Gentoo Foundation
45 +# Copyright 1999-2017 Gentoo Foundation
46 # Distributed under the terms of the GNU General Public License v2
47
48 +command="/usr/sbin/${RC_SVCNAME}"
49 +command_args="-r /usr/share/skk ${SKKJISYO_CDB}"
50 +command_background="true"
51 +pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
52 +
53 depend() {
54 need net
55 }
56 -
57 -start() {
58 - if [ -e /var/run/multiskkserv.pid ] ; then
59 - eerror "Anothor pid file is detected."
60 - eerror "If you are sure any multiskkserv is not running,"
61 - eerror "please rm /var/run/multiskkserv manually."
62 - fi
63 -
64 - ebegin "Starting multiskkserv"
65 - start-stop-daemon --start --quiet --background \
66 - --make-pidfile --pidfile /var/run/multiskkserv.pid \
67 - /usr/sbin/multiskkserv -- \
68 - -r /usr/share/skk ${SKKJISYO_CDB}
69 - eend $?
70 -}
71 -
72 -stop() {
73 - ebegin "Stopping multiskkserv"
74 - start-stop-daemon --stop --quiet -R 5 \
75 - --pidfile /var/run/multiskkserv.pid \
76 - --exec /usr/sbin/multiskkserv
77 - eend $?
78 -}
79
80 diff --git a/app-i18n/multiskkserv/metadata.xml b/app-i18n/multiskkserv/metadata.xml
81 index c921b96adf6..e1a49f49888 100644
82 --- a/app-i18n/multiskkserv/metadata.xml
83 +++ b/app-i18n/multiskkserv/metadata.xml
84 @@ -1,8 +1,8 @@
85 <?xml version="1.0" encoding="UTF-8"?>
86 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
87 <pkgmetadata>
88 -<maintainer type="project">
89 - <email>cjk@g.o</email>
90 - <name>Cjk</name>
91 -</maintainer>
92 + <maintainer type="project">
93 + <email>cjk@g.o</email>
94 + <name>Cjk</name>
95 + </maintainer>
96 </pkgmetadata>
97
98 diff --git a/app-i18n/multiskkserv/multiskkserv-20100128.ebuild b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
99 index 0f34d617864..b6ec66dc57b 100644
100 --- a/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
101 +++ b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
102 @@ -1,9 +1,9 @@
103 -# Copyright 1999-2013 Gentoo Foundation
104 +# Copyright 1999-2017 Gentoo Foundation
105 # Distributed under the terms of the GNU General Public License v2
106
107 -EAPI="5"
108 +EAPI="6"
109
110 -inherit autotools eutils
111 +inherit autotools
112
113 DESCRIPTION="SKK server that handles multiple dictionaries"
114 HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
115 @@ -14,16 +14,15 @@ SLOT="0"
116 KEYWORDS="amd64 ppc x86"
117 IUSE="test"
118
119 -DEPEND="app-arch/xz-utils
120 - dev-db/cdb
121 +DEPEND="dev-db/cdb
122 test? ( app-i18n/nkf )"
123 -RDEPEND="|| (
124 - >=app-i18n/skk-jisyo-200705[cdb]
125 - app-i18n/skk-jisyo-cdb
126 - )"
127 +RDEPEND="app-i18n/skk-jisyo[cdb]"
128 +
129 +PATCHES=( "${FILESDIR}"/${P}-cdb.patch )
130
131 src_prepare() {
132 - epatch "${FILESDIR}"/${P}-cdb.patch
133 + default
134 + mv configure.{in,ac}
135 eautoreconf
136 }
137
138 @@ -34,12 +33,6 @@ src_configure() {
139 src_install() {
140 default
141
142 - newconfd "${FILESDIR}"/multiskkserv.conf multiskkserv
143 - newinitd "${FILESDIR}"/multiskkserv.initd multiskkserv
144 -}
145 -
146 -pkg_postinst() {
147 - elog "By default, multiskkserv will look up only SKK-JISYO.L.cdb."
148 - elog "If you want to use more dictionaries,"
149 - elog "edit /etc/conf.d/multiskkserv manually."
150 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
151 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
152 }