diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-07-11 07:30:08 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-07-11 07:30:08 +0200 |
commit | a93664a8f8900ab0eb3654de247e6744030c3c53 (patch) | |
tree | b87e79690b4d601c281511ebc07416edf5efcf53 /dev-ruby/charlock_holmes | |
parent | dev-util/jenkins-bin: add 2.452.3 (diff) | |
download | gentoo-a93664a8f8900ab0eb3654de247e6744030c3c53.tar.gz gentoo-a93664a8f8900ab0eb3654de247e6744030c3c53.tar.bz2 gentoo-a93664a8f8900ab0eb3654de247e6744030c3c53.zip |
dev-ruby/charlock_holmes: add 0.7.9
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/charlock_holmes')
-rw-r--r-- | dev-ruby/charlock_holmes/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/charlock_holmes/charlock_holmes-0.7.9.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/charlock_holmes/Manifest b/dev-ruby/charlock_holmes/Manifest index 09c02b48f995..8e60ab269fd3 100644 --- a/dev-ruby/charlock_holmes/Manifest +++ b/dev-ruby/charlock_holmes/Manifest @@ -1,2 +1,3 @@ DIST charlock_holmes-0.7.7.tar.gz 1192739 BLAKE2B f057a0b53f8624f12029679c96be754e9225bdeaab4db8077ab8b48c1e04883ea6a9a3019cc0c5d875179b287ef0d70aae591201d8c22c2a6e4a5b4d6c592294 SHA512 5950db982fbbcf41c6c8f893b2d5e1d755ec85e55bd6ce9072507c06925251edb3198840fdf346e8b74f06f4dc1d63bf94657ce582b78947751d20980f71aa8e DIST charlock_holmes-0.7.8.tar.gz 1192654 BLAKE2B 39437267f8f3bbba915438d5bd25c01b4bd9628191a7d923d85797cfbd541f7cc85727aa07d184f7bb13df50e7822ed5e93deb68113b530785cc48bd0f3e38c0 SHA512 7ae37108078ea220e5d941f423e9cce30b89d93f71b8f625917a04c191d0b0ae0718e57182e6e0fdf5edacb1d2138c785a61e8431fb8462e7bdae10f3870d587 +DIST charlock_holmes-0.7.9.tar.gz 1195925 BLAKE2B 264b6f2aa550f493bc2ea64632a6bda912d98692734959b5402b7f114df4e06180f5a6708a1baedecac63621110bd70a1322d75f226398e7dd67c67936df98ea SHA512 f88044b263898db3998f2fa23dc867f152e5a050acff3924e8b36f1fd25237d245a0b14681eb789dbcc1672beee1b6b4304f22dfc430936e1f707ee65530af5c diff --git a/dev-ruby/charlock_holmes/charlock_holmes-0.7.9.ebuild b/dev-ruby/charlock_holmes/charlock_holmes-0.7.9.ebuild new file mode 100644 index 000000000000..1ea635299af7 --- /dev/null +++ b/dev-ruby/charlock_holmes/charlock_holmes-0.7.9.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/charlock_holmes/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/charlock_holmes" + +RUBY_FAKEGEM_GEMSPEC="charlock_holmes.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Character encoding detecting library for Ruby using ICU" +HOMEPAGE="https://github.com/brianmario/charlock_holmes" +SRC_URI="https://github.com/brianmario/charlock_holmes/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_bdepend "test? ( + dev-ruby/minitest )" + +CDEPEND="dev-libs/icu:= + sys-libs/zlib" +DEPEND+=" ${CDEPEND}" +RDEPEND+=" ${CDEPEND}" + +all_ruby_prepare() { + sed -i -e '/bundler/d' test/helper.rb || die + + # Avoid dependency on rake-compiler + sed -i -e '/rake-compiler/,$ s:^:#:' Rakefile || die + + sed -e 's/git ls-files/find/' -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -Ilib test/*.rb || die +} |