summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-05-23 21:34:30 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-05-23 21:34:30 +0000
commit5da456aec5ce94282e6b30dbfbab166800e39ed8 (patch)
treef469682acbbd6ac8615ff94337ac9e7ae0b05ee1 /dev-ruby/parsetree
parentstable amd64, bug 315481 (diff)
downloadhistorical-5da456aec5ce94282e6b30dbfbab166800e39ed8.tar.gz
historical-5da456aec5ce94282e6b30dbfbab166800e39ed8.tar.bz2
historical-5da456aec5ce94282e6b30dbfbab166800e39ed8.zip
Depend on a newer version of Ruby-Inline for correct REE18 support; prebuild extensions at least for the installed versions of the packages.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/parsetree')
-rw-r--r--dev-ruby/parsetree/ChangeLog9
-rw-r--r--dev-ruby/parsetree/Manifest9
-rw-r--r--dev-ruby/parsetree/parsetree-3.0.5-r1.ebuild76
3 files changed, 89 insertions, 5 deletions
diff --git a/dev-ruby/parsetree/ChangeLog b/dev-ruby/parsetree/ChangeLog
index 2757b0e2e401..a5bef22f1d20 100644
--- a/dev-ruby/parsetree/ChangeLog
+++ b/dev-ruby/parsetree/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/parsetree
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/parsetree/ChangeLog,v 1.25 2010/05/22 23:16:34 a3li Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/parsetree/ChangeLog,v 1.26 2010/05/23 21:34:30 flameeyes Exp $
+
+*parsetree-3.0.5-r1 (23 May 2010)
+
+ 23 May 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +parsetree-3.0.5-r1.ebuild:
+ Depend on a newer version of Ruby-Inline for correct REE18 support;
+ prebuild extensions at least for the installed versions of the packages.
22 May 2010; Alex Legler <a3li@gentoo.org> parsetree-3.0.5.ebuild:
Add REE18 support
diff --git a/dev-ruby/parsetree/Manifest b/dev-ruby/parsetree/Manifest
index adbbbb344d97..bacb44989796 100644
--- a/dev-ruby/parsetree/Manifest
+++ b/dev-ruby/parsetree/Manifest
@@ -2,13 +2,14 @@
Hash: SHA1
DIST ParseTree-3.0.5.gem 50176 RMD160 62af98cb07164d35c6fa60b202b7b8a446968248 SHA1 b78d9625fa86e6a0d87aaaf5bbc0120a21792658 SHA256 084b6784980cebb89cb408a9e1b3cddd676695cb5f8ae627856e85cb1adaa7d0
+EBUILD parsetree-3.0.5-r1.ebuild 2178 RMD160 3b564ce460a72299bd103f4333b026bd09d2e9c1 SHA1 98459977c1418be283df16c7c26683d3e526b263 SHA256 c6c40bffe4695be5817b0dfafbfedcb374efc6b2addb20078633c0b5c608f96c
EBUILD parsetree-3.0.5.ebuild 1197 RMD160 1e15e3167a53c1cde12c74c620337ed1880c0bd9 SHA1 2972c6f8685e5510ae0b18bcecddcb6e4e105907 SHA256 a106f0696e6b7c89da74db94f85530f5f00ec3ee03154d83fb867a15a33ae58f
-MISC ChangeLog 3791 RMD160 8feb11251d27c8b527a2acef055b36b4879b77d8 SHA1 a57b4d1593d6ece661becdeb618e64ae6ce37ab4 SHA256 f67ce5884cc03ce3c532c58bcb02f3580b5dee2674f42f0e3412c7630806f8d8
+MISC ChangeLog 4063 RMD160 125ed70a14b25ea605a0ccffc0b5ed034cbfa09d SHA1 24cdc7ec8fd708271d8060cdd5694443236f6c23 SHA256 2c471a59f93581efa1d683d7cfe02ffaef73188adab913d64eb7a1af06277826
MISC metadata.xml 158 RMD160 097f8145a9994f98be4971b43b23b9e5e8bccb66 SHA1 7ac646714b1ab83fda98f3ccdd8b48a31c148b27 SHA256 70b396ab3c7a63a81cb895b7728bd9eccdc9770afdb9919f2c54694b685f7032
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
-iEYEARECAAYFAkv4Zd0ACgkQ+tgfDpkAy6A4dgCaA4U412s33SFmY4Q5fdA24J7o
-08UAn1I04opaNNekLpxQmImSZztqMoCT
-=g7B7
+iEYEARECAAYFAkv5nyoACgkQAiZjviIA2XiLOACeKbXOisgq/f4A1c8E9GVv4Vs1
+bfQAn0t1XABBfj08wGbMOZe8J/ZV9m4p
+=Kr55
-----END PGP SIGNATURE-----
diff --git a/dev-ruby/parsetree/parsetree-3.0.5-r1.ebuild b/dev-ruby/parsetree/parsetree-3.0.5-r1.ebuild
new file mode 100644
index 000000000000..491ebb87e3eb
--- /dev/null
+++ b/dev-ruby/parsetree/parsetree-3.0.5-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/parsetree/parsetree-3.0.5-r1.ebuild,v 1.1 2010/05/23 21:34:30 flameeyes Exp $
+
+EAPI=2
+
+USE_RUBY="ruby18 ree18"
+
+RUBY_FAKEGEM_NAME="ParseTree"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.txt History.txt"
+
+inherit ruby-fakegem
+
+DESCRIPTION="ParseTree extracts the parse tree for a Class or method and returns it as a s-expression."
+HOMEPAGE="http://www.zenspider.com/ZSS/Products/ParseTree/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend '
+ >=dev-ruby/ruby-inline-3.8.4-r1
+ >=dev-ruby/sexp-processor-3.0.0'
+ruby_add_bdepend "
+ test? (
+ dev-ruby/hoe
+ dev-ruby/hoe-seattlerb
+ virtual/ruby-minitest
+ dev-ruby/ruby2ruby
+ )
+ doc? (
+ dev-ruby/hoe
+ dev-ruby/hoe-seattlerb
+ )"
+
+src_compile() {
+ chmod 0755 ${WORKDIR/work/homedir} || die "Failed to fix permissions on home"
+ ruby-ng_src_compile
+}
+
+each_ruby_compile() {
+ # The ruby extension uses RubyInline to use C code within Ruby;
+ # since it causes us no little pain, we'll do our best here to
+ # prebuild the extensions.
+ local orig_HOME="${HOME}"
+ export HOME="${T}/$(basename ${RUBY})"
+ mkdir -p "$HOME"
+
+ ${RUBY} -Ilib -rparse_tree -e '' || die "Unable to load ${PN}"
+
+ mkdir lib/inline
+ cp "$HOME"/.ruby_inline/*.so lib/inline/ || die
+
+ export HOME="$orig_home"
+}
+
+src_test() {
+ chmod 0755 ${WORKDIR/work/homedir} || die "Failed to fix permissions on home"
+ ruby-ng_src_test
+}
+
+pkg_postinst() {
+ elog "${CATEGORY}/${PN} uses the RubyInline library to build its parser."
+ elog "RubyInline builds loadable extensions at runtime in your home"
+ elog "directory if they are not supplied by the gems."
+ elog ""
+ elog "We are currently providing you with pre-built extensions for"
+ elog "the Ruby implementations you're using. Unfortunately these are"
+ elog "different from version to version, so you might have to"
+ elog "rebuild ${CATEGORY}/${PN} after each update to dev-lang/ruby or"
+ elog "dev-lang/ruby-enterprise."
+}