diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-08-26 08:01:34 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-08-26 10:25:51 +0200 |
commit | ec7f3ecdf87901ef1537d0fad0885cfdd680d12c (patch) | |
tree | c9d46c31b410bef6bf0c4a28d7dac330b9b38be2 /dev-ruby | |
parent | dev-ruby/jira-ruby: add 1.4.3 (diff) | |
download | gentoo-ec7f3ecdf87901ef1537d0fad0885cfdd680d12c.tar.gz gentoo-ec7f3ecdf87901ef1537d0fad0885cfdd680d12c.tar.bz2 gentoo-ec7f3ecdf87901ef1537d0fad0885cfdd680d12c.zip |
dev-ruby/charlock_holmes: add 0.7.5
Package-Manager: Portage-2.3.6, Repoman-2.3.2
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.5.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/charlock_holmes/Manifest b/dev-ruby/charlock_holmes/Manifest index 6b672177fd68..7d2bcee4fd62 100644 --- a/dev-ruby/charlock_holmes/Manifest +++ b/dev-ruby/charlock_holmes/Manifest @@ -1,2 +1,3 @@ DIST charlock_holmes-0.7.3.gem 1196544 SHA256 c7d15154b442e393adbcd838f6e3b620a7fbe07197a7cd57d7ba4a7ec434544b SHA512 29e173f5ce870c16fd1af2e38b9aa2cada4b8ddae534933f18c82b719ae65b8fac82434ed87696b435b7236e180c06c9ccaa16c742dff5f8b1fd87da48894027 WHIRLPOOL 48c964c1ae89f9f88939dbcc3ed8bfdf80677a7c1b2eabf1514f7ed7a95fd92b03cc05f079e8844e5df5d24d7d306a85306721e39fa2352c185175c6fe1422d9 DIST charlock_holmes-0.7.4.tar.gz 1192569 SHA256 7f1dd487bc6cd221108651be9fcada743095bda9f19b7c2a448fd7e70723aebf SHA512 2c9569cceacd4f80896ef852f581b5260790f6fb4cf02372b032dc2b692afdf99e04b4ac5230d42d48ee40d0433342c84f4974ffa77662db33287e80bb5fc72e WHIRLPOOL 01cfb7ee6f2f7995d474c5769638a67b55d2ee590cdc6a5c8e2f1a0f4ffd1a1eab14cb8e4ff93ee78ba98089a02b1de09f58b18193a883e53810510588770156 +DIST charlock_holmes-0.7.5.tar.gz 1192676 SHA256 95d5fe0d88b4858a01f6252e56d835345ea133113e3741009429c9fa992253fc SHA512 a5ee9d47d8c8386e7be9ad10e93e7bd7663713df285b33e5d8afd865570e463a9f785e568675363f9b949a8207bbcc144a7378dfb206645824e9f0abc33ec668 WHIRLPOOL 67679622c86c93bcb2b248c6efd06ad9d22adafa131dd43ca3a14bc6fed4df89b2cbef4c81fb0c4467ee7c2ee41d03d339236deb7b1a4b0a00aacb8f75aa2a0b diff --git a/dev-ruby/charlock_holmes/charlock_holmes-0.7.5.ebuild b/dev-ruby/charlock_holmes/charlock_holmes-0.7.5.ebuild new file mode 100644 index 000000000000..1e6a842207db --- /dev/null +++ b/dev-ruby/charlock_holmes/charlock_holmes-0.7.5.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24" + +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/${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 +} |