1 |
flameeyes 09/04/29 18:09:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: flexmock-0.8.6.ebuild |
5 |
Log: |
6 |
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. |
7 |
(Portage version: 2.2_rc31/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 dev-ruby/flexmock/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/flexmock/ChangeLog?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/flexmock/ChangeLog?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/flexmock/ChangeLog?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/ChangeLog,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- ChangeLog 20 Dec 2008 13:13:17 -0000 1.2 |
23 |
+++ ChangeLog 29 Apr 2009 18:09:15 -0000 1.3 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-ruby/flexmock |
26 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/ChangeLog,v 1.2 2008/12/20 13:13:17 graaff Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/ChangeLog,v 1.3 2009/04/29 18:09:15 flameeyes Exp $ |
30 |
+ |
31 |
+*flexmock-0.8.6 (29 Apr 2009) |
32 |
+ |
33 |
+ 29 Apr 2009; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ +flexmock-0.8.6.ebuild: |
35 |
+ Version bump, move to use tarball and fake gem spec (with a new, nice |
36 |
+ function to fake it!), and enable use with Ruby 1.9. |
37 |
|
38 |
*flexmock-0.8.3 (20 Dec 2008) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-ruby/flexmock/flexmock-0.8.6.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/flexmock/flexmock-0.8.6.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/flexmock/flexmock-0.8.6.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: flexmock-0.8.6.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/flexmock-0.8.6.ebuild,v 1.1 2009/04/29 18:09:15 flameeyes Exp $ |
53 |
|
54 |
inherit ruby |
55 |
|
56 |
DESCRIPTION="Simple mock object library for Ruby unit testing" |
57 |
HOMEPAGE="http://${PN}.rubyforge.org/" |
58 |
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" |
59 |
|
60 |
LICENSE="as-is" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~x86-fbsd" |
63 |
IUSE="doc test" |
64 |
|
65 |
RDEPEND="" |
66 |
DEPEND="doc? ( dev-ruby/rake ) |
67 |
test? ( dev-ruby/rake )" |
68 |
|
69 |
USE_RUBY="ruby18 ruby19" |
70 |
|
71 |
dofakegemspec() { |
72 |
cat - > "${T}"/${P}.gemspec <<EOF |
73 |
Gem::Specification.new do |s| |
74 |
s.name = "${PN}" |
75 |
s.version = "${PV}" |
76 |
s.summary = "${DESCRIPTION}" |
77 |
s.homepage = "${HOMEPAGE}" |
78 |
end |
79 |
EOF |
80 |
|
81 |
insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications |
82 |
doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" |
83 |
} |
84 |
|
85 |
src_compile() { |
86 |
if use doc; then |
87 |
rake rerdoc || die "rake rerdoc failed" |
88 |
fi |
89 |
} |
90 |
|
91 |
src_test() { |
92 |
for ruby in $USE_RUBY; do |
93 |
[[ -n `type -p $ruby` ]] && $ruby $(type -p rake) test || die "testsuite failed" |
94 |
done |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
pushd lib |
99 |
doruby -r * || die "doruby failed" |
100 |
popd |
101 |
|
102 |
if use doc; then |
103 |
dohtml -r doc/* || die "dohtml failed" |
104 |
fi |
105 |
|
106 |
dodoc CHANGES README || die "dodoc failed" |
107 |
|
108 |
dofakegemspec |
109 |
} |