diff options
author | Hans de Graaff <graaff@gentoo.org> | 2012-03-18 10:34:33 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2012-03-18 10:34:33 +0000 |
commit | 0a0bc4a4e14fe2c82a8c3403aa435e25dda2c429 (patch) | |
tree | 49a06c07d9435098254abc87ca7be1df196bc88d /dev-ruby | |
parent | Add missing dependency on the rdoc gem, bug 408465. (diff) | |
download | gentoo-2-0a0bc4a4e14fe2c82a8c3403aa435e25dda2c429.tar.gz gentoo-2-0a0bc4a4e14fe2c82a8c3403aa435e25dda2c429.tar.bz2 gentoo-2-0a0bc4a4e14fe2c82a8c3403aa435e25dda2c429.zip |
Add ruby19 target. Handle compilation directly instead of via echoe, and only
do this for ruby18 as per the extconf.rb file. Install a noop file for all
other targets.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/fastthread/ChangeLog | 11 | ||||
-rw-r--r-- | dev-ruby/fastthread/fastthread-1.0.7-r2.ebuild | 57 |
2 files changed, 66 insertions, 2 deletions
diff --git a/dev-ruby/fastthread/ChangeLog b/dev-ruby/fastthread/ChangeLog index 73fa861efcc8..b2929bd20d70 100644 --- a/dev-ruby/fastthread/ChangeLog +++ b/dev-ruby/fastthread/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-ruby/fastthread -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fastthread/ChangeLog,v 1.47 2011/04/24 18:01:11 graaff Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fastthread/ChangeLog,v 1.48 2012/03/18 10:34:33 graaff Exp $ + +*fastthread-1.0.7-r2 (08 Jan 2012) + + 08 Jan 2012; Hans de Graaff <graaff@gentoo.org> +fastthread-1.0.7-r2.ebuild: + Add ruby19 target. Handle compilation directly instead of via echoe, and only + do this for ruby18 as per the extconf.rb file. Install a noop file for all + other targets. 24 Apr 2011; Hans de Graaff <graaff@gentoo.org> -fastthread-1.0.7.ebuild: Remove old version. diff --git a/dev-ruby/fastthread/fastthread-1.0.7-r2.ebuild b/dev-ruby/fastthread/fastthread-1.0.7-r2.ebuild new file mode 100644 index 000000000000..b6cc2dc463cc --- /dev/null +++ b/dev-ruby/fastthread/fastthread-1.0.7-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fastthread/fastthread-1.0.7-r2.ebuild,v 1.1 2012/03/18 10:34:33 graaff Exp $ + +EAPI=2 + +# This package really only does anything meaningful for ruby 1.8, but +# other packages may depend on it unconditionally so we add their +# targets as well and install a no-op file. +USE_RUBY="ruby18 ruby19 ree18" + +RUBY_FAKEGEM_TASK_DOC="docs" +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG" + +inherit ruby-fakegem multilib + +DESCRIPTION="Optimized replacement for thread.rb primitives" +HOMEPAGE="http://gemcutter.org/gems/fastthread" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend "doc? ( >=dev-ruby/echoe-2.7.1 )" + +all_ruby_prepare() { + sed -i -e 's|if Platform|if Echoe::Platform|' Rakefile || die + mkdir lib || die +} + +each_ruby_configure() { + ${RUBY} -Cext/fastthread extconf.rb || die +} + +each_ruby_compile() { + case ${RUBY} in + *ruby18) + emake -Cext/fastthread + cp ext/fastthread/*$(get_modname) lib/ || die + ;; + *) + touch lib/fastthread.rb || die + ;; + esac +} + +each_ruby_test() { + case ${RUBY} in + *ruby18) + ${RUBY} -Ilib -S testrb test/test_*.rb || die + ;; + esac +} |