diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-04-11 06:54:26 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-04-11 06:54:26 +0000 |
commit | 4220afc1c06848e57596b3d893d4ba534f38491c (patch) | |
tree | 16f1e744bc6014223f1a962cb9f54bf577f17808 /dev-ruby/json | |
parent | old (diff) | |
download | historical-4220afc1c06848e57596b3d893d4ba534f38491c.tar.gz historical-4220afc1c06848e57596b3d893d4ba534f38491c.tar.bz2 historical-4220afc1c06848e57596b3d893d4ba534f38491c.zip |
Version bump: Triger const_missing callback to make Rails' dynamic class loading work.
Package-Manager: portage-2.1.7.17/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/json')
-rw-r--r-- | dev-ruby/json/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/json/Manifest | 10 | ||||
-rw-r--r-- | dev-ruby/json/json-1.2.4.ebuild | 64 |
3 files changed, 77 insertions, 5 deletions
diff --git a/dev-ruby/json/ChangeLog b/dev-ruby/json/ChangeLog index 2bc04f0ffadb..c49e1af8048f 100644 --- a/dev-ruby/json/ChangeLog +++ b/dev-ruby/json/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/json # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v 1.21 2010/04/04 06:54:38 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v 1.22 2010/04/11 06:54:26 graaff Exp $ + +*json-1.2.4 (11 Apr 2010) + + 11 Apr 2010; Hans de Graaff <graaff@gentoo.org> +json-1.2.4.ebuild: + Version bump: Triger const_missing callback to make Rails' dynamic class + loading work. *json-1.2.3 (04 Apr 2010) diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest index b7af6701a2ab..604e9bb33aa7 100644 --- a/dev-ruby/json/Manifest +++ b/dev-ruby/json/Manifest @@ -5,17 +5,19 @@ DIST json-1.2.0.gem 385536 RMD160 f144cf6c41c2b52621359d353c5ae22e3e3d366b SHA1 DIST json-1.2.1.gem 386048 RMD160 a14ac15177bc0a2eb96c85ded42a787d1df963cd SHA1 78bdac383ee383221652f6e68e5f03a9675e198f SHA256 4ab9da3d9c720a7e260d35a309da485c37866565cf4ac4c83f2dd0be277aa95a DIST json-1.2.2.gem 386048 RMD160 d0451e6b6a781ef840860136cea7513f2e58f9ee SHA1 056c6dd361f2985167f49ef040bc2b119d899179 SHA256 9b0e4c2fcc1d61354106ff803b6d89357584c8969b0028c71070591d04f64012 DIST json-1.2.3.gem 386048 RMD160 6751122f6261f382d93981f3059eff15839121f1 SHA1 edecc79a59dff06d5cdc3b91333859a885f401c4 SHA256 7088797171ee45a400a5cfa10fd675faa5f7d4dd04ac83f14e167dd5087ea9e5 +DIST json-1.2.4.gem 386560 RMD160 f578a045281f1101ac8657e45c68cb6de6421095 SHA1 b1cdf371966e6901faf42366c59092a1c01d6924 SHA256 5de55c4531a01c1b02ed9440713a4aa86c83005a05897ff97c4bf5435748b2f1 EBUILD json-1.2.0-r1.ebuild 1861 RMD160 450c4802caaa7c8c3ac7083dd063a03c8762b3a0 SHA1 6db8ffdbff49f0b5c9fac43f3c419c8fc8d17ac7 SHA256 4c9e4c270796510cf9003d48333ad3120e47037ff5a34e184e38a7341eca617a EBUILD json-1.2.0.ebuild 416 RMD160 dbc41f12a5e25853b66c7728ca4095de22a3203d SHA1 99e854c9aa3366713e145a9f0c11fc9135554a5c SHA256 f98bee2fe15cb2c7db9e14de76bb49fc5f4cf10d180821f8b8af0e985f503c97 EBUILD json-1.2.1.ebuild 1857 RMD160 3b9773f0b780a2c710f419dba1e6daf97bdea5d3 SHA1 1f135796452119c29088e80cc4018112d16cc07d SHA256 bf80cbd32e9c132ef6dfa4e6af4d78fe41ea050eca90d89744a5eddb47024bdd EBUILD json-1.2.2.ebuild 1857 RMD160 ff449234b6220da96d1d31df07f1efb1005478c5 SHA1 ce45ffc0ce95413f968d4aeb712028561a112891 SHA256 836efbb95f752549c4ca87ac5a1e3c23ec0bffca7c9111a8c929691820ea27b8 EBUILD json-1.2.3.ebuild 1857 RMD160 0a7236cfa55fefb69c8a5698f7c3638db49cb2f8 SHA1 64978bd7dae6bec4948d1c6fc8e4986747ef9615 SHA256 8775ee0e1b0c41fa8bf002efb236239058a017b862b60b4df3d6df8c8f65fb21 -MISC ChangeLog 3116 RMD160 5ba5c47c4b45903341022295d7b4366d02e533b7 SHA1 3351ea76a2d881f6efb81dc3d6a31eb955e43d25 SHA256 eef116037a8222a32d657239662116a1dbcb2a16cc2121f84226fa90576ea8d2 +EBUILD json-1.2.4.ebuild 1857 RMD160 d41c7f11f64b27e79e3663d4d09f488fce1f7e88 SHA1 7f8dea6ab0d44e47818f78925bc6a0b0f9d7dde4 SHA256 b9e45a0484fa7489208094450e39cc4bce97374036fb2d7aae8130d0f4945a81 +MISC ChangeLog 3305 RMD160 9c89aae2962c5209160fccaba95be47bc57eb1ba SHA1 6e43e2503b710f93a0b690b46ac8493b7ea3d8bb SHA256 9e11411337c48981c60a61e521057183051be23d591e2c0353f06d92f889e8f8 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAku4N7QACgkQeM7EJeUH71Mu4ACdEVcDxRODBa68F9uECIku9GUf -COgAniLh0lHiSyx+vtUTf5njenuJbrNj -=jXc6 +iEYEARECAAYFAkvBcjMACgkQeM7EJeUH71O45ACfbYagVpiSHrW0k0CF2wcn/K+G +0mwAn2whS72XfQAumQGlx7oKxMeh6Wex +=A3iS -----END PGP SIGNATURE----- diff --git a/dev-ruby/json/json-1.2.4.ebuild b/dev-ruby/json/json-1.2.4.ebuild new file mode 100644 index 000000000000..6de72cf9cc5f --- /dev/null +++ b/dev-ruby/json/json-1.2.4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/json-1.2.4.ebuild,v 1.1 2010/04/11 06:54:26 graaff Exp $ + +EAPI=2 +USE_RUBY="ruby18 ruby19 jruby" + +RUBY_FAKEGEM_TASK_DOC="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGES TODO README" +RUBY_FAKEGEM_DOCDIR="doc" + +inherit ruby-fakegem + +DESCRIPTION="A JSON implementation as a Ruby extension." +HOMEPAGE="http://json.rubyforge.org/" +LICENSE="|| ( Ruby GPL-2 )" +SRC_URI="mirror://rubygems/${P}.gem" + +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" +SLOT="0" +IUSE="" + +RDEPEND="" +DEPEND="dev-util/ragel" + +ruby_add_bdepend test virtual/ruby-test-unit +ruby_add_bdepend dev-ruby/rake + +all_ruby_prepare() { + # Avoid building the extension twice! + sed -i \ + -e 's| => :compile_ext||' \ + -e 's| => :clean||' \ + Rakefile || die "rakefile fix failed" +} + +each_ruby_compile() { + if [[ $(basename ${RUBY}) != "jruby" ]]; then + ${RUBY} -S rake compile_ext || die "extension compile failed" + fi +} + +each_ruby_test() { + # We have to set RUBYLIB because otherwise the tests will run + # against the sytem-installed json; at the same time, we cannot + # use the -I parameter because rake won't let it pass to the + # testrb call that is executed down the road. + + RUBYLIB="${RUBYLIB}${RUBYLIB+:}lib:ext/json/ext" \ + ${RUBY} -S rake test_pure || die "pure ruby tests failed" + + if [[ $(basename ${RUBY}) != "jruby" ]]; then + RUBYLIB="${RUBYLIB}${RUBYLIB+:}lib:ext/json/ext" \ + ${RUBY} -Ilib:ext/json/ext -S rake test_ext || die " ruby extension tests failed" + fi +} + +each_ruby_install() { + each_fakegem_install + if [[ $(basename ${RUBY}) != "jruby" ]]; then + ruby_fakegem_newins ext/json/ext/generator.so lib/json/generator.so + ruby_fakegem_newins ext/json/ext/parser.so lib/json/parser.so + fi +} |