diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-ruby/ruby-romkan | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
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-r7.ebuild | 33 |
4 files changed, 79 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..ca559cd9df05 --- /dev/null +++ b/dev-ruby/ruby-romkan/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/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>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild b/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild new file mode 100644 index 000000000000..757e570452b7 --- /dev/null +++ b/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33 ruby34" + +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-BSD" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ppc64 ~sparc x86" + +DOCS="ChangeLog *.rd" + +all_ruby_prepare() { + eapply -p0 "${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} +} |
