diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-ruby/ruby-romkan | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-ruby/ruby-romkan')
| -rw-r--r-- | dev-ruby/ruby-romkan/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/ruby-romkan/files/ruby-romkan-ruby19.patch | 32 | ||||
| -rw-r--r-- | dev-ruby/ruby-romkan/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-ruby/ruby-romkan/ruby-romkan-0.4-r6.ebuild | 31 |
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-ruby/ruby-romkan/Manifest b/dev-ruby/ruby-romkan/Manifest new file mode 100644 index 000000000000..98aee2f60f9a --- /dev/null +++ b/dev-ruby/ruby-romkan/Manifest @@ -0,0 +1 @@ +DIST ruby-romkan-0.4.tar.gz 4653 BLAKE2B 2680fece04c80be9d2f312a98c5d5756fcd465aacbee5a3ddbd5409e89d8d54cbc0dd27b556173e94ead143dcc25cde530fb002dd3c4833d321b6169afaabaf7 SHA512 d4e4089122d643878a0e19852dd650c4d7e35918838edfe4bc210a5d26cc3e55b5be430db4378e75f44a3435331fd4e1155dfc3e1846babb3a1b626dd127eacd diff --git a/dev-ruby/ruby-romkan/files/ruby-romkan-ruby19.patch b/dev-ruby/ruby-romkan/files/ruby-romkan-ruby19.patch new file mode 100644 index 000000000000..4ae355749281 --- /dev/null +++ b/dev-ruby/ruby-romkan/files/ruby-romkan-ruby19.patch @@ -0,0 +1,32 @@ +--- romkan.rb 2002-02-12 02:45:16.000000000 +0100 ++++ romkan.rb 2012-06-25 10:15:59.723542130 +0200 +@@ -1,3 +1,4 @@ ++# -*- encoding:euc-jp -*- + # + # Ruby/Romkan - a Romaji <-> Kana conversion library for Ruby. + # +@@ -209,13 +210,13 @@ + HEPPAT = HEPBURN.sort {|a, b| b.length <=> a.length }.join "|" + + TO_HEPBURN = (romrom = Hash.new +- KUNREI.each_with_index {|x, i| +- romrom[KUNREI[i]] = HEPBURN[i]} ++ KUNREI.each_with_index {|x, j| ++ romrom[KUNREI[j]] = HEPBURN[j]} + romrom) + + TO_KUNREI = (romrom = Hash.new +- HEPBURN.each_with_index {|x, i| +- romrom[HEPBURN[i]] = KUNREI[i]} ++ HEPBURN.each_with_index {|x, j| ++ romrom[HEPBURN[j]] = KUNREI[j]} + romrom) + + # FIXME: ad hod solution +--- test.rb 2002-02-12 02:45:25.000000000 +0100 ++++ test.rb 2012-06-25 10:13:51.832021574 +0200 +@@ -1,3 +1,4 @@ ++# -*- encoding:euc-jp -*- + # + # ruby -Ke test.rb </dev/null && echo ok + # diff --git a/dev-ruby/ruby-romkan/metadata.xml b/dev-ruby/ruby-romkan/metadata.xml new file mode 100644 index 000000000000..79e981ed97fd --- /dev/null +++ b/dev-ruby/ruby-romkan/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> +</maintainer> +<maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> +</maintainer> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-ruby/ruby-romkan/ruby-romkan-0.4-r6.ebuild b/dev-ruby/ruby-romkan/ruby-romkan-0.4-r6.ebuild new file mode 100644 index 000000000000..d133430211cb --- /dev/null +++ b/dev-ruby/ruby-romkan/ruby-romkan-0.4-r6.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby23 ruby24 ruby25 ruby26" + +inherit ruby-ng + +DESCRIPTION="A Romaji <-> Kana conversion library for Ruby" +HOMEPAGE="http://0xcc.net/ruby-romkan/" +SRC_URI="http://0xcc.net/ruby-romkan/${P}.tar.gz" +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +DOCS="ChangeLog *.rd" + +RUBY_PATCHES=( "${FILESDIR}/${PN}-ruby19.patch" ) + +each_ruby_test() { + ${RUBY} -I. -Ke test.rb < /dev/null || die "test failed" +} + +each_ruby_install() { + doruby romkan.rb +} + +all_ruby_install() { + dodoc ${DOCS} +} |
