diff options
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/racc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/racc/racc-1.4.6.ebuild | 52 |
2 files changed, 59 insertions, 1 deletions
diff --git a/dev-ruby/racc/ChangeLog b/dev-ruby/racc/ChangeLog index 38084ddb5dd4..867f9156508c 100644 --- a/dev-ruby/racc/ChangeLog +++ b/dev-ruby/racc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/racc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.43 2009/07/14 17:15:57 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.44 2009/12/25 18:06:28 flameeyes Exp $ + +*racc-1.4.6 (25 Dec 2009) + + 25 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org> +racc-1.4.6.ebuild: + Version bump and port to ruby-fakegem. This also adds support for Ruby + 1.9. 14 Jul 2009; Hans de Graaff <graaff@gentoo.org> racc-1.4.5.ebuild: Remove ruby19 keyword: not compatible. See bug 276631, thanks to Kevin diff --git a/dev-ruby/racc/racc-1.4.6.ebuild b/dev-ruby/racc/racc-1.4.6.ebuild new file mode 100644 index 000000000000..8c543aa5fc4c --- /dev/null +++ b/dev-ruby/racc/racc-1.4.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.6.ebuild,v 1.1 2009/12/25 18:06:28 flameeyes Exp $ + +EAPI=2 + +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.en.rdoc README.ja.rdoc TODO ChangeLog" + +inherit ruby-fakegem + +DESCRIPTION="A LALR(1) parser generator for Ruby" +HOMEPAGE="http://www.loveruby.net/en/racc.html" + +LICENSE="LGPL-2.1" +SLOT="0" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +ruby_add_bdepend test virtual/ruby-test-unit + +all_ruby_prepare() { + sed -i -e '/tasks\/email/s:^:#:' Rakefile || die "rakefile fix failed" + sed -i -e '/prerequisites/s:^:#:' tasks/test.rb || die "test task fix failed" + sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed" +} + +each_ruby_prepare() { + if [[ $(basename ${RUBY}) == "ruby18" ]]; then + sed -i -e 's:ruby/ruby.h:ruby.h:' \ + ext/racc/cparse/cparse.c || die + fi +} + +each_ruby_compile() { + ${RUBY} -S rake build || die "build failed" +} + +each_ruby_install() { + each_fakegem_install + ruby_fakegem_newins ext/racc/cparse/cparse.so lib/racc/cparse.so +} + +all_ruby_install() { + all_fakegem_install + + docinto examples + dodoc sample/* || die +} |