Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/mongoid: mongoid-2.4.3.ebuild ChangeLog
Date: Sat, 28 Jan 2012 20:52:19
Message-Id: 20120128205209.535712004B@flycatcher.gentoo.org
1 flameeyes 12/01/28 20:52:09
2
3 Modified: ChangeLog
4 Added: mongoid-2.4.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 dev-ruby/mongoid/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 23 Jan 2012 02:32:13 -0000 1.4
24 +++ ChangeLog 28 Jan 2012 20:52:09 -0000 1.5
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/mongoid
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.4 2012/01/23 02:32:13 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.5 2012/01/28 20:52:09 flameeyes Exp $
30 +
31 +*mongoid-2.4.3 (28 Jan 2012)
32 +
33 + 28 Jan 2012; Diego E. Pettenò <flameeyes@g.o> +mongoid-2.4.3.ebuild:
34 + Version bump.
35
36 *mongoid-2.4.2 (23 Jan 2012)
37
38
39
40
41 1.1 dev-ruby/mongoid/mongoid-2.4.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mongoid-2.4.3.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.3.ebuild,v 1.1 2012/01/28 20:52:09 flameeyes Exp $
51
52 EAPI=4
53 USE_RUBY="ruby18"
54
55 #RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_TASK_TEST="spec:unit"
57
58 RUBY_FAKEGEM_EXTRADOC="README.md"
59
60 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
61
62 GITHUB_USER="${PN}"
63 GITHUB_PROJECT="${PN}"
64 RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
65
66 inherit ruby-fakegem
67
68 DESCRIPTION="ODM (Object Document Mapper) Framework for MongoDB"
69 HOMEPAGE="http://mongoid.org/"
70 SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/v${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"
71 LICENSE="MIT"
72
73 SLOT="0"
74 KEYWORDS="~amd64"
75 IUSE="test"
76
77 # there is support to create a custom mongodb instance now but there are
78 # still issues to be fixed.
79 #RESTRICT="test"
80
81 ruby_add_rdepend "
82 >=dev-ruby/activemodel-3.1
83 >=dev-ruby/mongo-1.3
84 >=dev-ruby/tzinfo-0.3.22
85 "
86
87 ruby_add_bdepend "
88 test? (
89 dev-ruby/ammeter
90 dev-ruby/mocha
91 dev-ruby/rdoc
92 dev-ruby/rspec
93 dev-util/watchr
94 )"
95
96 DEPEND+=" test? ( dev-db/mongodb )"
97
98 all_ruby_prepare() {
99 # remove references to bundler, as the gemfile does not add anything
100 # we need to care about.
101 sed -i -e '/[bB]undler/d' Rakefile || die
102 # remove the Gemfile as well or it'll try to load it during testing
103 rm Gemfile || die
104 }
105
106 each_ruby_test() {
107 mkdir "${T}/mongodb_$(basename $RUBY)"
108 mongod --port 27017 --dbpath "${T}/mongodb_$(basename $RUBY)" \
109 --noprealloc --noauth --nohttpinterface --nounixsocket --nojournal \
110 --bind_ip 127.255.255.254 &
111 mongod_pid=$!
112 failed=0
113
114 sleep 2
115
116 export MONGOID_SPEC_HOST="127.255.255.254"
117 export MONGOID_SPEC_PORT="27017"
118
119 # functional testing crashes Ruby from within Portage, but works
120 # outside of it, needs to be investigated thoroughly, but at least
121 # unit testing works.
122 ${RUBY} -S rake spec:unit || failed=1
123 kill "${mongod_pid}"
124
125 [[ "${failed}" == "1" ]] && die "tests failed"
126 }