summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-04-29 18:09:15 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-04-29 18:09:15 +0000
commitbb5ef933c590c9a4d23d70dcd6f9aaa5230deb70 (patch)
tree2aa20f72c0ead2d4556b961d71af1d7dcb43e2d5 /dev-ruby/flexmock
parentFix HOMEPAGE and SRC_URI wrt #266702. (diff)
downloadhistorical-bb5ef933c590c9a4d23d70dcd6f9aaa5230deb70.tar.gz
historical-bb5ef933c590c9a4d23d70dcd6f9aaa5230deb70.tar.bz2
historical-bb5ef933c590c9a4d23d70dcd6f9aaa5230deb70.zip
Version bump, move to use tarball and fake gem spec (with a new, nice function to fake it!), and enable use with Ruby 1.9.
Package-Manager: portage-2.2_rc31/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/flexmock')
-rw-r--r--dev-ruby/flexmock/ChangeLog11
-rw-r--r--dev-ruby/flexmock/Manifest12
-rw-r--r--dev-ruby/flexmock/flexmock-0.8.6.ebuild60
3 files changed, 76 insertions, 7 deletions
diff --git a/dev-ruby/flexmock/ChangeLog b/dev-ruby/flexmock/ChangeLog
index f77cb0030a72..d0fbb9213f8c 100644
--- a/dev-ruby/flexmock/ChangeLog
+++ b/dev-ruby/flexmock/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/flexmock
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/ChangeLog,v 1.2 2008/12/20 13:13:17 graaff Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/ChangeLog,v 1.3 2009/04/29 18:09:15 flameeyes Exp $
+
+*flexmock-0.8.6 (29 Apr 2009)
+
+ 29 Apr 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +flexmock-0.8.6.ebuild:
+ Version bump, move to use tarball and fake gem spec (with a new, nice
+ function to fake it!), and enable use with Ruby 1.9.
*flexmock-0.8.3 (20 Dec 2008)
diff --git a/dev-ruby/flexmock/Manifest b/dev-ruby/flexmock/Manifest
index 69c1a7539073..c9b54e43972e 100644
--- a/dev-ruby/flexmock/Manifest
+++ b/dev-ruby/flexmock/Manifest
@@ -3,14 +3,16 @@ Hash: SHA1
DIST flexmock-0.8.0.gem 72192 RMD160 1be6729826f725dc1342f5c668f25f3fb00786fb SHA1 ac72016774bc3518ad0b100d0b2eb9a54bf06061 SHA256 f0e437ecb57c12e64b6b294341950f3e8f0dbc5d38d1f4b4ea980a295944c747
DIST flexmock-0.8.3.gem 75264 RMD160 91249323fa2072419af53e2f577b566903fa3c64 SHA1 943516cd1c5e55e9196a0a9038e94259b1064076 SHA256 f3547e8920d58339ff5162fc56d2cc7d463331bd865bfbeba95e37d3cbb4e33f
+DIST flexmock-0.8.6.tgz 73326 RMD160 d7350fe0f2bd0b171e8b0ba9a8945587f689f336 SHA1 cee4f0be0153ad24ca3b3858433fb7a8fc618001 SHA256 0e813a48a5572d8386e778afd636c257ecba22bbde4ce8a35d00cf918a374f8d
EBUILD flexmock-0.8.0.ebuild 414 RMD160 b9e29ece9a19eb1e07fc226cb0233c7ddca0c8a1 SHA1 4f7d7c402bab773e2cff823e1787930120b88ed3 SHA256 8b45d86b17775c9958c5c4309001ca404f42fec55522d236b798c984fc728d3a
EBUILD flexmock-0.8.3.ebuild 414 RMD160 08fcd99026963f8eb57965e537b7025c252e1a42 SHA1 a02a903e72d24918c51d3fb56d7697396f468667 SHA256 d7122aefdc69fa35cda3b590e4605cb42dce68a2d757fa263d0cf64022a81687
-MISC ChangeLog 663 RMD160 1f44607cd461abf3b77b55eb1ec9efdccd3c7c91 SHA1 f1f91d712620c816c492b957acf6f48b0a49efb7 SHA256 bc33af975e4b06ae3612c5e33c375dd68dbc612c9cdd167fcf3c1425d241c85b
+EBUILD flexmock-0.8.6.ebuild 1345 RMD160 9d7f867708328c90ab9ec227fa8e71049ee99345 SHA1 d6ccc4851ad71204b89d9a744e6bd62ca019055e SHA256 915d8583d9ba7683ea6347c557dd350b2441b99fe688292ad986f5a4e2d9f9e2
+MISC ChangeLog 907 RMD160 ba00933e5764c4453a60801c5d7347f44dd6f9aa SHA1 c858b564c946b5e81cd26770fd20eca97f229e04 SHA256 d064c2101f756e3127298433058ac9c4d7995274a7cd4d1dd37b10e89d4006d7
MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.11 (GNU/Linux)
-iEYEARECAAYFAklM73MACgkQqj4ysMWt/vtp4QCfWIZhHotdCOASeCYQAktFIUVK
-23sAoLDU/IVsHWoQMlt3J/r1ajEoTP6E
-=GSJR
+iEYEARECAAYFAkn4l9AACgkQAiZjviIA2Xg1CgCgq0rriW+2ER4qv+W7PGaWRZwW
+sYEAoMRHs0qMY+GmHMd07j6FjhHeQfey
+=wNrJ
-----END PGP SIGNATURE-----
diff --git a/dev-ruby/flexmock/flexmock-0.8.6.ebuild b/dev-ruby/flexmock/flexmock-0.8.6.ebuild
new file mode 100644
index 000000000000..008af912cce7
--- /dev/null
+++ b/dev-ruby/flexmock/flexmock-0.8.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/flexmock-0.8.6.ebuild,v 1.1 2009/04/29 18:09:15 flameeyes Exp $
+
+inherit ruby
+
+DESCRIPTION="Simple mock object library for Ruby unit testing"
+HOMEPAGE="http://${PN}.rubyforge.org/"
+SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86-fbsd"
+IUSE="doc test"
+
+RDEPEND=""
+DEPEND="doc? ( dev-ruby/rake )
+ test? ( dev-ruby/rake )"
+
+USE_RUBY="ruby18 ruby19"
+
+dofakegemspec() {
+ cat - > "${T}"/${P}.gemspec <<EOF
+Gem::Specification.new do |s|
+ s.name = "${PN}"
+ s.version = "${PV}"
+ s.summary = "${DESCRIPTION}"
+ s.homepage = "${HOMEPAGE}"
+end
+EOF
+
+ insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications
+ doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec"
+}
+
+src_compile() {
+ if use doc; then
+ rake 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
+
+ if use doc; then
+ dohtml -r doc/* || die "dohtml failed"
+ fi
+
+ dodoc CHANGES README || die "dodoc failed"
+
+ dofakegemspec
+}