From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/dbskkd-cdb/
Date: Fri, 23 Jul 2021 20:23:07 +0000 (UTC) [thread overview]
Message-ID: <1627071775.9018f3d89c0f29a4eccc69220570e8c2c2ed9413.conikost@gentoo> (raw)
commit: 9018f3d89c0f29a4eccc69220570e8c2c2ed9413
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 23 20:21:38 2021 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> 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 <conikost <AT> 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
+}
next reply other threads:[~2021-07-23 20:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 20:23 Conrad Kostecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-02 7:48 [gentoo-commits] repo/gentoo:master commit in: app-i18n/dbskkd-cdb/ Joonas Niilola
2021-07-23 20:23 Conrad Kostecki
2017-07-23 13:29 Akinori Hattori
2017-06-25 7:03 Akinori Hattori
2017-06-25 6:57 Akinori Hattori
2017-06-25 6:57 Akinori Hattori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1627071775.9018f3d89c0f29a4eccc69220570e8c2c2ed9413.conikost@gentoo \
--to=conikost@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox