diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-12-18 06:46:17 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-12-18 06:46:17 +0100 |
commit | fbdc6f84b5713527927bc5a01eecb85a824b6bc3 (patch) | |
tree | 113db9999bb5d9b2ec5ec54fbd1330f9ba8b651c /dev-ruby/psych | |
parent | dev-ruby/psych: cleanup (diff) | |
download | gentoo-fbdc6f84b5713527927bc5a01eecb85a824b6bc3.tar.gz gentoo-fbdc6f84b5713527927bc5a01eecb85a824b6bc3.tar.bz2 gentoo-fbdc6f84b5713527927bc5a01eecb85a824b6bc3.zip |
dev-ruby/psych: add 3.1.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/psych')
-rw-r--r-- | dev-ruby/psych/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/psych/psych-3.1.0.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/psych/Manifest b/dev-ruby/psych/Manifest index d4e2f1768156..fa99e0526fae 100644 --- a/dev-ruby/psych/Manifest +++ b/dev-ruby/psych/Manifest @@ -1,2 +1,3 @@ DIST psych-2.2.4.tar.gz 133451 BLAKE2B 665a234b88ff9b5f2dcd6ddc0fb249e2af6a2594b1e3817e68fa47d58556f211568b61d416be3afc91a1cd40237530bd0751d52d49a63ccccf2ff196d7ec4faf SHA512 f56b0e68ba2c6884eaf645f4784dfe56667b8527def29bcd2a36e9f47e11acbdd4a0bb7025988b28cca1413f9f15524ef9fbe61efef3ff295cce4733d3143894 DIST psych-3.0.3.tar.gz 133778 BLAKE2B c28ba4ca2fa8b042bd8f13294330c7704401d861ff082fc2b97c59b7f5ab29001a44184992eadd78fa125ec14ca71c9e79c5e71bafe46471643ed0fd62180165 SHA512 cc2289dcdcaa7f812d03580bd05894fb66c7c3c161535c8f17f790a6a9c35c5623462102276f63c54b884a82d86359b3e0f455b2427db3b6987ac5d71010c8b4 +DIST psych-3.1.0.tar.gz 137194 BLAKE2B ab2678d44ee0824ac64cffd03f7d3e204c1c097c27f6aefe5701f663fc4e6f8adfc898f3c666c1485e6719b2902d284e8191c72cc4b35cec0982e31188b3319b SHA512 c2919840462502bca6c1619409005f3904816048caa08f9637ff6e306542afc566bb3f873e615581d9d6fcb6ace8a30c080a21523714c18d8e639d70026ed153 diff --git a/dev-ruby/psych/psych-3.1.0.ebuild b/dev-ruby/psych/psych-3.1.0.ebuild new file mode 100644 index 000000000000..bfc8c27d3a1e --- /dev/null +++ b/dev-ruby/psych/psych-3.1.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit multilib ruby-fakegem + +DESCRIPTION="A libyaml wrapper for Ruby" +HOMEPAGE="https://github.com/tenderlove/psych" +SRC_URI="https://github.com/tenderlove/psych/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +DEPEND+=" >=dev-libs/libyaml-0.2.1" + +ruby_add_bdepend "test? ( dev-ruby/minitest:5 )" + +all_ruby_prepare() { + sed -i -e '1igem "minitest", "~>5.0"' test/psych/helper.rb || die + + sed -i -e 's/require_relative/require/ ; s:lib/psych/versions:./lib/psych/versions:' ${RUBY_FAKEGEM_GEMSPEC} || 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/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:test/${PN}:. -e "Dir['test/psych/**/test_*.rb'].each {|f| require f}" || die +} |