From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/skk-jisyo/
Date: Fri, 13 May 2016 12:55:11 +0000 (UTC) [thread overview]
Message-ID: <1463144079.2c1c1baa25ab44148aabe7810fad51acf62b4d99.hattya@gentoo> (raw)
commit: 2c1c1baa25ab44148aabe7810fad51acf62b4d99
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Fri May 13 12:54:39 2016 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Fri May 13 12:54:39 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c1c1baa
app-i18n/skk-jisyo: update to EAPI 6
Package-Manager: portage-2.2.28
app-i18n/skk-jisyo/skk-jisyo-999999.ebuild | 83 +++++++++++++++++-------------
1 file changed, 47 insertions(+), 36 deletions(-)
diff --git a/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
index 5a09dee..568e28c 100644
--- a/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
+++ b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
@@ -2,49 +2,64 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-ECVS_SERVER="openlab.jp:/circus/cvsroot"
-ECVS_USER="guest"
-ECVS_PASS="guest"
-ECVS_MODULE="skk/dic"
-inherit cvs
+EAPI="6"
+USE_RUBY="ruby20 ruby21"
+
+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"
-#SRC_URI="mirror://gentoo/${P}.tar.bz2"
-SRC_URI=""
+ECVS_SERVER="openlab.jp:/circus/cvsroot"
+ECVS_MODULE="skk/dic"
+ECVS_USER="guest"
+ECVS_PASS="guest"
-LICENSE="GPL-2 public-domain freedist"
+LICENSE="GPL-2 freedist public-domain"
SLOT="0"
KEYWORDS=""
IUSE="cdb"
-COMMON_DEPEND="cdb? ( dev-db/cdb )"
-DEPEND="${COMMON_DEPEND}
- sys-apps/gawk"
-RDEPEND="${COMMON_DEPEND}
- !app-i18n/skk-jisyo-extra
- !app-i18n/skk-jisyo-cdb"
-
+DEPEND="${RUBY_DEPS}
+ app-i18n/skktools
+ sys-apps/gawk
+ cdb? (
+ || (
+ dev-db/tinycdb
+ dev-db/cdb
+ )
+ )"
+RDEPEND=""
S="${WORKDIR}/${ECVS_MODULE}"
-src_unpack() {
- cvs_src_unpack
+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+}
- cd "${S}"
- rm SKK-JISYO.wrong.annotated SKK-JISYO.china_taiwan.header
- rm SKK-JISYO.noregist SKK-JISYO.not_wrong SKK-JISYO.hukugougo
- rm SKK-JISYO.notes SKK-JISYO.requested SKK-JISYO.pubdic+
+ eapply_user
}
src_compile() {
- # bug 184457
- unset LANG LC_ALL LC_CTYPE
+ local ctdic="${MY_PN}.china_taiwan" ruby
+ mv ${ctdic}{.header,}
+ for ruby in ${USE_RUBY}; do
+ if has_version dev-lang/ruby:${ruby:4:1}.${ruby:5}; then
+ ${ruby} ${SKKTOOLS_DIR}/ctdicconv.rb csv/${ctdic##*.}.csv | skkdic-expr2 >> ${ctdic}
+ break
+ fi
+ done
- for f in SKK-JISYO.* zipcode/SKK-JISYO.* ; do
- mv ${f} ${f}.annotated
- gawk -f "${FILESDIR}"/unannotation.awk ${f}.annotated > $(basename ${f}) || die
- if use cdb ; then
- gawk '
+ if use cdb; then
+ local cdbmake="cdbmake" f
+ if has_version dev-db/tinycdb; then
+ cdbmake="cdb -c"
+ fi
+ for f in {,zipcode/}${MY_PN}.*; do
+ LC_ALL=C gawk '
/^[^;]/ {
s = substr($0, index($0, " ") + 1)
print "+" length($1) "," length(s) ":" $1 "->" s
@@ -52,16 +67,12 @@ src_compile() {
END {
print ""
}
- ' $(basename ${f}) | cdbmake $(basename ${f}).cdb "${T}"/$(basename ${f}) || die
- fi
- rm ${f}.annotated
- done
+ ' ${f} | ${cdbmake} ${f}.cdb || die
+ done
+ fi
}
src_install() {
- # install dictionaries
insinto /usr/share/skk
- doins SKK-JISYO.* || die
-
- dodoc ChangeLog* READMEs/committers.txt edict_doc.txt
+ doins {,zipcode/}${MY_PN}.*
}
next reply other threads:[~2016-05-13 12:55 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 12:55 Akinori Hattori [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-12 9:52 [gentoo-commits] repo/gentoo:master commit in: app-i18n/skk-jisyo/ Akinori Hattori
2024-07-22 13:49 Akinori Hattori
2024-07-21 13:22 Sam James
2024-07-21 12:56 Jakov Smolić
2024-07-21 12:42 Sam James
2024-07-21 12:42 Sam James
2024-07-21 12:42 Sam James
2024-04-26 13:02 Akinori Hattori
2024-04-26 13:02 Akinori Hattori
2024-04-26 13:02 Akinori Hattori
2022-06-08 14:13 Akinori Hattori
2022-06-08 14:13 Akinori Hattori
2022-03-22 18:43 Jakov Smolić
2020-05-16 15:21 Akinori Hattori
2020-05-16 15:21 Akinori Hattori
2020-05-16 13:44 Akinori Hattori
2020-05-13 17:12 Agostino Sarubbo
2020-05-13 11:31 Agostino Sarubbo
2020-05-13 11:29 Agostino Sarubbo
2020-05-13 11:28 Agostino Sarubbo
2020-05-13 11:27 Agostino Sarubbo
2020-04-30 13:38 Akinori Hattori
2020-04-30 13:38 Akinori Hattori
2020-02-08 9:34 Akinori Hattori
2019-12-13 13:29 Akinori Hattori
2019-11-03 13:34 Mikle Kolyada
2019-10-07 9:53 Agostino Sarubbo
2019-10-07 9:47 Agostino Sarubbo
2019-10-04 12:57 Agostino Sarubbo
2019-10-04 11:55 Agostino Sarubbo
2019-10-03 12:30 Akinori Hattori
2019-09-14 9:58 Akinori Hattori
2019-09-14 9:58 Akinori Hattori
2018-05-07 13:07 Akinori Hattori
2017-08-12 14:29 Akinori Hattori
2017-07-23 15:30 Akinori Hattori
2017-06-25 5:37 Akinori Hattori
2017-06-18 9:54 Akinori Hattori
2017-06-16 19:46 Andreas Hüttel
2017-04-30 9:08 Jeroen Roovers
2017-04-27 10:36 Agostino Sarubbo
2017-04-23 10:27 Agostino Sarubbo
2017-04-19 16:01 Michael Weber
2016-09-15 14:16 Akinori Hattori
2016-06-14 2:29 Yixun Lan
2016-05-21 6:11 Akinori Hattori
2016-05-13 12:58 Akinori Hattori
2016-05-13 12:51 Akinori Hattori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463144079.2c1c1baa25ab44148aabe7810fad51acf62b4d99.hattya@gentoo \
--to=hattya@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox