summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-06-25 16:03:26 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-06-25 16:03:26 +0900
commit9115c1092e55b1613f8b72cf78178530abae5b94 (patch)
treed5f044f8347692e06a2bf2c83f0f6cb7706a0f41 /app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild
parentapp-i18n/dbskkd-cdb: update to EAPI 6 (diff)
downloadgentoo-9115c1092e55b1613f8b72cf78178530abae5b94.tar.gz
gentoo-9115c1092e55b1613f8b72cf78178530abae5b94.tar.bz2
gentoo-9115c1092e55b1613f8b72cf78178530abae5b94.zip
app-i18n/dbskkd-cdb: new upstream release
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild')
-rw-r--r--app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild
new file mode 100644
index 000000000000..f0b65cf2df1b
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit flag-o-matic toolchain-funcs user
+
+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"
+IUSE=""
+
+DEPEND="|| (
+ dev-db/tinycdb
+ dev-db/cdb
+ )"
+RDEPEND="app-i18n/skk-jisyo[cdb]
+ sys-apps/xinetd"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+)
+DOCS="*.md"
+
+pkg_setup() {
+ enewuser dbskkd -1 -1 -1
+}
+
+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 ${PN}
+ einstalldocs
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/${PN}.xinetd ${PN}
+}