dev-ruby/psych: add 3.0.1

Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
Hans de Graaff
2017-12-17 06:57:35 +01:00
parent 6d40b27493
commit 311ca8f83d
2 changed files with 45 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST psych-2.2.4.tar.gz 133451 BLAKE2B 665a234b88ff9b5f2dcd6ddc0fb249e2af6a2594b1e3817e68fa47d58556f211568b61d416be3afc91a1cd40237530bd0751d52d49a63ccccf2ff196d7ec4faf SHA512 f56b0e68ba2c6884eaf645f4784dfe56667b8527def29bcd2a36e9f47e11acbdd4a0bb7025988b28cca1413f9f15524ef9fbe61efef3ff295cce4733d3143894
DIST psych-3.0.1.tar.gz 133120 BLAKE2B 322b44a23bfa5afdfaa7f90681b2c0c4525efc88c30950ae4506e7d990ca117c840491b2bcc0ab1d931a4febe8fe67cab73933ed5265a41cac451746e93a9138 SHA512 7a77b6e0b881428f07c147ff4e4752dc563e4c76f8a3d3f9fdf5ec9b95efd2d2fd8109f131a5f911d905f420f0bdc8631411b80f38f753d91511ca7153937075
+44
View File
@@ -0,0 +1,44 @@
# 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="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"
IUSE=""
DEPEND+=" >=dev-libs/libyaml-0.1.7"
ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"
all_ruby_prepare() {
sed -i -e '1igem "minitest", "~>5.0"' test/psych/helper.rb || 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
}