diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-11-09 07:10:02 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-11-09 07:10:02 +0100 |
commit | c607ce41e65a8a0fc23ec7e9ca7927890a6b21fd (patch) | |
tree | 13490198150282893db30b1633e4930376a36a57 /dev-ruby | |
parent | www-servers/puma: cleanup (diff) | |
download | gentoo-c607ce41e65a8a0fc23ec7e9ca7927890a6b21fd.tar.gz gentoo-c607ce41e65a8a0fc23ec7e9ca7927890a6b21fd.tar.bz2 gentoo-c607ce41e65a8a0fc23ec7e9ca7927890a6b21fd.zip |
dev-ruby/charlock_holmes: add 0.7.7
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/charlock_holmes/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/charlock_holmes/charlock_holmes-0.7.7.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/charlock_holmes/Manifest b/dev-ruby/charlock_holmes/Manifest index dcf26d52bca4..7fa1b909ad32 100644 --- a/dev-ruby/charlock_holmes/Manifest +++ b/dev-ruby/charlock_holmes/Manifest @@ -1 +1,2 @@ DIST charlock_holmes-0.7.6.tar.gz 1192708 BLAKE2B 9024238f225e7c5040c0550beb573615939037e0113672d7d048a9abd536d8e1d224eb1c8f6a155906074394838888960e955d0318c47fa2e1330e46275f4e99 SHA512 410a210e4fc7e9905f38e3f68375ffdf0cf73cca8a8b230d7c4165ac23503e2460692168b1eb5d69ff183e70d89e5dcfbf6688dd22b736f4adf3c9f3af18575b +DIST charlock_holmes-0.7.7.tar.gz 1192739 BLAKE2B f057a0b53f8624f12029679c96be754e9225bdeaab4db8077ab8b48c1e04883ea6a9a3019cc0c5d875179b287ef0d70aae591201d8c22c2a6e4a5b4d6c592294 SHA512 5950db982fbbcf41c6c8f893b2d5e1d755ec85e55bd6ce9072507c06925251edb3198840fdf346e8b74f06f4dc1d63bf94657ce582b78947751d20980f71aa8e diff --git a/dev-ruby/charlock_holmes/charlock_holmes-0.7.7.ebuild b/dev-ruby/charlock_holmes/charlock_holmes-0.7.7.ebuild new file mode 100644 index 000000000000..011e402ef5d5 --- /dev/null +++ b/dev-ruby/charlock_holmes/charlock_holmes-0.7.7.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +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 +} + +each_ruby_configure() { + ${RUBY} -Cext/${PN} extconf.rb || die +} + +each_ruby_compile() { + emake V=1 -Cext/${PN} + cp ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib test/*.rb || die +} |