From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 68B92138334 for ; Thu, 3 Oct 2019 12:45:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7155E084A; Thu, 3 Oct 2019 12:45:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C653E084A for ; Thu, 3 Oct 2019 12:45:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2296B34B7F0 for ; Thu, 3 Oct 2019 12:45:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E33E744 for ; Thu, 3 Oct 2019 12:45:34 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1570106703.e6049c34ad6f0070f6a6dade1e8cd434a2bfa9cf.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/yaskkserv/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/yaskkserv/Manifest app-i18n/yaskkserv/yaskkserv-1.1.1.ebuild X-VCS-Directories: app-i18n/yaskkserv/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: e6049c34ad6f0070f6a6dade1e8cd434a2bfa9cf X-VCS-Branch: master Date: Thu, 3 Oct 2019 12:45:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b6d8ded-dabb-4dcb-b920-2ceb68f918ca X-Archives-Hash: 4cca121d7520fda81ee403219b0f3329 commit: e6049c34ad6f0070f6a6dade1e8cd434a2bfa9cf Author: Akinori Hattori gentoo org> AuthorDate: Thu Oct 3 12:45:03 2019 +0000 Commit: Akinori Hattori gentoo org> CommitDate: Thu Oct 3 12:45:03 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6049c34 app-i18n/yaskkserv: new upstream release Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Akinori Hattori gentoo.org> app-i18n/yaskkserv/Manifest | 1 + app-i18n/yaskkserv/yaskkserv-1.1.1.ebuild | 79 +++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/app-i18n/yaskkserv/Manifest b/app-i18n/yaskkserv/Manifest index b2813f8272d..a6b2e7359fe 100644 --- a/app-i18n/yaskkserv/Manifest +++ b/app-i18n/yaskkserv/Manifest @@ -1 +1,2 @@ DIST yaskkserv-1.1.0.tar.xz 75108 BLAKE2B ac567d4715d1767f0690462de934768335eafe4a61010534c16b430876f81ce43ac175dcc0a2546af996dd0bef8fd4c744b475985365abe3d571a4ed3f1c3a4c SHA512 9956a9b2fe587491b7c5f76482f13f91d1c87d445f2ff7effa5ffb68efe076f54f1c63e95b980d889963ac507ed49fa37f76f9deb239da7b7409da5be025c000 +DIST yaskkserv-1.1.1.tar.xz 75136 BLAKE2B b5a26e7d12951d9256e050d543338a48a61e9b6883a0866e4f7a2d367783a5757a5a12cdd810a87e84ade5bfebdc9c24eb093c09081e1d9099ce848d435eb45e SHA512 5f421ef684011aed716e929b90ab98fb1703abe707928847d79a34815750d59df59f4dec8bef6e8ce399340aedb32688d6dd8a5d02ba9372a935ec8f1adffc29 diff --git a/app-i18n/yaskkserv/yaskkserv-1.1.1.ebuild b/app-i18n/yaskkserv/yaskkserv-1.1.1.ebuild new file mode 100644 index 00000000000..8faf1afe865 --- /dev/null +++ b/app-i18n/yaskkserv/yaskkserv-1.1.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs systemd + +DESCRIPTION="Yet Another SKK server" +HOMEPAGE="http://umiushi.org/~wac/yaskkserv/" +SRC_URI="http://umiushi.org/~wac/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnutls libressl systemd" + +RDEPEND="app-i18n/skk-jisyo + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + systemd? ( virtual/udev[systemd] )" +DEPEND="${RDEPEND} + dev-lang/perl" + +PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch ) +HTML_DOCS=( documentation/. ) + +src_configure() { + econf \ + $(use_enable gnutls) \ + $(use_enable systemd) \ + --compiler="${tc_getCXX}" +} + +src_install() { + emake DESTDIR="${D}" install_all + einstalldocs + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + + systemd_dounit examples/${PN}.socket + systemd_dounit "${FILESDIR}"/${PN}.service +} + +yaskkserv_update() { + local f + for f in "${ROOT}"/usr/share/skk/SKK-JISYO.*; do + case ${f} in + *.cdb) + ;; + *.${PN}) + [[ -f ${f%.*} ]] || rm -f "${f}" + ;; + *) + [[ ${f} -nt ${f}.${PN} ]] && ${PN}_make_dictionary "${f}" "${f}.${PN}" + ;; + 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 +}