# ChangeLog for dev-ruby/parsetree
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/parsetree/ChangeLog,v 1.44 2011/09/15 04:49:49 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/parsetree/ChangeLog,v 1.45 2011/10/16 09:52:13 graaff Exp $
+
+*parsetree-3.0.8 (16 Oct 2011)
+
+ 16 Oct 2011; Hans de Graaff <graaff@gentoo.org> +parsetree-3.0.8.ebuild:
+ Version bump.
15 Sep 2011; Jeroen Roovers <jer@gentoo.org> parsetree-3.0.7.ebuild:
Stable for HPPA (bug #369573).
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
AUX parsetree-3.0.6-timestamp.patch 377 RMD160 cb2fbcaddf1d5785fc3f33e88b216b11c5b5df9f SHA1 2e6a173bdf83949397ac615acfa51054dd3c3bf8 SHA256 4354003db6800ef4a2fd414134692750cd5f448fb1c2dfe8ebdadb175373bee4
DIST ParseTree-3.0.6.gem 50176 RMD160 fc239a5843af85b223659c0f9eacdbcfd733b977 SHA1 3e86fb3003c6a225f750f0916aaa2ba7cc7e255a SHA256 59ba3eb6eddca64f267a87ef8667063291cb895f969b115a6ca675ab220cdc2a
DIST ParseTree-3.0.7.gem 53248 RMD160 d5bb4af10fb4a9c842cc76fba61445f943b47d3e SHA1 b4ee065ecb08b5f02299e377fd9ac3824431fdf5 SHA256 e2c6dbc6b6b2187290af9ca2506875672450e3fbf1ddd7ec3a5a8db20f79ee0a
+DIST ParseTree-3.0.8.gem 32256 RMD160 87897ade158054bdb191b0a424f520bc69e68a67 SHA1 84c6a483806fccede245781a4d0cc9ac06188aae SHA256 0172ea4b94a93ab5b475c023f1ce6b564600fe493640e886cd1ca12da9039399
EBUILD parsetree-3.0.6.ebuild 2671 RMD160 db3e4f7e8b108e8a949380abb4eb2df375ef83ad SHA1 8a5bb618c1f64730eb2d0c73704af125a6daec65 SHA256 e6256834b0ee66ff6a4404b0793c38fc060d0671fed8c042956b6cc2df1c0094
EBUILD parsetree-3.0.7.ebuild 2676 RMD160 1811825bcb92f7628c5fb5775bdcd3f87ef076b7 SHA1 c8eb906c18b657a98e5f044629ff82def851c5c8 SHA256 99b9ba7ce78ed249d7520db2124bb6051029aa5817785329ab1491475de319f8
-MISC ChangeLog 6268 RMD160 dc4631a03798ece1dec9adf0259f238fcf318900 SHA1 00b1b2c5659fecbd6c26c121e5a0ea4524ac355e SHA256 21e9a3d03b2fa627273ac710642c237becb8a133f7d6c5487a68bac82047312e
+EBUILD parsetree-3.0.8.ebuild 2680 RMD160 082e9fada6d5808eaa610c742c875fdde2b40eda SHA1 71bb71b478370762725dd93063de7b40b0273d55 SHA256 20896a6fb12ec1e76277a6e76ea24129959148938818aa5efa36c8b1acfbd6f2
+MISC ChangeLog 6395 RMD160 ccfea8bf85711e284073a36d11fa0b9fdc1e509e SHA1 e49eb5305f7cb4502dbc8da4d62142402d1fdac8 SHA256 c21f13151e84fcf65edee01184610e0c1a3d785e609e4a7a065b42e62fd26f99
MISC metadata.xml 158 RMD160 097f8145a9994f98be4971b43b23b9e5e8bccb66 SHA1 7ac646714b1ab83fda98f3ccdd8b48a31c148b27 SHA256 70b396ab3c7a63a81cb895b7728bd9eccdc9770afdb9919f2c54694b685f7032
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk5xg/MACgkQVWmRsqeSphO2mACdHL/dJtJZibEQ0x94aDTTLHZy
-+rUAn1BtMaK2Aa8GxVn8pwtT+g11nd6n
-=GxDp
+iF4EAREIAAYFAk6aqVMACgkQiIP6VqMIqNe0qQD/XknlJM+jGQGkQvn41yepSSj6
+4ZWsUil1ICCcGKKPNcMA/1hRV7XOs3AOmwqTEiMLfT47gN+qd5QjeuwxkhUOlutK
+=jMkZ
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/parsetree/parsetree-3.0.8.ebuild,v 1.1 2011/10/16 09:52:14 graaff 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 multilib 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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend '
+ >=dev-ruby/ruby-inline-3.7.0
+ >=dev-ruby/sexp-processor-3.0.0'
+ruby_add_bdepend "
+ test? (
+ dev-ruby/hoe
+ dev-ruby/hoe-seattlerb
+ dev-ruby/minitest
+ dev-ruby/ruby2ruby
+ )
+ doc? (
+ dev-ruby/hoe
+ dev-ruby/hoe-seattlerb
+ )"
+
+all_ruby_prepare() {
+ # Fix USE=doc by removing the path that triggers running the tests
+ # and thus building the extensions in the wrong way.
+ sed -i -e '/require_paths/d' Rakefile || die
+
+}
+
+each_ruby_prepare() {
+ # RubyInline employs a very stupid caching strategy solely based on
+ # the public signatures of methods. Never mind bugs within the C
+ # code... We add a dynamic method name to the parsetree interface
+ # just so that we can guarantee compilation. Fixes #329497.
+ epatch "${FILESDIR}/${PN}-3.0.6-timestamp.patch"
+ sed -i -e "s/TIMESTAMP/$(date +%s)/" lib/parse_tree.rb || die
+}
+
+src_compile() {
+ chmod 0755 "${HOME}" || 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.
+
+ INLINEDIR="${PWD}" ${RUBY} -Ilib -rparse_tree -e '' || die "Unable to load ${PN}"
+
+ mkdir lib/inline
+ cp .ruby_inline/*$(get_modname) lib/inline/ || die
+}
+
+src_test() {
+ chmod 0755 "${HOME}" || 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."
+}