app-i18n/yaskkserv: avoid phase function call
authorAkinori Hattori <hattya@gentoo.org>
Sun, 25 Jun 2017 06:19:24 +0000 (15:19 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 25 Jun 2017 06:19:24 +0000 (15:19 +0900)
Gentoo-Bug: 596620

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/yaskkserv/files/yaskkserv.initd
app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild

index 7e081d1938b72fdfa1f6fd22981fe8c4c8533fac..b9ae738b92acb528770dcb60dc9aa0e5dc802304 100644 (file)
@@ -1,11 +1,11 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-command=/usr/sbin/${SVCNAME}_${YASKKSERV_SERVER_TYPE}
+command="/usr/sbin/${SVCNAME}_${YASKKSERV_SERVER_TYPE}"
 command_args="--no-daemonize ${YASKKSERV_OPTS}"
 command_background="true"
-pidfile=${pidfile:-/run/${SVCNAME}.pid}
+pidfile="${pidfile:-/run/${SVCNAME}.pid}"
 
 depend() {
        need net
index 2c06cd1815e67d02713dd583b2f1c0544ca3044c..0d0ae48356cc8c5cad7fe8e6d03bc224ba9f6634 100644 (file)
@@ -48,20 +48,7 @@ src_install() {
        systemd_dounit "${FILESDIR}"/${PN}.service
 }
 
-pkg_postinst() {
-       pkg_config
-
-       elog "You need to run:"
-       elog "  emerge --config =${CATEGORY}/${PF}"
-       elog "after updating app-i18n/skk-jisyo from next time."
-}
-
-pkg_postrm() {
-       rm -f "${ROOT}"/usr/share/skk/SKK-JISYO.*.${PN}
-       rmdir "${ROOT}"/usr/share/skk 2>/dev/null
-}
-
-pkg_config() {
+yaskkserv_update() {
        local f
        for f in "${ROOT}"/usr/share/skk/SKK-JISYO.*; do
                case ${f} in
@@ -76,3 +63,20 @@ pkg_config() {
                esac
        done
 }
+
+pkg_postinst() {
+       yaskkserv_update
+
+       elog "You need to run:"
+       elog "  emerge --config =${CATEGORY}/${PF}"
+       elog "after updating app-i18n/skk-jisyo from next time."
+}
+
+pkg_postrm() {
+       rm -f "${ROOT}"/usr/share/skk/SKK-JISYO.*.${PN}
+       rmdir "${ROOT}"/usr/share/skk 2>/dev/null
+}
+
+pkg_config() {
+       yaskkserv_update
+}