summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-25 18:06:28 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-25 18:06:28 +0000
commita41b40761b547bd1e354e32cec9eea7e9d3af580 (patch)
tree32e2cc47e2252776fd6be6ddf7925f8f865a760b /dev-ruby
parentAdd ~sparc wrt #277776 (diff)
downloadgentoo-2-a41b40761b547bd1e354e32cec9eea7e9d3af580.tar.gz
gentoo-2-a41b40761b547bd1e354e32cec9eea7e9d3af580.tar.bz2
gentoo-2-a41b40761b547bd1e354e32cec9eea7e9d3af580.zip
Version bump and port to ruby-fakegem. This also adds support for Ruby 1.9.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/racc/ChangeLog8
-rw-r--r--dev-ruby/racc/racc-1.4.6.ebuild52
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
+}