diff options
author | Hans de Graaff <graaff@gentoo.org> | 2009-05-26 18:27:33 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2009-05-26 18:27:33 +0000 |
commit | a88a524a74f5f98bf8b7d2ecca5860517ac0cf76 (patch) | |
tree | 946667d1921902e13c0de90aa77f8cabf2957a1c /dev-ruby/mislav-will_paginate | |
parent | DEPEND on gnome-common to get GNOME_COMPILE_WARNINGS macro. Bug 271298. Thank... (diff) | |
download | gentoo-2-a88a524a74f5f98bf8b7d2ecca5860517ac0cf76.tar.gz gentoo-2-a88a524a74f5f98bf8b7d2ecca5860517ac0cf76.tar.bz2 gentoo-2-a88a524a74f5f98bf8b7d2ecca5860517ac0cf76.zip |
Version bump. Add mocha dependency for tests.
(Portage version: 2.1.6.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/mislav-will_paginate')
3 files changed, 80 insertions, 3 deletions
diff --git a/dev-ruby/mislav-will_paginate/ChangeLog b/dev-ruby/mislav-will_paginate/ChangeLog index 5d416670967b..e27e1f9fc900 100644 --- a/dev-ruby/mislav-will_paginate/ChangeLog +++ b/dev-ruby/mislav-will_paginate/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-ruby/mislav-will_paginate # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mislav-will_paginate/ChangeLog,v 1.3 2009/05/20 12:04:04 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mislav-will_paginate/ChangeLog,v 1.4 2009/05/26 18:27:33 graaff Exp $ + +*mislav-will_paginate-2.3.9 (26 May 2009) + + 26 May 2009; Hans de Graaff <graaff@gentoo.org> + mislav-will_paginate-2.3.7.ebuild, +mislav-will_paginate-2.3.9.ebuild: + dev-ruby/mocha is needed when running the tests. + Bump version for improved Rails 2.3.2 compatibility. This makes the test + suite pass when Rails 2.3.2 is installed. 20 May 2009; Hans de Graaff <graaff@gentoo.org> Manifest: Redigest zip file now that github has fixed zip downloading. diff --git a/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.7.ebuild b/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.7.ebuild index bc49ce50a499..2052314f3c68 100644 --- a/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.7.ebuild +++ b/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.7.ebuild,v 1.3 2009/05/20 12:00:16 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.7.ebuild,v 1.4 2009/05/26 18:27:33 graaff Exp $ EAPI=2 @@ -19,7 +19,7 @@ SRC_URI="http://github.com/mislav/will_paginate/tarball/v${PV} -> ${P}.tgz" USE_RUBY="ruby18" DEPEND="doc? ( dev-ruby/rake ) - test? ( dev-ruby/rake )" + test? ( dev-ruby/rake dev-ruby/mocha )" RDEPEND=">=dev-ruby/activesupport-1.4.4" S="${WORKDIR}" diff --git a/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.9.ebuild b/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.9.ebuild new file mode 100644 index 000000000000..4badf2f0c1ed --- /dev/null +++ b/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.9.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mislav-will_paginate/mislav-will_paginate-2.3.9.ebuild,v 1.1 2009/05/26 18:27:33 graaff Exp $ + +EAPI=2 + +inherit ruby + +DESCRIPTION="Most awesome pagination solution for Ruby " +HOMEPAGE="http://github.com/mislav/will_paginate/" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples test" + +SRC_URI="http://github.com/mislav/will_paginate/tarball/v${PV} -> ${P}.tgz" + +USE_RUBY="ruby18" + +DEPEND="doc? ( dev-ruby/rake ) + test? ( dev-ruby/rake dev-ruby/mocha )" +RDEPEND=">=dev-ruby/activesupport-1.4.4" + +S="${WORKDIR}" + +src_prepare() { + cd "${WORKDIR}"/${PN}-* + + sed -i -e "/s\.name/s:will_paginate:${PN}:" will_paginate.gemspec || die "unable to fix gemspec" +} + +src_compile() { + cd "${WORKDIR}"/${PN}-* + + if use doc; then + rake rdoc || die "rake rdoc failed" + fi +} + +src_test() { + cd "${WORKDIR}"/${PN}-* + + rake test || die "rake test failed" +} + +src_install() { + cd "${WORKDIR}"/${PN}-* + + pushd lib + doruby -r * || die "install lib failed" + popd + + insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')/../gems/1.8/specifications + newins will_paginate.gemspec ${P}.gemspec || die "Unable to install fake gemspec" + + dodoc CHANGELOG.rdoc README.rdoc || die "Installing docs failed." + + if use doc; then + pushd doc + dohtml -r * || die "Installing html documentation failed." + popd + fi + + if use examples; then + docinto examples + dodoc examples/* || die "Installing examples failes." + fi +} |