diff options
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/dbskkd-cdb/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/app-i18n/dbskkd-cdb/Manifest b/app-i18n/dbskkd-cdb/Manifest index 662591b2f11a..8bf745e41f47 100644 --- a/app-i18n/dbskkd-cdb/Manifest +++ b/app-i18n/dbskkd-cdb/Manifest @@ -1 +1,2 @@ DIST dbskkd-cdb-2.00.tar.gz 9296 SHA256 0e434e72153dde3131aeeeafbb40eba0054d0d37cab47b1561e4cf6dda6da8bb SHA512 3582728d2a1917c00437b273208fa150a5a32dcd462752c6751ddbd574ca7f1476b2aca0d2613471a800bd17f80e2c4b60846f9056ae621996f8f5a5592fa22a WHIRLPOOL 028849c4ab2d74338b6fcaed02f3c7b1ecea6315274499233e8097e4dab0bfd6d97a693657a1db8408d4e87933f804e253fa5a2e55a96ec47ba98bc45014e603 +DIST dbskkd-cdb-3.00.tar.gz 9380 SHA256 e92ef7162c2c50a441dd864dbf21510d746174b9f1f484bfbbdca1b31c055286 SHA512 a3fe5a0f2e96828d22a75e4daf36eecaa8d903efe8c8a5f6972178f52dc01cac5df5f3e1d8a2cf684d6b78a9c10c207b655a296ceb456dec9f0e502142de094b WHIRLPOOL 67b143c9fc13182f12fdbaa8f73ac743bc0c82f6393648acea2a80081bb4f8cf5625bbe5f083e44bfacb95e8445f8e559a03a3991cd44de7d7f5d863e710499a 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} +} |