diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-04-29 18:12:12 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-04-29 18:12:12 +0000 |
commit | 74055e3a2bc6ac0a46658097f4bb751e31f99429 (patch) | |
tree | 18a80764a5ac24ccc3aaa326206ef3b6889b003b /dev-ruby/aws-s3 | |
parent | Version bump, move to use tarball and fake gem spec (with a new, nice functio... (diff) | |
download | gentoo-2-74055e3a2bc6ac0a46658097f4bb751e31f99429.tar.gz gentoo-2-74055e3a2bc6ac0a46658097f4bb751e31f99429.tar.bz2 gentoo-2-74055e3a2bc6ac0a46658097f4bb751e31f99429.zip |
Version bump, still not enabled on Ruby 1.9 since it fails tests.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/aws-s3')
-rw-r--r-- | dev-ruby/aws-s3/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/aws-s3/aws-s3-0.6.2.ebuild | 66 |
2 files changed, 73 insertions, 1 deletions
diff --git a/dev-ruby/aws-s3/ChangeLog b/dev-ruby/aws-s3/ChangeLog index 3de86892cfa0..53fb865a7169 100644 --- a/dev-ruby/aws-s3/ChangeLog +++ b/dev-ruby/aws-s3/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/aws-s3 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-s3/ChangeLog,v 1.1 2009/04/17 14:20:29 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-s3/ChangeLog,v 1.2 2009/04/29 18:12:12 flameeyes Exp $ + +*aws-s3-0.6.2 (29 Apr 2009) + + 29 Apr 2009; Diego E. Pettenò <flameeyes@gentoo.org> + +aws-s3-0.6.2.ebuild: + Version bump, still not enabled on Ruby 1.9 since it fails tests. *aws-s3-0.5.1 (17 Apr 2009) diff --git a/dev-ruby/aws-s3/aws-s3-0.6.2.ebuild b/dev-ruby/aws-s3/aws-s3-0.6.2.ebuild new file mode 100644 index 000000000000..1492d1de30fc --- /dev/null +++ b/dev-ruby/aws-s3/aws-s3-0.6.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-s3/aws-s3-0.6.2.ebuild,v 1.1 2009/04/29 18:12:12 flameeyes Exp $ + +inherit ruby + +DESCRIPTION="Client library for Amazon's Simple Storage Service's REST API" +HOMEPAGE="http://amazon.rubyforge.org/" +SRC_URI="mirror://rubyforge/amazon/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" + +RDEPEND="dev-ruby/xml-simple + dev-ruby/builder + dev-ruby/mime-types" +DEPEND="${RDEPEND} + test? ( dev-ruby/ruby-debug + dev-ruby/flexmock ) + dev-ruby/rake" + +USE_RUBY="ruby18" + +src_unpack() { + unpack ${A} + + # Remove extra files generated by Mac OS X during packaging + find "${S}" -name '._*' -delete + + # As of release 0.6.2 this part is going to break when building + # with Ruby 1.9; we disable it since we don't need it at all. + sed -i -e '/^namespace :site/,/^end/ d' "${S}"/Rakefile \ + || die "sed out of rake's :site namespace failed" +} + +src_compile() { + if use doc; then + rake doc:rerdoc || die "rake rerdoc failed" + fi +} + +src_test() { + for ruby in $USE_RUBY; do + [[ -n `type -p $ruby` ]] && $ruby $(type -p rake) test || die "testsuite failed" + done +} + +src_install() { + pushd lib + doruby -r * || die "doruby failed" + popd + + dobin bin/s3sh || die "dobin failed" + + if use doc; then + dohtml -r doc/* || die "dohtml failed" + fi + + dodoc README || die "dodoc failed" + + insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')/../gems/1.8/specifications + sed -e "s:@VERSION@:${PV}:" "${FILESDIR}"/${PN}.gemspec > "${T}"/${P}.gemspec + doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" +} |