diff options
Diffstat (limited to 'app-i18n/skk-jisyo')
-rw-r--r-- | app-i18n/skk-jisyo/Manifest | 6 | ||||
-rw-r--r-- | app-i18n/skk-jisyo/metadata.xml | 8 | ||||
-rw-r--r-- | app-i18n/skk-jisyo/skk-jisyo-201605.ebuild | 66 | ||||
-rw-r--r-- | app-i18n/skk-jisyo/skk-jisyo-999999.ebuild | 85 |
4 files changed, 165 insertions, 0 deletions
diff --git a/app-i18n/skk-jisyo/Manifest b/app-i18n/skk-jisyo/Manifest new file mode 100644 index 000000000000..f95446b8e063 --- /dev/null +++ b/app-i18n/skk-jisyo/Manifest @@ -0,0 +1,6 @@ +DIST skk-jisyo-201605.tar.xz 6288104 SHA256 170e8260bc692d43f3cd321a06cf393a02239c462e76657bcde886ddb6d2cb8d SHA512 1093d363fe571c3e3e05fa54046fc4b88cbed2fbd104838576c83694556585401c3affa0afb2ed078c6f1b06f62a7b14145b1305f6fef089f160b4073900c7a1 WHIRLPOOL f9f5ce13ba7cf86beb41214d682ad514a4181d3867afefd2daf44c829be1ae7f0bcb9c7e39f1a50fa01deab8f205226e7b3916231431e531b9ea474935f642c1 +EBUILD skk-jisyo-201605.ebuild 1309 SHA256 65275faa8ce38e063a0fdb94d90f4639034395ef42792fe9f1239092786a6c35 SHA512 856f31033950f5d7cfabb6d6833592bc4c0a88978a23650357a4d80ebf8c6c4caf0941d3c9d6069a1f8c43ff9f0d9a113148107405bab65e83781c7d961c79e1 WHIRLPOOL 0c358d83c4cc589484d8f1240d7bd8ecb2b6e2ccc06924d21a447561bc9273b4c32b694dd0950e5d1bb12853ee7d9f1398f8da7abbeb988edfe6090a9f69375d +EBUILD skk-jisyo-999999.ebuild 1713 SHA256 b175520f2f7e0fe6d36b8f345e2e65f3b1511d6f41f2b90ff8e3ba1ef30ab8dd SHA512 c80ad23b025afcbc8af327cfa2c26872097057f41a9cc9e74152e190afd81ae11247782c97468207b080b3f76aa73fc76c8e01c3cf673416bcd8ef9bdd0222e7 WHIRLPOOL 8a9fd4d3d9962d8a9297a58fcb8d9581d21dc7c311895cfe164710cde404e3526390e83b000fe49cde5659c94783762e787b7c0499e41466ef0ec3c1b6486720 +MISC ChangeLog 3543 SHA256 59de8b9c7d595b88fea5961836dc17f2aed429b3c5065b0c220d5794e86d8b10 SHA512 c68a95311988b8883f1049d748c17a6745a16730efa3b03fb0215e63709433fb5e87a2e57d20d5f12ecaa07c6695b54624eced48a10429adef39af8edf690565 WHIRLPOOL d888fb4f0b03a3129856d589e94d3e7b1c19d7f7b7e093d863243223405ed81fdef3688e0b21efddc0a11d4c2407bf3eebae1cd860b4209943ad5b392616e791 +MISC ChangeLog-2015 9332 SHA256 608347486b224b35ee642ecdc4ac2a9c60b0d29b9d7784a94c39e6e57ddf0dcd SHA512 f72d750f0c55e51310c1865426d89997d46c501d1f962836a94bda039bb0fd9434dc8a2fb44d74fcaf675b4de31179b145fb897dc0fc1e6047b2d48a16d1f2bc WHIRLPOOL 865f599626831ed189402de4ee4a763a3fb44db948cc5e2b84d9cfa644cf275b41a65ff0f4686fb5191d1a25bd636c95697706264a951005e8840cb3b382ccd5 +MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c diff --git a/app-i18n/skk-jisyo/metadata.xml b/app-i18n/skk-jisyo/metadata.xml new file mode 100644 index 000000000000..e1a49f498885 --- /dev/null +++ b/app-i18n/skk-jisyo/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild b/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild new file mode 100644 index 000000000000..098f596c803f --- /dev/null +++ b/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +MY_PN=${PN^^} + +DESCRIPTION="Jisyo (dictionary) files for the SKK Japanese-input software" +HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html" +SRC_URI="mirror://gentoo/${P}.tar.xz + https://dev.gentoo.org/~hattya/distfiles/${P}.tar.xz" + +LICENSE="GPL-2 freedist public-domain" +SLOT="0" +KEYWORDS="amd64 arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris" +IUSE="cdb" + +DEPEND="virtual/awk + cdb? ( + || ( + dev-db/tinycdb + dev-db/cdb + ) + )" +RDEPEND="" + +DOCS=( ChangeLog{,.{1..3}} READMEs/committers.txt edict_doc.txt zipcode/README.ja ) + +src_prepare() { + rm -f ${MY_PN}.{wrong*,noregist,not_wrong,hukugougo,notes,requested,pubdic+} + + default +} + +cdb_make() { + cdbmake "${1}" "${1}.tmp" +} + +tinycdb_make() { + cdb -c "${1}" +} + +src_compile() { + if use cdb; then + local cdbmake=cdb_make f + if has_version dev-db/tinycdb; then + cdbmake=tinycdb_make + fi + for f in {,zipcode/}${MY_PN}.*; do + LC_ALL=C awk ' + /^[^;]/ { + s = substr($0, index($0, " ") + 1) + print "+" length($1) "," length(s) ":" $1 "->" s + } + END { + print "" + } + ' ${f} | ${cdbmake} ${f}.cdb || die + done + fi +} + +src_install() { + insinto /usr/share/skk + doins {,zipcode/}${MY_PN}.* +} diff --git a/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild new file mode 100644 index 000000000000..a8d31cb7d6ca --- /dev/null +++ b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +inherit cvs ruby-single + +MY_PN=${PN^^} + +DESCRIPTION="Jisyo (dictionary) files for the SKK Japanese-input software" +HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html" +ECVS_SERVER="openlab.jp:/circus/cvsroot" +ECVS_MODULE="skk/dic" +ECVS_USER="guest" +ECVS_PASS="guest" + +LICENSE="GPL-2 freedist public-domain" +SLOT="0" +KEYWORDS="" +IUSE="cdb ${USE_RUBY//ruby/ruby_targets_ruby}" + +DEPEND="${RUBY_DEPS} + app-i18n/skktools + virtual/awk + cdb? ( + || ( + dev-db/tinycdb + dev-db/cdb + ) + )" +RDEPEND="" +S="${WORKDIR}/${ECVS_MODULE}" + +DOCS=( ChangeLog{,.{1..3}} READMEs/committers.txt edict_doc.txt zipcode/README.ja ) + +SKKTOOLS_DIR="${EPREFIX}/usr/share/skktools/convert2skk" + +src_prepare() { + rm -f ${MY_PN}.{wrong*,noregist,not_wrong,hukugougo,notes,requested,pubdic+} + + default +} + +cdb_make() { + cdbmake "${1}" "${1}.tmp" +} + +tinycdb_make() { + cdb -c "${1}" +} + +src_compile() { + local ctdic="${MY_PN}.china_taiwan" ruby + mv ${ctdic}{.header,} + for ruby in ${RUBY_TARGETS_PREFERENCE}; do + if use ruby_targets_${ruby}; then + ${ruby} ${SKKTOOLS_DIR}/ctdicconv.rb csv/${ctdic##*.}.csv | skkdic-expr2 >> ${ctdic} + break + fi + done + + if use cdb; then + local cdbmake=cdb_make f + if has_version dev-db/tinycdb; then + cdbmake=tinycdb_make + fi + for f in {,zipcode/}${MY_PN}.*; do + LC_ALL=C awk ' + /^[^;]/ { + s = substr($0, index($0, " ") + 1) + print "+" length($1) "," length(s) ":" $1 "->" s + } + END { + print "" + } + ' ${f} | ${cdbmake} ${f}.cdb || die + done + fi +} + +src_install() { + insinto /usr/share/skk + doins {,zipcode/}${MY_PN}.* +} |