From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-ruby/ruby-dict/Manifest | 1 + dev-ruby/ruby-dict/files/ruby-dict-ruby19.patch | 20 +++++++++++++ dev-ruby/ruby-dict/metadata.xml | 9 ++++++ dev-ruby/ruby-dict/ruby-dict-0.9.4-r5.ebuild | 37 +++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 dev-ruby/ruby-dict/Manifest create mode 100644 dev-ruby/ruby-dict/files/ruby-dict-ruby19.patch create mode 100644 dev-ruby/ruby-dict/metadata.xml create mode 100644 dev-ruby/ruby-dict/ruby-dict-0.9.4-r5.ebuild (limited to 'dev-ruby/ruby-dict') diff --git a/dev-ruby/ruby-dict/Manifest b/dev-ruby/ruby-dict/Manifest new file mode 100644 index 000000000000..943b8ced3651 --- /dev/null +++ b/dev-ruby/ruby-dict/Manifest @@ -0,0 +1 @@ +DIST ruby-dict-0.9.4.tar.gz 50487 BLAKE2B fa812bf222f82bc91ccf5a4f2a225e3463d7d85677004e3131547a49da88f89af3632de6f18e1b95f4ca68a5f7c5b5f909a9e811faf849865c879b3658bf43fd SHA512 54ce421c1bf49d0d52fc2549409887e05ebac5d3d1d50fc1b3a2ef55eb1242af509e3fb2ee046ee3389b088ca951a9903e9ea3ed3ca3dcfb0d521acd0eb54c59 diff --git a/dev-ruby/ruby-dict/files/ruby-dict-ruby19.patch b/dev-ruby/ruby-dict/files/ruby-dict-ruby19.patch new file mode 100644 index 000000000000..5ed897773fac --- /dev/null +++ b/dev-ruby/ruby-dict/files/ruby-dict-ruby19.patch @@ -0,0 +1,20 @@ +--- lib/dict.rb.orig 2013-10-27 19:15:03.957167192 +0100 ++++ lib/dict.rb 2013-10-27 19:16:15.191165936 +0100 +@@ -153,7 +153,7 @@ + + + require 'socket' +-require 'md5' ++require 'digest/md5' + + + # lines that start with .. need to be reduced to . +@@ -434,7 +434,7 @@ + # AUTHorise user + # + def auth(user, secret) +- auth = MD5::new(@msgid + secret).hexdigest ++ auth = Digest::MD5.new.hexdigest(@msgid + secret) + exec_cmd('AUTH %s %s' % [ user, auth ]) + end + diff --git a/dev-ruby/ruby-dict/metadata.xml b/dev-ruby/ruby-dict/metadata.xml new file mode 100644 index 000000000000..c685ebad7e3a --- /dev/null +++ b/dev-ruby/ruby-dict/metadata.xml @@ -0,0 +1,9 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + baldeagleos-repo + diff --git a/dev-ruby/ruby-dict/ruby-dict-0.9.4-r5.ebuild b/dev-ruby/ruby-dict/ruby-dict-0.9.4-r5.ebuild new file mode 100644 index 000000000000..aff4773b8a71 --- /dev/null +++ b/dev-ruby/ruby-dict/ruby-dict-0.9.4-r5.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 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="RFC 2229 client in Ruby" +HOMEPAGE="https://caliban.org/ruby/ruby-dict.shtml" +SRC_URI="https://caliban.org/files/ruby/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" + +all_ruby_prepare() { + eapply -p0 "${FILESDIR}/${PN}-ruby19.patch" + + default +} + +each_ruby_install() { + doruby lib/dict.rb || die "doruby failed" +} + +all_ruby_install() { + dobin rdict + + dodoc README Changelog TODO doc/rfc2229.txt + dodoc doc/dict.html doc/rdict.html + + # This would probably need a 3rb section.. + # doman doc/dict.3 + doman doc/rdict.1 +} -- cgit v1.3