commit:     7f5027649b1a38ab7ed633071e3cc12e344e8d68
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 25 06:19:24 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sun Jun 25 06:19:24 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f502764

app-i18n/yaskkserv: avoid phase function call

Gentoo-Bug: 596620

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-i18n/yaskkserv/files/yaskkserv.initd  |  6 +++---
 app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild | 32 +++++++++++++++++--------------
 2 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/app-i18n/yaskkserv/files/yaskkserv.initd 
b/app-i18n/yaskkserv/files/yaskkserv.initd
index 7e081d1938b..b9ae738b92a 100644
--- a/app-i18n/yaskkserv/files/yaskkserv.initd
+++ b/app-i18n/yaskkserv/files/yaskkserv.initd
@@ -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

diff --git a/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild 
b/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
index 2c06cd1815e..0d0ae48356c 100644
--- a/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
+++ b/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
@@ -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
+}

Reply via email to