diff options
Diffstat (limited to 'app-i18n/dbskkd-cdb')
-rw-r--r-- | app-i18n/dbskkd-cdb/Manifest | 7 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild | 61 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild | 61 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch | 24 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd | 11 | ||||
-rw-r--r-- | app-i18n/dbskkd-cdb/metadata.xml | 11 |
6 files changed, 175 insertions, 0 deletions
diff --git a/app-i18n/dbskkd-cdb/Manifest b/app-i18n/dbskkd-cdb/Manifest new file mode 100644 index 000000000000..d7554b35406d --- /dev/null +++ b/app-i18n/dbskkd-cdb/Manifest @@ -0,0 +1,7 @@ +AUX dbskkd-cdb-gentoo.patch 505 BLAKE2B c97ca86f77514ee8a887a2091449a44aa20180c4e5f10582656cb298f7a361b16dd7bfed7cb4a7b6a1a3543218f63e3f3b6706a5cb8b078c10c5b5f83828eb72 SHA512 015ffd8bb191ef1d16ce367fb9e8dd6cbade11f5fe24e4302f9781b679f07bd37376bee1a04e34e439f1b8858c4dda4a39a008bd421cca7097cb6762389dcadf +AUX dbskkd-cdb.xinetd 239 BLAKE2B 46b6b7bafff05f00ea2d1e6420cf443e490e2692ec96065b25c14e41ca7adfbec80d3d9a2dbbe5c848c81a6da7da0a19a2815ef4af5320e2a4a91539abbe1e39 SHA512 a7efd15b7676b857b2adcc23df023f5af8d29a7357b77ab3fcb494fe6cbd401b28caf51f4f3ded5432bed0a3f1d29b0cc65148f3a8e083ebce70a0aca0437915 +DIST dbskkd-cdb-2.00.tar.gz 9296 BLAKE2B d863e2a05cdcf9c8c030c2e3cc2a46a22f5bb01d844ee5120d686a672952ff2609f994fe8a4915daa5b293357f3da87cc9f702f7307dc162a20ffd0a7d47f804 SHA512 3582728d2a1917c00437b273208fa150a5a32dcd462752c6751ddbd574ca7f1476b2aca0d2613471a800bd17f80e2c4b60846f9056ae621996f8f5a5592fa22a +DIST dbskkd-cdb-3.00.tar.gz 9380 BLAKE2B 81b167485a0ac287c01a5cab2fc638d4303bb8e1529dfc14b89ba8242915de38165acba5d0df00714bf8b1c5b190b3cf655e654e96bae5081bd3fba1f71e7a6a SHA512 a3fe5a0f2e96828d22a75e4daf36eecaa8d903efe8c8a5f6972178f52dc01cac5df5f3e1d8a2cf684d6b78a9c10c207b655a296ceb456dec9f0e502142de094b +EBUILD dbskkd-cdb-2.00.ebuild 1225 BLAKE2B a4d0f6a2475aea89ab4db9ab852592e18ee4aab70f171e04cd2431ce46d018fd4e5ae5d271908b0b69c68f4957da27ff7a6b48f6dbc58ce12ea65652d57a1780 SHA512 89a38d92e9573336aca31c3e0f2cca6398d864c1790703aa5691ac8c10cc9260603dcb192863c9fbeaeacc1618ff0163c1ea8c037f3e82155553025956a7d6ed +EBUILD dbskkd-cdb-3.00.ebuild 1179 BLAKE2B 71aa41006a1b373cc292a17352dd40ef23f440af34ec3471086e97331de0c98b520b4beab2f62b0198f56641ca0178bd29500fab882cb714dd8d0cc063f4e819 SHA512 84b38add6d9befc6280e1cdb6265a54902b505b939e4c9c39d41bbfa131934a9d7c30edac39c7a65faaf5fdb2ee0a150a419647c36d2aa6277f5480eef4dba2d +MISC metadata.xml 326 BLAKE2B 5471d3951565efeb1d626e1189d835e9c70ec80fe1a877698380019aae8ba8ed9e48ae9d1eb4f70ae9386162dd3fd5f402a764291c22ec6f6ae9893ed5f15c80 SHA512 56d019cc1f6e39d358e431b910f36dced992bb1f202bf7ef405979633383301751e853e19eaaaa84408a71699bcf63480575a081a5981a49022a0fc0d32cda2f diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild new file mode 100644 index 000000000000..a1acbae2b9ab --- /dev/null +++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild @@ -0,0 +1,61 @@ +# 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://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +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="CHANGES README* *.txt" + +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} +} 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..d8cb4b874391 --- /dev/null +++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild @@ -0,0 +1,61 @@ +# 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} +} diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch new file mode 100644 index 000000000000..0fe0b8a31ea3 --- /dev/null +++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch @@ -0,0 +1,24 @@ +--- a/Makefile ++++ b/Makefile +@@ -6,7 +6,7 @@ + INSTALLDIR = /usr/local/libexec + + .c.o: +- $(CC) $(COMPAT) $(PRIVATE) -c $*.c ++ $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c $*.c + + all: dbskkd-cdb + +@@ -14,11 +14,10 @@ + /bin/rm -f dbskkd-cdb *.o + + dbskkd-cdb: dbskkd-cdb.o +- $(CC) $(COMPAT) $(PRIVATE) -o dbskkd-cdb \ ++ $(CC) $(LDFLAGS) $(COMPAT) $(PRIVATE) -o dbskkd-cdb \ + dbskkd-cdb.o ${CDBLIB} + + dbskkd-cdb.o: dbskkd-cdb.c +- $(CC) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c + + error.o: error.c error.h + diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd new file mode 100644 index 000000000000..98b1b501ef7e --- /dev/null +++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd @@ -0,0 +1,11 @@ +service skkserv +{ + disable = yes + socket_type = stream + wait = no + user = dbskkd + server = /usr/libexec/dbskkd-cdb + only_from = 127.0.0.1 + log_on_failure += USERID + port = 1178 +} diff --git a/app-i18n/dbskkd-cdb/metadata.xml b/app-i18n/dbskkd-cdb/metadata.xml new file mode 100644 index 000000000000..e6d1445169e6 --- /dev/null +++ b/app-i18n/dbskkd-cdb/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <upstream> + <remote-id type="github">jj1bdx/dbskkd-cdb</remote-id> + </upstream> +</pkgmetadata> |