summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2014-01-19 05:26:50 +0000
committerNaohiro Aota <naota@gentoo.org>2014-01-19 05:26:50 +0000
commit2e477a090c235579e79d1e5d44d20d71bb7003fc (patch)
treeb8dc07267438de5f976670d2864e891e56bbb76a /app-text/migemo
parentAdd fix from upstream for --as-needed handling #497976 by Lars Wendler. (diff)
downloadhistorical-2e477a090c235579e79d1e5d44d20d71bb7003fc.tar.gz
historical-2e477a090c235579e79d1e5d44d20d71bb7003fc.tar.bz2
historical-2e477a090c235579e79d1e5d44d20d71bb7003fc.zip
version bump to support ruby19. #493028
Package-Manager: portage-2.2.8/cvs/Linux x86_64 Manifest-Sign-Key: 0xF8551514
Diffstat (limited to 'app-text/migemo')
-rw-r--r--app-text/migemo/ChangeLog11
-rw-r--r--app-text/migemo/Manifest37
-rw-r--r--app-text/migemo/files/migemo-0.40-ruby-ng.patch16
-rw-r--r--app-text/migemo/files/migemo-0.40_p2-ruby-ng.patch96
-rw-r--r--app-text/migemo/migemo-0.40_p2.ebuild71
5 files changed, 204 insertions, 27 deletions
diff --git a/app-text/migemo/ChangeLog b/app-text/migemo/ChangeLog
index e3c32dfa4deb..12c2eafe6687 100644
--- a/app-text/migemo/ChangeLog
+++ b/app-text/migemo/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/migemo
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/migemo/ChangeLog,v 1.43 2013/02/21 13:19:44 ago Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/migemo/ChangeLog,v 1.44 2014/01/19 05:26:35 naota Exp $
+
+*migemo-0.40_p2 (19 Jan 2014)
+
+ 19 Jan 2014; Naohiro Aota <naota@gentoo.org>
+ +files/migemo-0.40_p2-ruby-ng.patch, +migemo-0.40_p2.ebuild,
+ files/migemo-0.40-ruby-ng.patch:
+ version bump to support ruby19. #493028
21 Feb 2013; Agostino Sarubbo <ago@gentoo.org> migemo-0.40-r5.ebuild:
Stable for ia64, wrt bug #455952
diff --git a/app-text/migemo/Manifest b/app-text/migemo/Manifest
index 9dc21cc1d1ba..bf55c5546488 100644
--- a/app-text/migemo/Manifest
+++ b/app-text/migemo/Manifest
@@ -1,29 +1,32 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX 50migemo-gentoo.el 38 SHA256 f34ea07a3270a25cce3430e4781df47d9903052c9f3a4ea24efb64b1e63bd115 SHA512 5c00bcabe2d7cc03013dc7a54b2c653940c08098ca5646d7c73624cb1ca04376ae9dcf88a7166b1925c69f0c5d192d90f6bd790fdef8ed8c3b0f9d163c987da5 WHIRLPOOL cc5e2fd5081f5fb0018e1fa461c0802c7c90891accc55c02c2935dd3d413c5f8941e918af9341040526b037be4c34dab26008dfca91c153c11fca41338f77c14
AUX migemo-0.40-r5-without-emacs.patch 529 SHA256 0db5ac9d4f9da5ca77e480f4ef47be3281b8db4382c76c1116eded819675c165 SHA512 0bdd19be142a670cb3447c14e62ef82a521f7e3b7d4e3b7b89cab34b54730b150b5abf059320478edcce5d5b6d8c6e2b901e52f69dd7f1de380655ad3f8a9f1b WHIRLPOOL ebd8c5f9856c83e392f135b207915e18c58016c5747c43f5c8668dfb390bc42e697595f7ff3db8a7d3071ded529a468d58e17b8330116ed9b2495056dbcde315
-AUX migemo-0.40-ruby-ng.patch 3583 SHA256 44ae519404e9ceaec34d885ef2994e0278536ea806f532b72a68530b5b05410c SHA512 80f27c1c67ebe6294f316e7151e5b834882336080f9957f911e61159bd532ae27717a09cea32165b02de256417f0c22899ca825062fa13b6424a4b6f98f29637 WHIRLPOOL d894c208ea69efa76ba7bfa4eda147a82caac9fdc10be6579fc6c32fd201e4ab5ba740e6b89590bc84e0e3dfcf43ef7cd2a45866c32b632a167e2ce25f73e440
+AUX migemo-0.40-ruby-ng.patch 3655 SHA256 656258ccda15019005b191327aa11ec839bc24fdc299f6351d7fa2738f5382da SHA512 1b1b5f5131db480aa572b34c3b8939c664f65e23f30df93aa813d33c6b38a0d76633be93352023e4e3c75b5b2792b64f3fd212d3757c13013810d1e187f7d8f1 WHIRLPOOL 376eb9aff4fe4b90d8dc98b6cdbc096b8428faf4cd6c7cab507707f22d11b3dc1d78b4095cbc0848a629acfb2a627f56d6f35181b5b4defd5f544d0e9a347133
AUX migemo-0.40-without-emacs.patch 374 SHA256 013da8dd7f65754199f29619e7306504c72d8ce252b00952b0db3957c7ba1bc7 SHA512 b50446d3c43c987af1d043d0f180d58e70f6559772b2bc1ce2a03b484936ed55a4b678d43ea1871bbb629921a1b4de4e8faa5064dc9746f6fd71422838b4a56f WHIRLPOOL 26fcc102cbc0814f610131f1952b8fb2f291e0afa6018319944a1fa44d4bff7566680342661ffcb2dd7bff993570c746a642b45082aa376c9a9599d14d76b62d
+AUX migemo-0.40_p2-ruby-ng.patch 3625 SHA256 dbd99bc24d9d50b824661511bd98e82d3c16409b300db81af1af7ba2af7eece3 SHA512 cba98b17d9cf3cdbe34d358fd4b74d0766f3090a918854d41c388bcb1eb115448d46f62c71e43fa89972b920533eab6a48f3dcfdae362646d6d8061e361a9b00 WHIRLPOOL 942959b5fedc45bd572e600cc29ac0d7ea0c14ff32f8eb913a52a7526cf3d167bcda29ba726c585549ba9628315a576b064663089ba8394666e5a0457bc5c873
+DIST 0.40p2.tar.gz 1739558 SHA256 c599d94c3889efffebd482d9dcd0d2cd11abf810dee78a2d2318e5f32911b398 SHA512 97cc770bcdf39c286da6bdd6b939a87855de791a43805c9f0dbc44bb8f03a16ca549b8bb96f5e0dfd065f29bd38ffaf7f7928366015a60d92fb43462db36db15 WHIRLPOOL 5fe2ff8b8ae6af60bcfb60fe64d3013f1ab724721b786cc169c7736c2f734a863fafa53c583b03cb59a1552b6763f251427cf407957f79e5325d6edb7aba03ef
DIST migemo-0.40.tar.gz 1674941 SHA256 89c2125e903edf6f6fe035137eceef79382fce43783e5da240fc4a34b0878934 SHA512 8ba4960361035fc570bef533724c82b20fbc2384aa69469bf79791c00732643423aa6725717e4e518e461f9313101f0f2c49ad93dd007984699ad94cb92959ea WHIRLPOOL e9d0a9e67f01a896e8d773e5b813ade22df8272805915383875a953bf18b93102387c17d204a60e77c7bb3ec3a373ec302cb55cf8331149776b3673ef5fe500c
EBUILD migemo-0.40-r4.ebuild 1455 SHA256 cb3f2c6fe8f20f0cdf256ad953f4f91af89c45804ad80ba476749783768da799 SHA512 6a69aa037562bff0b049670a16f4cf775892a12cfbda5477df983cb27fb9cf12211b88783cdd6d45abd37514adc82909709c41ae0490a49c88f25ca8332f3c3d WHIRLPOOL 3a45b6bfbe82a64a0143b8e90c03fca434dcb87b0ff488365630542258bf88dd5b2f865ce990535b0075b85d980b91b49f4444b4451c7a1488240d02bb1c5ac0
EBUILD migemo-0.40-r5.ebuild 1622 SHA256 707fc68f1433a9183b74c27dc71b02532ef234cac2471016178002a18c500ce4 SHA512 169a08384171b8239847419704434ed59c69c0054bc8c57e61c9e4255072868bd022a1cce8b5382ca9d59b6d6fb4905f5e12342df81031e957422c97a44ff7a8 WHIRLPOOL 0cbf2dcc38517af7a40d8604f019c2557dde9b6fdc2c10b20f7e1535225616f28d67addbd6e4884946322ea92a514aafa9c91e98dbdcb302d6fd96609f72dd6f
-MISC ChangeLog 5532 SHA256 ebb43ef323c205a28282de8fb9d4370dd7fd7b579605aaeadc7eafab4e3b8408 SHA512 09d1c6f8d10bb6b5ca1fd32d9ddfefc77fb0355f1c002bacb5b831d924d33d3b9c654f52f8eee425228304e6002d765975248e29744ee395adf5445cc99ab087 WHIRLPOOL 78b5a82a5687938515b8a29c6e6cdade2b424f60d9c785defe9329c1dff18c71b482090a59462a296e1829e155a240eba76c8639ef56090ff020c37db2c81e65
+EBUILD migemo-0.40_p2.ebuild 1705 SHA256 3d8edb501bdcec0b6c8a9d6ef134fa0da4e9126c7a05a24bc37b4842c84ef151 SHA512 315e9c878279dd5a92e54112430a1925480b3e6f9eb7e4d6e2b9e99837135292883de2de0c1e03ca254d04a87a7ef4d52982d88abe304c3712d4817d6ec66e81 WHIRLPOOL a375b36ee9cc5d26e4554be494c056f93a882f5a8583e95a88c40324b6a98ab5bd6dea3ab7d1431ac2b6fce5a104b245aeab59449dad1dd03672ffdee38107fb
+MISC ChangeLog 5753 SHA256 e879b8c66adba8d7e84b06353fc5215fe996b05a69ec8d68085c46a6d44535f2 SHA512 e89304fcdcb43e90587a15705742edddb3e494c813f9686a01860856cd694712579961ea8ee1cc5bfb5fa41427e7b921eeafcc19dd6406e93d52b8fb72b5d856 WHIRLPOOL cb055de0138d326a8b4c1f0ecacc490c63f7c42c6f1c0cd1d44a72c4ab5ce32ff206607956608c8f22eade97c0ddd47e01646bc8dd35d44000a04fb8f675f495
MISC metadata.xml 157 SHA256 c3c089740b31ec0f4d7fbc3bf2d6bb8460ccfd0694f01bf91b22a2e1930d6d5d SHA512 eaa4f0b5e4f9173245bcb2158d56335c959e2b15571f9992efdcd89ab2375a771f6d06a8bde9aba369489bfe15c123abc2745ed93b7c3fd04af29b7262367040 WHIRLPOOL a5d0d7ac8ce5fe93f1a64440cb3cdb943c30d8deaa5a19e90d24917411bcb69c89d6f56bf5c84bb2604b42d9fd4211905c5c0d1f1710b936b41443b302cbff2c
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCgAGBQJRJh5sAAoJELp701BxlEWfK2gQAKFuYzhpfhTuDyW31psggVhm
-VN5n2pOsEHmSbY6Zutgcg7MvaRNMUTGebHg3DfK+zzKIa5HE/tDNSqn55QZLJEec
-pRQGAIQY7xziHeQ1mutz6NOKdvXN/tU/0DgKWtY8gCoLqF9G0Q+HLUZPjlQxHNw8
-Q1yPBaJIld+Q4kh4azGWlDWzK1adg/Yto65yQwL3MpbkY9u8VmuN+yCe0/Tdwng/
-vKz7jERnPtWMdYDelcQiQA1JGfLbo5xph7OrWyfzsMLUwViDyzvTrByJl0U9ITXX
-Snq2zIXt+YtZIXxspLvzLVQvVTedzeKJqMUynAOML+r0wJNVFfQNIpLBLp1oIp5u
-RB+n4YiQZWvhiJhC2OKEOnjJ8DM1vXesEOhei5mpFXTvDqmPpZnQFxoL7hWpL637
-L4FjW+nTBT5QjBkrhNyfHxhwuJ8dk9ReDQdZc8cYktUrCSR5FupwQIu/1VugwEh4
-4EKIVfhB5O9NDzG9Kgr919Q6LJF7pUbqPGPp0Hh4Z7ut2VgoJIKCn4KYTplrLoNN
-8fYNTtmhyuywSIt+/lcR+asU9PuEdnaKZ3wfY39zG0TDQSxAcvGJzwyAGfarpeU7
-l8keNxP3TwfiYM0bDX7dy9DCFWMWw7HpmuctGxKECyHsKIRn2bWSYo5p6M8mv9KC
-BKpIqoyHLL2KTF9HErlH
-=qJ0+
+iQIcBAEBCAAGBQJS22IUAAoJEDYO1FT4VRUUHWkP/0qK2jcJ4EhibOXM9AKVxSgf
+NqxiRgBtUSnnQGL5+mJxfAnU1besN9cn/fCzj1gcmqTqTrK4v0x2Q3U3q87cg0az
+Jy2ZUhZiArDRDnf5bP8TEX1CL653TfZPSlBtqoX7FLQxzSOO0iVn5SPSca4Y/zUM
+IZmqarctTI3pdRP0/9vWDpMEcvpCkHrN7+pfEdPnBrk+4fyTWaH+QdR9GeEsakUJ
+fybiFsqZrT63/Wrka8lN/CbzL5eI+BiSLR4P4igYmrulF2vfayvhr73P0nixLJsB
+mcQUtSy2CQHOu7DQNM1R3nAUh5+j2bZ2A83Ja9hbPWRSpNQrSbcn6Nlov078Xnh5
+5c4dzXwmf1sE4VpnCiCJVugBaWeEU5h4Lfw33Ax0p1BFLI1NCJ7Sx4yEJweZR+1T
+dDvWb6q7almU5tvbLxTkI12UFxYvpwmVxmmJsQwDJjnCEjfw4T++Oe+SJCuDTIBb
+nSikdIjcDNI+BhwXuYRsZ9mitQDBEqAKz83gm3od/0gkPSXUlAOTdsEG0nvn5K1P
+hdsJ9sWK8Fb8WbEbYmg/mde0CaEjdlPKX5Y6SeLd4w2PNOaLyWkvVHJrI4ne1u1K
+RTsNRHFQqdq0uX4EgVuICagVfYQ5GPCdwxDa9WXBga/aTZvi48OEUN02+RaNAPjp
+jsIxTMzDIf6dDWsjQQZL
+=M1yS
-----END PGP SIGNATURE-----
diff --git a/app-text/migemo/files/migemo-0.40-ruby-ng.patch b/app-text/migemo/files/migemo-0.40-ruby-ng.patch
index f2864412b6de..c242493dcd97 100644
--- a/app-text/migemo/files/migemo-0.40-ruby-ng.patch
+++ b/app-text/migemo/files/migemo-0.40-ruby-ng.patch
@@ -5,21 +5,21 @@
migemo-dict: # SKK-JISYO.L
- ruby -I. migemo-convert.rb SKK-JISYO.L > $@
-+ $(RUBY) -I. migemo-convert.rb SKK-JISYO.L > $@
++ $(RUBY) -Eeuc-jp -I. migemo-convert.rb SKK-JISYO.L > $@
migemo-dict.idx: migemo-dict
- ruby -I. migemo-index.rb migemo-dict > migemo-dict.idx
-+ $(RUBY) -I. migemo-index.rb migemo-dict > migemo-dict.idx
++ $(RUBY) -Eeuc-jp -I. migemo-index.rb migemo-dict > migemo-dict.idx
migemo-dict.cache: frequent-chars migemo-dict migemo-dict.idx
- sort frequent-chars | ruby -I. migemo-cache.rb migemo-dict
-+ sort frequent-chars | $(RUBY) -I. migemo-cache.rb migemo-dict
++ sort frequent-chars | $(RUBY) -Eeuc-jp -I. migemo-cache.rb migemo-dict
frequent-chars: genchars.sh migemo-dict
- sh genchars.sh > tmp.list1
- cat tmp.list1 | ruby -rromkan -ne 'puts $$_.to_kunrei' > tmp.list2
+ RUBY=$(RUBY) sh genchars.sh > tmp.list1
-+ cat tmp.list1 | $(RUBY) -rromkan -ne 'puts $$_.to_kunrei' > tmp.list2
++ cat tmp.list1 | $(RUBY) -Eeuc-jp -rromkan -ne 'puts $$_.to_kunrei' > tmp.list2
cat tmp.list1 tmp.list2 | sort | uniq > frequent-chars
clean-local:
@@ -61,16 +61,16 @@
test-dict.idx: test-dict ../migemo-index.rb
- ruby -I.. ../migemo-index.rb test-dict > test-dict.idx
-+ $(RUBY) -I.. ../migemo-index.rb test-dict > test-dict.idx
++ $(RUBY) -Eeuc-jp -I.. ../migemo-index.rb test-dict > test-dict.idx
test-dict.cache: test-dict test-dict.idx ../migemo-cache.rb
- ruby -rromkan -ne 'puts $$1.to_roma if /^(.+?) /' test-dict |\
-+ $(RUBY) -rromkan -ne 'puts $$1.to_roma if /^(.+?) /' test-dict |\
++ $(RUBY) -Eeuc-jp -rromkan -ne 'puts $$1.to_roma if /^(.+?) /' test-dict |\
while read line; do\
- echo $$line | ruby -ne 'chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\
- done | ruby -I.. ../migemo-cache.rb test-dict
-+ echo $$line | $(RUBY) -ne 'chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\
-+ done | $(RUBY) -I.. ../migemo-cache.rb test-dict
++ echo $$line | $(RUBY) -Eeuc-jp -ne 'chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\
++ done | $(RUBY) -Eeuc-jp -I.. ../migemo-cache.rb test-dict
clean-local:
rm -f tmp.*
diff --git a/app-text/migemo/files/migemo-0.40_p2-ruby-ng.patch b/app-text/migemo/files/migemo-0.40_p2-ruby-ng.patch
new file mode 100644
index 000000000000..bd43cbe9dfd2
--- /dev/null
+++ b/app-text/migemo/files/migemo-0.40_p2-ruby-ng.patch
@@ -0,0 +1,96 @@
+diff --git a/Makefile.am b/Makefile.am
+index 7548ae0..1f9213a 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -15,17 +15,17 @@ migemo.el: migemo.el.in
+ sed -e 's!@pkgdatadir@!$(pkgdatadir)!g' migemo.el.in > $@
+
+ migemo-dict: # SKK-JISYO.L
+- ruby -I. migemo-convert.rb SKK-JISYO.L > $@
++ ${RUBY} -Eeuc-jp -I. migemo-convert.rb SKK-JISYO.L > $@
+
+ migemo-dict.idx: migemo-dict
+- ruby -I. migemo-index.rb migemo-dict > migemo-dict.idx
++ ${RUBY} -Eeuc-jp -I. migemo-index.rb migemo-dict > migemo-dict.idx
+
+ migemo-dict.cache: frequent-chars migemo-dict migemo-dict.idx
+- sort frequent-chars | ruby -I. migemo-cache.rb migemo-dict
++ sort frequent-chars | ${RUBY} -Eeuc-jp -I. migemo-cache.rb migemo-dict
+
+ frequent-chars: genchars.sh migemo-dict
+ sh genchars.sh > tmp.list1
+- cat tmp.list1 | ruby -rromkan -ne 'puts $$_.to_kunrei' > tmp.list2
++ cat tmp.list1 | ${RUBY} -Eeuc-jp -rromkan -ne 'puts $$_.to_kunrei' > tmp.list2
+ cat tmp.list1 tmp.list2 | sort | uniq > frequent-chars
+
+ clean-local:
+diff --git a/acinclude.m4 b/acinclude.m4
+index f74e70e..50ca46c 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -123,7 +123,7 @@ AC_DEFUN(AM_PATH_RUBYDIR,
+ AC_MSG_CHECKING([where .rb files should go])
+ if test "x$rubydir" = x; then
+ changequote(<<, >>)
+- rubydir=`ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]'`
++ rubydir=`${RUBY} -Eeuc-jp -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]'`
+ changequote([, ])
+ fi
+ AC_MSG_RESULT($rubydir)
+diff --git a/configure.in b/configure.in
+index 2948e25..7ee3afc 100644
+--- a/configure.in
++++ b/configure.in
+@@ -10,7 +10,7 @@ AM_PATH_LISPDIR
+ AM_PATH_RUBYDIR
+
+ echo -n "checking Ruby/Bsearch... "
+-if ruby -rbsearch -e 'exit(if Bsearch::VERSION >= "1.2" then 0 else 1 end)'; then
++if $RUBY -rbsearch -e 'exit(if Bsearch::VERSION::STRING >= "1.2" then 0 else 1 end)'; then
+ echo found
+ else
+ echo not found
+@@ -19,7 +19,7 @@ else
+ fi
+
+ echo -n "checking Ruby/Romkan... "
+-if ruby -rromkan -e 'exit(if Romkan::VERSION >= "0.3" then 0 else 1 end)'; then
++if $RUBY -rromkan -e 'exit(if Romkan::VERSION >= "0.3" then 0 else 1 end)'; then
+ echo found
+ else
+ echo not found
+diff --git a/genchars.sh b/genchars.sh
+index 8e186d1..9a23483 100644
+--- a/genchars.sh
++++ b/genchars.sh
+@@ -1,6 +1,7 @@
+ #! /bin/sh
+
+-ruby -rromkan -nle 'head = $_.split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> tmp.ascii.words
++RUBY=${RUBY:-ruby}
++${RUBY} -rromkan -nle 'head = $_.split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> tmp.ascii.words
+
+ # Get the top 500 frequent ngrams.
+ for i in 1 2 3 4 5 6 7 8; do
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index b19bdb1..76f1638 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -5,13 +5,13 @@ noinst_DATA = test-dict.idx test-dict.cache
+
+
+ test-dict.idx: test-dict ../migemo-index.rb
+- ruby -I.. ../migemo-index.rb test-dict > test-dict.idx
++ ${RUBY} -Eeuc-jp -I.. ../migemo-index.rb test-dict > test-dict.idx
+
+ test-dict.cache: test-dict test-dict.idx ../migemo-cache.rb
+- ruby -rromkan -ne 'puts $$1.to_roma if /^(.+?) /' test-dict |\
++ ${RUBY} -Eeuc-jp -rromkan -ne 'puts $$1.to_roma if /^(.+?) /' test-dict |\
+ while read line; do\
+- echo $$line | ruby -ne '$$_.chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\
+- done | ruby -I.. ../migemo-cache.rb test-dict
++ echo $$line | ${RUBY} -Eeuc-jp -ne '$$_.chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\
++ done | ${RUBY} -Eeuc-jp -I.. ../migemo-cache.rb test-dict
+
+ clean-local:
+ rm -f tmp.*
diff --git a/app-text/migemo/migemo-0.40_p2.ebuild b/app-text/migemo/migemo-0.40_p2.ebuild
new file mode 100644
index 000000000000..7e91cf1e0633
--- /dev/null
+++ b/app-text/migemo/migemo-0.40_p2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/migemo/migemo-0.40_p2.ebuild,v 1.1 2014/01/19 05:26:35 naota Exp $
+
+EAPI=5
+# jruby: dev-ruby/ruby-romkan not work
+USE_RUBY="ruby19"
+
+inherit autotools elisp-common eutils ruby-ng
+
+MY_PV=${PV/_/}
+DESCRIPTION="Migemo is Japanese Incremental Search Tool"
+HOMEPAGE="http://0xcc.net/migemo/"
+SRC_URI="https://github.com/yshl/migemo-for-Ruby-1.9/archive/${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="emacs"
+
+ruby_add_bdepend "dev-ruby/ruby-romkan dev-ruby/bsearch"
+
+DEPEND="${DEPEND}
+ app-dicts/migemo-dict[-unicode]
+ emacs? ( virtual/emacs
+ app-emacs/apel )"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+RUBY_PATCHES=(
+ "${FILESDIR}/${PN}-0.40-r5-without-emacs.patch"
+ "${FILESDIR}/${P}-ruby-ng.patch"
+)
+RUBY_S="migemo-for-Ruby-1.9-${MY_PV}"
+
+all_ruby_prepare() {
+ cp "${EPREFIX}"/usr/share/migemo/migemo-dict .
+ eautoreconf
+}
+
+each_ruby_configure() {
+ RUBY="${RUBY}" econf $(use_with emacs) --with-lispdir="${SITELISP}/${PN}"
+}
+
+each_ruby_install() {
+ emake DESTDIR="${ED}" \
+ $(use emacs || echo "lispdir=") install
+}
+
+all_ruby_install() {
+ rm "${ED}"/usr/share/migemo/migemo-dict
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+ dodoc AUTHORS ChangeLog INSTALL README
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+ elog "Migemo adviced search is no longer enabled as a site default."
+ elog "Add the following line to your ~/.emacs file to enable it:"
+ elog " (require 'migemo)"
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}