Version
authorHans de Graaff <graaff@gentoo.org>
Thu, 20 Oct 2011 06:09:22 +0000 (06:09 +0000)
committerHans de Graaff <graaff@gentoo.org>
Thu, 20 Oct 2011 06:09:22 +0000 (06:09 +0000)
Package-Manager: portage-2.1.10.11/cvs/Linux x86_64

dev-ruby/racc/ChangeLog
dev-ruby/racc/Manifest
dev-ruby/racc/racc-1.4.7.ebuild [new file with mode: 0644]

index 6b68b9b92622bbc8aa1b4e480a0c268fd605e945..764a335146b42f10235008b0e10a20bb568db80e 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-ruby/racc
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.62 2011/10/20 05:49:36 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.63 2011/10/20 06:09:22 graaff Exp $
+
+*racc-1.4.7 (20 Oct 2011)
+
+  20 Oct 2011; Hans de Graaff <graaff@gentoo.org> +racc-1.4.7.ebuild:
+  Version bump.
 
   20 Oct 2011; Hans de Graaff <graaff@gentoo.org> -racc-1.4.5.ebuild:
   Remove old version.
index 26356d27f0474eaf39727a05ea76ef06af41f224..46752f468c9bef4871c666027bc910dc44ef0dc0 100644 (file)
@@ -3,14 +3,16 @@ Hash: SHA256
 
 AUX racc-1.4.6-test-unit.patch 307 RMD160 e5d74d5c4dddf9121bdef36d204529ab86ee3aea SHA1 1c3aa5e93d9f9968d320c39b1987e3ffcca55888 SHA256 233e631e1dda2ae7f4802860bd95d131e952a41a67b30394e4631ac87260180f
 DIST racc-1.4.6.gem 110592 RMD160 b755cc948519a22b5fc7fbf4d0b1a6519db6415b SHA1 3ce1fc7a7245cf388ec20e9b612fd5d1111b387e SHA256 5877e6d676b0512e9d8587b273acf71aa7e6bd7c77b5e3f4bc26d9b5ccd08378
+DIST racc-1.4.7.gem 109056 RMD160 9a4bf32b6aec22f49ea59fb89be7f25074aa3bea SHA1 aa66dbad48bb449d3a32629718aa43a96f0f44b6 SHA256 0468f784a7f98bc2498d0e14596fc694182d957f9f1831309c6e94d075055f6f
 EBUILD racc-1.4.6-r1.ebuild 2067 RMD160 f7e5bbc0141356aa73d539643e53b7ca27a033aa SHA1 0c3558a7a31fef9c886a0067affef7b45f7a1495 SHA256 93a399eb2256a512f817cae46557b06b5365e74d6e95bdfaf44f0bf90da98520
 EBUILD racc-1.4.6.ebuild 2035 RMD160 77986e915fbef82bac2267efb58d85ea29d2b6af SHA1 c23d4b221380e4110045a3fb86ed6a1089d48443 SHA256 0ff8dbb3d918b0b384e77727af8b373de040755cce1cb4ba3e4fb9a5a69117f7
-MISC ChangeLog 7223 RMD160 58d0e880403bc81f20305c4c519630f009c785c1 SHA1 5753e0d203824ceea1addf827b4958748b021e66 SHA256 5517aef0d9c65048b66833fb3274814f53ad878e881b439a4429973f3dfe7f3f
+EBUILD racc-1.4.7.ebuild 1845 RMD160 e84ef2706fd90767a0988e5a151f510628d975e5 SHA1 d8dcfec895c3d8afc7a1351e446d70f7c32f308a SHA256 43b27350d6c77a93dbc5d1303c1c94718cb0657518df276572289d60c99e244d
+MISC ChangeLog 7337 RMD160 87f7b5bbfee516552ad84852784ef0685c3062ce SHA1 a530617468fccd13e4a2af7b3dd4a25ffdc4c03d SHA256 b1c09887cf13d7598dadd8992a8610465ff02eed0af1173a36f0784561962057
 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (GNU/Linux)
 
-iF4EAREIAAYFAk6ftnwACgkQiIP6VqMIqNfJsQD/SeXOG0zrtjeYpdQtvQXVIkp2
-zVfvSqVWvTKLgPPmhjcA/0jpd8Z771HI5kKtKYPEUWnGV3XyjvvFYUE6FMcM4FjR
-=Ofi8
+iF4EAREIAAYFAk6fuxcACgkQiIP6VqMIqNeXVwEAk6D+ajOPJm+Gt8QM+v8OA79x
+fNoij2Df2+cEmnPG0yUA/RiEEJtwod8xPIa27kSOHwGnh8wVC0xZa7qrtWAdZY2E
+=82k6
 -----END PGP SIGNATURE-----
diff --git a/dev-ruby/racc/racc-1.4.7.ebuild b/dev-ruby/racc/racc-1.4.7.ebuild
new file mode 100644 (file)
index 0000000..d4d97e6
--- /dev/null
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.7.ebuild,v 1.1 2011/10/20 06:09:22 graaff Exp $
+
+EAPI=4
+
+USE_RUBY="ree18 ruby18 ruby19 jruby"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.rdoc README.ja.rdoc TODO ChangeLog"
+
+inherit multilib 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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+ruby_add_bdepend "dev-ruby/rake"
+
+all_ruby_prepare() {
+       # for Ruby 1.9.2 compatibility
+       sed -i -e '1i $: << "."' Rakefile || die
+
+       sed -i -e '/tasks\/email/s:^:#:' Rakefile || die "rakefile fix failed"
+       sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed"
+}
+
+each_ruby_prepare() {
+       case ${RUBY} in
+               *jruby)
+                       ;;
+               *)
+                       ${RUBY} -Cext/racc extconf.rb || die
+                       ;;
+       esac
+}
+
+each_ruby_compile() {
+       case ${RUBY} in
+               *jruby)
+                       einfo "Under JRuby, racc cannot use the shared object parser, so instead"
+                       einfo "you have to rely on the pure Ruby implementation."
+                       ;;
+               *)
+                       emake -Cext/racc
+                       # Copy over the file here so that we don't have to do
+                       # special ruby install for JRuby and the other
+                       # implementations.
+                       cp -l ext/racc/cparse$(get_modname) lib/racc/cparse$(get_modname) || die
+                       ;;
+       esac
+}
+
+each_ruby_test() {
+       case ${RUBY} in
+               *jruby)
+                       ewarn "Using JRuby 1.5.2 the tests are currently badly broken,"
+                       ewarn "so they are disabled until a new racc or a new JRuby is"
+                       ewarn "released."
+                       ;;
+               *)
+                       each_fakegem_test
+                       ;;
+       esac
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       dodoc -r rdoc
+
+       docinto examples
+       dodoc -r sample
+}