1 |
flameeyes 12/04/05 19:40:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bson-1.6.2.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha99/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 dev-ruby/bson/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bson/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bson/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bson/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 8 Mar 2012 01:27:58 -0000 1.3 |
24 |
+++ ChangeLog 5 Apr 2012 19:40:18 -0000 1.4 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-ruby/bson |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v 1.3 2012/03/08 01:27:58 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v 1.4 2012/04/05 19:40:18 flameeyes Exp $ |
30 |
+ |
31 |
+*bson-1.6.2 (05 Apr 2012) |
32 |
+ |
33 |
+ 05 Apr 2012; Diego E. Pettenò <flameeyes@g.o> +bson-1.6.2.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*bson-1.6.1 (08 Mar 2012) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-ruby/bson/bson-1.6.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bson/bson-1.6.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bson/bson-1.6.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: bson-1.6.2.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/bson/bson-1.6.2.ebuild,v 1.1 2012/04/05 19:40:18 flameeyes Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
# ruby19 → test_exeption_on_using_unsupported_date_class fails |
54 |
# jruby → support needs to be written properly |
55 |
USE_RUBY="ruby18 ree18" |
56 |
|
57 |
RUBY_FAKEGEM_TASK_DOC="moot" # we do it manually, but still declare it |
58 |
RUBY_FAKEGEM_DOCDIR="html" |
59 |
RUBY_FAKEGEM_EXTRADOC="" |
60 |
|
61 |
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
62 |
|
63 |
GITHUB_USER="mongodb" |
64 |
GITHUB_PROJECT="mongo-ruby-driver" |
65 |
RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*" |
66 |
|
67 |
inherit ruby-fakegem |
68 |
|
69 |
DESCRIPTION="A Ruby BSON implementation for MongoDB. (Includes binary C-based extension.)" |
70 |
HOMEPAGE="http://www.mongodb.org/" |
71 |
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz" |
72 |
|
73 |
LICENSE="APSL-2" |
74 |
SLOT="0" |
75 |
KEYWORDS="~amd64" |
76 |
IUSE="test" |
77 |
|
78 |
ruby_add_bdepend \ |
79 |
"test? ( |
80 |
dev-ruby/rake |
81 |
dev-ruby/shoulda |
82 |
dev-ruby/mocha |
83 |
dev-ruby/test-unit:2 |
84 |
) |
85 |
doc? ( virtual/ruby-rdoc )" |
86 |
|
87 |
all_ruby_prepare() { |
88 |
# remove the stuff that is actually part of dev-ruby/mongo |
89 |
rm -rf {lib,bin}/mongo* |
90 |
} |
91 |
|
92 |
each_ruby_configure() { |
93 |
case ${RUBY} in |
94 |
*/ruby18|*/ruby19|*/rubyee18) |
95 |
${RUBY} -C ext/cbson extconf.rb || die "extconf.rb failed" |
96 |
;; |
97 |
*/jruby) |
98 |
${RUBY} -S rake build:java || die "rake build:java failed" |
99 |
;; |
100 |
esac |
101 |
} |
102 |
|
103 |
each_ruby_compile() { |
104 |
case ${RUBY} in |
105 |
*/ruby18|*/ruby19|*/rubyee18) |
106 |
emake -C ext/cbson CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" |
107 |
mkdir lib/bson_ext |
108 |
cp ext/cbson/*.so lib/bson_ext || die |
109 |
;; |
110 |
*/jruby) |
111 |
die "missing in ebuild" |
112 |
;; |
113 |
esac |
114 |
} |
115 |
|
116 |
all_ruby_compile() { |
117 |
# Trying to get the Rakefile to build the sources is more trouble |
118 |
# than it's worth, do it manually instead. |
119 |
rdoc --op html --inline-source lib/**/*.rb || die "rdoc failed" |
120 |
} |
121 |
|
122 |
each_ruby_test() { |
123 |
case ${RUBY} in |
124 |
*/ruby18|*/ruby19|*/rubyee18) |
125 |
C_EXT=true ${RUBY} -S rake test:bson || die "tests failed" |
126 |
;; |
127 |
esac |
128 |
|
129 |
${RUBY} -S rake test:bson || die "tests failed" |
130 |
} |
131 |
|
132 |
each_ruby_install() { |
133 |
# we have to set the library path here because the gemspec tries to |
134 |
# load bson itself, and would fail without that. |
135 |
RUBYLIB="lib" \ |
136 |
each_fakegem_install |
137 |
|
138 |
# and now we create the simulated gem for bson_ext; we create a file |
139 |
# bson_ext.rb within ext so that we don't have to change the |
140 |
# bson_ext.gemspec file, and at the same time we ensure that bson |
141 |
# gem is loaded when loading bson_ext. |
142 |
dodir $(ruby_fakegem_gemsdir)/gems/bson_ext-${PV}/ext |
143 |
cat - <<EOF > "${D}/$(ruby_fakegem_gemsdir)/gems/bson_ext-${PV}/ext/bson_ext.rb" |
144 |
require 'bson' |
145 |
EOF |
146 |
|
147 |
RUBYLIB="lib" \ |
148 |
RUBY_FAKEGEM_NAME=bson_ext \ |
149 |
RUBY_FAKEGEM_GEMSPEC=bson_ext.gemspec \ |
150 |
ruby_fakegem_install_gemspec |
151 |
} |
152 |
|
153 |
pkg_postinst() { |
154 |
elog "Unlike upstream setup, we do not split bson and bson_ext gem." |
155 |
elog "This means that for all the supported targets, the C-based extension" |
156 |
elog "is installed by this package, and is available transparently." |
157 |
} |