diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
commit | b49088575eb777ced2551f484da86317332d6087 (patch) | |
tree | bf9a151cf2d61956340d555659ffc098ee1da466 /app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild | |
parent | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff) |
gentoo resync : 24.07.2021
Diffstat (limited to 'app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild')
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-3.00-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
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 +} |