diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-07-23 22:21:38 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-07-23 22:22:55 +0200 |
commit | 9018f3d89c0f29a4eccc69220570e8c2c2ed9413 (patch) | |
tree | 37ab178f981ab934804a954999392b23a91353eb /app-i18n/dbskkd-cdb | |
parent | acct-user/dbskkd: add user (146) dbskkd (diff) | |
download | gentoo-9018f3d89c0f29a4eccc69220570e8c2c2ed9413.tar.gz gentoo-9018f3d89c0f29a4eccc69220570e8c2c2ed9413.tar.bz2 gentoo-9018f3d89c0f29a4eccc69220570e8c2c2ed9413.zip |
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@gentoo.org>
Diffstat (limited to 'app-i18n/dbskkd-cdb')
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-2.00-r1.ebuild | 62 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild | 63 |
2 files changed, 125 insertions, 0 deletions
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 000000000000..f63e8826adc0 --- /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 000000000000..6280316c12af --- /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 +} |