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 7E9BE13933E for ; Fri, 23 Jul 2021 20:23:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C45BAE0B4B; Fri, 23 Jul 2021 20:23:11 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 B64F4E0B4B for ; Fri, 23 Jul 2021 20:23:10 +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 11740342B6B for ; Fri, 23 Jul 2021 20:23:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5976D7CB for ; Fri, 23 Jul 2021 20:23:07 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1627071775.9018f3d89c0f29a4eccc69220570e8c2c2ed9413.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/dbskkd-cdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/dbskkd-cdb/dbskkd-cdb-2.00-r1.ebuild app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild X-VCS-Directories: app-i18n/dbskkd-cdb/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 9018f3d89c0f29a4eccc69220570e8c2c2ed9413 X-VCS-Branch: master Date: Fri, 23 Jul 2021 20:23:07 +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: faeee354-3035-4d34-80be-66bbf33989f1 X-Archives-Hash: 93001f5d36f3c1e203365f1e51836aaa commit: 9018f3d89c0f29a4eccc69220570e8c2c2ed9413 Author: Conrad Kostecki gentoo org> AuthorDate: Fri Jul 23 20:21:38 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Fri Jul 23 20:22:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9018f3d8 app-i18n/dbskkd-cdb: migrate to GLEP 81 Bug: https://bugs.gentoo.org/781218 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> app-i18n/dbskkd-cdb/dbskkd-cdb-2.00-r1.ebuild | 62 ++++++++++++++++++++++++++ app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild | 63 +++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00-r1.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00-r1.ebuild new file mode 100644 index 00000000000..f63e8826adc --- /dev/null +++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="SKK dictionary server based on cdb" +HOMEPAGE="https://github.com/jj1bdx/dbskkd-cdb" +SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND="|| ( + dev-db/tinycdb + dev-db/cdb + ) +" + +RDEPEND=" + acct-group/dbskkd + acct-user/dbskkd + app-i18n/skk-jisyo[cdb] + sys-apps/xinetd +" + +PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch ) + +src_prepare() { + default + + local cdblib=() + if has_version dev-db/cdb; then + append-cflags -I"${EPREFIX}"/usr/include/cdb + local a + for a in cdb.a alloc.a buffer.a byte.a unix.a; do + cdblib+=( "${EPREFIX}"/usr/$(get_libdir)/${a} ) + done + else + cdblib+=( -lcdb ) + fi + + sed -i "/^CDBLIB/s|=.*$|= ${cdblib[*]}|" Makefile +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + COMPAT="-DJISYO_FILE=\\\"${EPREFIX}/usr/share/skk/SKK-JISYO.L.cdb\\\"" +} + +src_install() { + exeinto /usr/libexec + doexe dbskkd-cdb + dodoc *.txt + einstalldocs + + insinto /etc/xinetd.d + newins "${FILESDIR}"/dbskkd-cdb.xinetd dbskkd-cdb +} diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild new file mode 100644 index 00000000000..6280316c12a --- /dev/null +++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="SKK dictionary server based on cdb" +HOMEPAGE="https://github.com/jj1bdx/dbskkd-cdb" +SRC_URI="https://github.com/jj1bdx/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND=" + || ( + dev-db/tinycdb + dev-db/cdb + ) +" + +RDEPEND=" + acct-group/dbskkd + acct-user/dbskkd + app-i18n/skk-jisyo[cdb] + sys-apps/xinetd +" + +PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch ) + +src_prepare() { + default + + local cdblib=() + if has_version dev-db/cdb; then + append-cflags -I"${EPREFIX}"/usr/include/cdb + local a + for a in cdb.a alloc.a buffer.a byte.a unix.a; do + cdblib+=( "${EPREFIX}"/usr/$(get_libdir)/${a} ) + done + else + cdblib+=( -lcdb ) + fi + + sed -i "/^CDBLIB/s|=.*$|= ${cdblib[*]}|" Makefile +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + COMPAT="-DJISYO_FILE=\\\"${EPREFIX}/usr/share/skk/SKK-JISYO.L.cdb\\\"" +} + +src_install() { + exeinto /usr/libexec + doexe dbskkd-cdb + dodoc examples.md + einstalldocs + + insinto /etc/xinetd.d + newins "${FILESDIR}"/dbskkd-cdb.xinetd dbskkd-cdb +}