1 |
polynomial-c 13/07/30 06:21:51 |
2 |
|
3 |
Modified: ChangeLog Ice-3.4.2.ebuild |
4 |
Added: Ice-3.5.0-r1.ebuild |
5 |
Removed: Ice-3.5.0.ebuild Ice-3.4.2-r1.ebuild |
6 |
Log: |
7 |
Converted ebuild to python-r1 eclass. Changed dependencies to not use >=sys-libs/db-6.0 (bug #476378). Removed old |
8 |
|
9 |
(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.23 dev-libs/Ice/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/ChangeLog?rev=1.23&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/ChangeLog?rev=1.23&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/ChangeLog?r1=1.22&r2=1.23 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/Ice/ChangeLog,v |
21 |
retrieving revision 1.22 |
22 |
retrieving revision 1.23 |
23 |
diff -u -r1.22 -r1.23 |
24 |
--- ChangeLog 12 Jun 2013 14:55:02 -0000 1.22 |
25 |
+++ ChangeLog 30 Jul 2013 06:21:51 -0000 1.23 |
26 |
@@ -1,6 +1,15 @@ |
27 |
# ChangeLog for dev-libs/Ice |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/ChangeLog,v 1.22 2013/06/12 14:55:02 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/ChangeLog,v 1.23 2013/07/30 06:21:51 polynomial-c Exp $ |
31 |
+ |
32 |
+*Ice-3.5.0-r1 (30 Jul 2013) |
33 |
+ |
34 |
+ 30 Jul 2013; Lars Wendler <polynomial-c@g.o> Ice-3.4.2.ebuild, |
35 |
+ -Ice-3.4.2-r1.ebuild, -Ice-3.5.0.ebuild, +Ice-3.5.0-r1.ebuild: |
36 |
+ Non-maintainer commit: Converted ebuild to python-r1 eclass. Thanks to mgorny |
37 |
+ for his expensive work with the conversion. Changed dependencies to not use |
38 |
+ >=sys-libs/db-6.0 due to upstream not supporting this version because of |
39 |
+ license issues (bug #476378). Removed old. |
40 |
|
41 |
12 Jun 2013; Lars Wendler <polynomial-c@g.o> Ice-3.5.0.ebuild: |
42 |
Fixed installation with "doc" USE flag being enabled. Thanks to Martin von |
43 |
|
44 |
|
45 |
|
46 |
1.10 dev-libs/Ice/Ice-3.4.2.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/Ice-3.4.2.ebuild?rev=1.10&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/Ice-3.4.2.ebuild?rev=1.10&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/Ice-3.4.2.ebuild?r1=1.9&r2=1.10 |
51 |
|
52 |
Index: Ice-3.4.2.ebuild |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.4.2.ebuild,v |
55 |
retrieving revision 1.9 |
56 |
retrieving revision 1.10 |
57 |
diff -u -r1.9 -r1.10 |
58 |
--- Ice-3.4.2.ebuild 16 Nov 2012 13:40:30 -0000 1.9 |
59 |
+++ Ice-3.4.2.ebuild 30 Jul 2013 06:21:51 -0000 1.10 |
60 |
@@ -1,6 +1,6 @@ |
61 |
-# Copyright 1999-2012 Gentoo Foundation |
62 |
+# Copyright 1999-2013 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.4.2.ebuild,v 1.9 2012/11/16 13:40:30 ssuominen Exp $ |
65 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.4.2.ebuild,v 1.10 2013/07/30 06:21:51 polynomial-c Exp $ |
66 |
|
67 |
EAPI="2" |
68 |
|
69 |
@@ -25,7 +25,7 @@ |
70 |
RDEPEND=">=dev-libs/expat-2.0.1 |
71 |
>=app-arch/bzip2-1.0.5 |
72 |
>=dev-libs/openssl-0.9.8o:0 |
73 |
- >=sys-libs/db-4.8.30[cxx] |
74 |
+ <sys-libs/db-6.0[cxx] |
75 |
~dev-cpp/libmcpp-2.7.2 |
76 |
ruby? ( $(ruby_implementation_depend ruby18) ) |
77 |
mono? ( dev-lang/mono ) |
78 |
|
79 |
|
80 |
|
81 |
1.1 dev-libs/Ice/Ice-3.5.0-r1.ebuild |
82 |
|
83 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/Ice-3.5.0-r1.ebuild?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/Ice/Ice-3.5.0-r1.ebuild?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: Ice-3.5.0-r1.ebuild |
87 |
=================================================================== |
88 |
# Copyright 1999-2013 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.5.0-r1.ebuild,v 1.1 2013/07/30 06:21:51 polynomial-c Exp $ |
91 |
|
92 |
EAPI=5 |
93 |
|
94 |
PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) |
95 |
RUBY_OPTIONAL="yes" |
96 |
USE_RUBY="ruby18" |
97 |
|
98 |
inherit toolchain-funcs versionator python-r1 mono-env ruby-ng db-use |
99 |
|
100 |
DESCRIPTION="ICE middleware C++ library and generator tools" |
101 |
HOMEPAGE="http://www.zeroc.com/" |
102 |
SRC_URI="http://www.zeroc.com/download/Ice/$(get_version_component_range 1-2)/${P}.tar.gz |
103 |
doc? ( http://www.zeroc.com/download/Ice/$(get_version_component_range 1-2)/${P}.pdf )" |
104 |
LICENSE="GPL-2" |
105 |
SLOT="0" |
106 |
KEYWORDS="~amd64 ~arm ~ia64 ~x86 ~x64-macos ~x86-linux" |
107 |
IUSE="doc examples +ncurses mono python ruby test debug" |
108 |
|
109 |
RDEPEND=">=dev-libs/expat-2.0.1 |
110 |
>=app-arch/bzip2-1.0.5 |
111 |
>=dev-libs/openssl-0.9.8o:0 |
112 |
<sys-libs/db-6.0[cxx] |
113 |
~dev-cpp/libmcpp-2.7.2 |
114 |
python? ( ${PYTHON_DEPS} ) |
115 |
ruby? ( $(ruby_implementation_depend ruby18) ) |
116 |
mono? ( dev-lang/mono ) |
117 |
!dev-python/IcePy |
118 |
!dev-ruby/IceRuby" |
119 |
DEPEND="${RDEPEND} |
120 |
ncurses? ( sys-libs/ncurses sys-libs/readline ) |
121 |
test? ( ${PYTHON_DEPS} )" |
122 |
|
123 |
# Maintainer notes: |
124 |
# - yes, we have to do the trickery with the move for the python functions |
125 |
# since the build and test frameworks deduce various settings from the path |
126 |
# and they can't be tricked by a symlink. And we also need |
127 |
# SUPPORT_PYTHON_ABIS=1 otherwise we can't get pyc/pyo anymore the sane way. |
128 |
# TODO: php bindings |
129 |
# TODO: java bindings |
130 |
|
131 |
#overwrite ruby-ng.eclass default |
132 |
S="${WORKDIR}/${P}" |
133 |
|
134 |
src_unpack() { |
135 |
# prevent ruby-ng.eclass from messing with src_unpack |
136 |
default |
137 |
} |
138 |
|
139 |
src_prepare() { |
140 |
sed -i \ |
141 |
-e 's|\(install_docdir[[:space:]]*\):=|\1?=|' \ |
142 |
-e 's|\(install_configdir[[:space:]]*\):=|\1?=|' \ |
143 |
cpp/config/Make.rules || die "sed failed" |
144 |
|
145 |
sed -i \ |
146 |
-e 's|\(install_pythondir[[:space:]]*\):=|\1?=|' \ |
147 |
-e 's|\(install_rubydir[[:space:]]*\):=|\1?=|' \ |
148 |
-e 's|\(install_libdir[[:space:]]*\):=|\1?=|' \ |
149 |
{py,rb}/config/Make.rules || die "sed failed" |
150 |
|
151 |
sed -i \ |
152 |
-e 's|-O2 ||g' \ |
153 |
-e 's|-Werror ||g' \ |
154 |
cpp/config/Make.rules.Linux || die "sed failed" |
155 |
|
156 |
sed -i \ |
157 |
-e 's|install-common||' \ |
158 |
-e 's|demo||' \ |
159 |
{cpp,cs,php,py,rb}/Makefile || die "sed failed" |
160 |
|
161 |
sed -i \ |
162 |
-e 's|-f -root|-f -gacdir $(GAC_DIR) -root|' \ |
163 |
cs/config/Make.rules.cs || die "sed failed" |
164 |
|
165 |
if ! use test ; then |
166 |
sed -i \ |
167 |
-e 's|^\(SUBDIRS.*\)test|\1|' \ |
168 |
{cpp,cs,php,py,rb}/Makefile || die "sed failed" |
169 |
fi |
170 |
} |
171 |
|
172 |
src_configure() { |
173 |
MAKE_RULES="prefix=\"${ED}/usr\" |
174 |
install_docdir=\"${ED}/usr/share/doc/${PF}\" |
175 |
install_configdir=\"${ED}/usr/share/Ice-${PV}/config\" |
176 |
embedded_runpath_prefix=\"${EPREFIX}/usr\" |
177 |
LP64=yes" |
178 |
|
179 |
use ncurses && OPTIONS="${MAKE_RULES} USE_READLINE=yes" || MAKE_RULES="${MAKE_RULES} USE_READLINE=no" |
180 |
use debug && OPTIONS"${MAKE_RULES} OPTIMIZE=no" || MAKE_RULES="${MAKE_RULES} OPTIMIZE=yes" |
181 |
|
182 |
MAKE_RULES="${MAKE_RULES} DB_FLAGS=-I$(db_includedir)" |
183 |
sed -i \ |
184 |
-e "s|c++|$(tc-getCXX)|" \ |
185 |
-e "s|\(CFLAGS[[:space:]]*=\)|\1 ${CFLAGS}|" \ |
186 |
-e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \ |
187 |
-e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \ |
188 |
-e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-$(db_findver sys-libs/db)|" \ |
189 |
cpp/config/Make.rules{,.Linux} py/config/Make.rules || die "sed failed" |
190 |
|
191 |
if use python ; then |
192 |
S=${S}/py python_copy_sources |
193 |
|
194 |
# make a place for the symlink |
195 |
rm -r py/python || die |
196 |
fi |
197 |
|
198 |
if use ruby ; then |
199 |
SITERUBY="$(ruby18 -r rbconfig -e 'print Config::CONFIG["sitedir"]')" |
200 |
MAKE_RULES_RB="install_rubydir=\"${ED}/${SITERUBY}\" |
201 |
install_libdir=\"${ED}/${SITERUBY}\"" |
202 |
|
203 |
# make it use ruby18 only |
204 |
sed -i \ |
205 |
-e 's|RUBY = ruby|\018|' \ |
206 |
rb/config/Make.rules || die "sed failed" |
207 |
fi |
208 |
|
209 |
MAKE_RULES_CS="GACINSTALL=yes GAC_ROOT=\"${ED}/usr/$(get_libdir)\" GAC_DIR=${EPREFIX}/usr/$(get_libdir)" |
210 |
|
211 |
use test && python_export_best |
212 |
} |
213 |
|
214 |
src_compile() { |
215 |
if tc-is-cross-compiler ; then |
216 |
export CXX="${CHOST}-g++" |
217 |
fi |
218 |
|
219 |
emake -C cpp ${MAKE_RULES} || die "emake failed" |
220 |
|
221 |
if use doc ; then |
222 |
emake -C cpp/doc || die "building docs failed" |
223 |
fi |
224 |
|
225 |
if use python ; then |
226 |
building() { |
227 |
emake -C "${BUILD_DIR}" ${MAKE_RULES} || die "emake py-${EPYTHON} failed" |
228 |
} |
229 |
BUILD_DIR=py python_foreach_impl building |
230 |
fi |
231 |
|
232 |
if use ruby ; then |
233 |
emake -C rb ${MAKE_RULES} ${MAKE_RULES_RB} || die "emake rb failed" |
234 |
fi |
235 |
|
236 |
if use mono ; then |
237 |
emake -C cs ${MAKE_RULES} ${MAKE_RULES_CS} || die "emake cs failed" |
238 |
fi |
239 |
} |
240 |
|
241 |
src_install() { |
242 |
dodoc CHANGES README |
243 |
|
244 |
insinto /usr/share/${P} |
245 |
doins -r slice |
246 |
|
247 |
emake -C cpp ${MAKE_RULES} install || die "emake install failed" |
248 |
|
249 |
docinto cpp |
250 |
dodoc CHANGES README |
251 |
|
252 |
if use examples ; then |
253 |
insinto /usr/share/doc/${PF}/examples-cpp |
254 |
doins cpp/config/*.cfg |
255 |
doins -r cpp/demo/* |
256 |
fi |
257 |
|
258 |
if use doc ; then |
259 |
dohtml -r cpp/doc/reference/* |
260 |
dodoc "${DISTDIR}/${P}.pdf" |
261 |
fi |
262 |
|
263 |
if use python ; then |
264 |
installation() { |
265 |
mkdir -p "${D}/$(python_get_sitedir)" || die |
266 |
|
267 |
emake -C "${BUILD_DIR}" ${MAKE_RULES} \ |
268 |
install_pythondir="\"${D}/$(python_get_sitedir)\"" \ |
269 |
install_libdir="\"${D}/$(python_get_sitedir)\"" \ |
270 |
install || die "emake py-${EPYTHON} install failed" |
271 |
} |
272 |
BUILD_DIR=py python_foreach_impl installation |
273 |
|
274 |
docinto py |
275 |
dodoc py/CHANGES py/README |
276 |
|
277 |
if use examples ; then |
278 |
insinto /usr/share/doc/${PF}/examples-py |
279 |
doins -r py/demo/* |
280 |
fi |
281 |
fi |
282 |
|
283 |
if use ruby ; then |
284 |
dodir "${SITERUBY}" |
285 |
emake -C rb ${MAKE_RULES} ${MAKE_RULES_RB} install || die "emake rb install failed" |
286 |
|
287 |
docinto rb |
288 |
dodoc rb/CHANGES rb/README |
289 |
|
290 |
if use examples ; then |
291 |
insinto /usr/share/doc/${PF}/examples-rb |
292 |
doins -r rb/demo/* |
293 |
fi |
294 |
fi |
295 |
|
296 |
if use mono ; then |
297 |
emake -C cs ${MAKE_RULES} ${MAKE_RULES_CS} install || die "emake cs install failed" |
298 |
|
299 |
# TODO: anyone has an idea what those are for? |
300 |
rm "${ED}"/usr/bin/*.xml |
301 |
|
302 |
docinto cs |
303 |
dodoc cs/CHANGES cs/README |
304 |
|
305 |
if use examples ; then |
306 |
insinto /usr/share/doc/${PF}/examples-cs |
307 |
doins -r cs/demo/* |
308 |
fi |
309 |
fi |
310 |
} |
311 |
|
312 |
run_tests() { |
313 |
# Run tests through the script interface since Python test runner |
314 |
# fails to exit with non-zero code for some reason. |
315 |
|
316 |
pushd "${1}" >/dev/null || die |
317 |
./allTests.py --script | sh |
318 |
ret=${?} |
319 |
popd >/dev/null || die |
320 |
|
321 |
return ${ret} |
322 |
} |
323 |
|
324 |
src_test() { |
325 |
run_tests cpp || die "emake cpp test failed" |
326 |
|
327 |
if use python ; then |
328 |
testing() { |
329 |
# tests require that the directory is named 'py' |
330 |
ln -f -s ../"${BUILD_DIR}"/python py/python || die |
331 |
run_tests py || die "emake py-${EPYTHON} test failed" |
332 |
} |
333 |
BUILD_DIR=py python_foreach_impl testing |
334 |
fi |
335 |
|
336 |
if use ruby ; then |
337 |
run_tests rb || die "emake rb test failed" |
338 |
fi |
339 |
|
340 |
if use mono ; then |
341 |
# ewarn "Tests for C# are currently disabled." |
342 |
run_tests cs || die "emake cs test failed" |
343 |
fi |
344 |
} |