mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
app-i18n/skk-jisyo: new snapshot
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST skk-jisyo-201905.tar.xz 6198572 BLAKE2B a26e0be0406699424b24a8d1b004317b5d274fc02ed50ef6c4c696de8e039a6cfd7b34b292b7b7ecbdc2fee1950f6cc2a122ef457ba12f96972584560d3ac355 SHA512 db32fab5d5bf232838a3d502d4f648dde556381df9f96acec13d011274dedf5443676ce36324430dbe8cacb6a037e7bf70e72ef46b94fc6b57b9448e76aab38b
|
||||
DIST skk-jisyo-202005.tar.xz 6836292 BLAKE2B 6d73e6d2e38de178c6683ae447b0ea79054036739b7a01fe386d677cc99556d37f47adf4156e1d571681195b85a2134cac710b12fa08df87e4fe5e5098289119 SHA512 7cc639b307d56d4cb5d04280a003ffa2cfb326f7821d70dddb619e117c1b8358417e44f8137de1b8027ec7f97df8bff8fba845019c015cf8c48ed5d91753155c
|
||||
|
||||
@@ -1,8 +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>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
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="CC-BY-SA-3.0 GPL-2+ public-domain unicode"
|
||||
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}} committers.md )
|
||||
HTML_DOCS=( edict_doc.html )
|
||||
|
||||
src_prepare() {
|
||||
rm -f ${MY_PN}.{hukugougo,noregist,notes,pubdic+,requested,unannotated,*wrong*}
|
||||
|
||||
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}.*
|
||||
|
||||
einstalldocs
|
||||
docinto zipcode
|
||||
dodoc zipcode/README.md
|
||||
}
|
||||
Reference in New Issue
Block a user