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 +}
