Gentoo Archives: gentoo-commits

From: Maciej Mrozowski <reavertm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: dev-db/virtuoso-server/files/, dev-db/virtuoso-odbc/, eclass/, ...
Date: Thu, 24 Nov 2011 01:00:26
Message-Id: 99d4cdedfe9b8ab4cb93c2de181ada5468ab249f.reavertm@gentoo
1 commit: 99d4cdedfe9b8ab4cb93c2de181ada5468ab249f
2 Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 24 00:59:15 2011 +0000
4 Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 24 00:59:15 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=99d4cded
7
8 [dev-db/virtuoso-*] Move 6.1.4 to tree.
9
10 ---
11 dev-db/virtuoso-odbc/virtuoso-odbc-6.1.4.ebuild | 41 ------
12 .../files/virtuoso-opensource-6.1.4-gawk4.patch | 86 ++++++++++++
13 .../virtuoso-server-6.1.4-unbundle-minizip.patch | 36 -----
14 .../virtuoso-server/virtuoso-server-6.1.4.ebuild | 85 ------------
15 eclass/virtuoso.eclass | 144 --------------------
16 5 files changed, 86 insertions(+), 306 deletions(-)
17
18 diff --git a/dev-db/virtuoso-odbc/virtuoso-odbc-6.1.4.ebuild b/dev-db/virtuoso-odbc/virtuoso-odbc-6.1.4.ebuild
19 deleted file mode 100644
20 index 9c28954..0000000
21 --- a/dev-db/virtuoso-odbc/virtuoso-odbc-6.1.4.ebuild
22 +++ /dev/null
23 @@ -1,41 +0,0 @@
24 -# Copyright 1999-2011 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-db/virtuoso-odbc/virtuoso-odbc-6.1.3.ebuild,v 1.3 2011/09/05 13:48:51 chainsaw Exp $
27 -
28 -EAPI=4
29 -
30 -inherit virtuoso
31 -
32 -DESCRIPTION="ODBC driver for OpenLink Virtuoso Open-Source Edition"
33 -
34 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
35 -IUSE=""
36 -
37 -RDEPEND="
38 - >=dev-libs/openssl-0.9.7i:0
39 -"
40 -DEPEND="${RDEPEND}"
41 -
42 -VOS_EXTRACT="
43 - libsrc/Dk
44 - libsrc/Thread
45 - libsrc/odbcsdk
46 - libsrc/util
47 - binsrc/driver
48 -"
49 -
50 -src_configure() {
51 - myconf+="
52 - --disable-static
53 - --without-iodbc
54 - "
55 -
56 - virtuoso_src_configure
57 -}
58 -
59 -src_install() {
60 - virtuoso_src_install
61 -
62 - # Remove libtool files
63 - find "${ED}" -name '*.la' -delete
64 -}
65
66 diff --git a/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch b/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch
67 new file mode 100644
68 index 0000000..6291907
69 --- /dev/null
70 +++ b/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch
71 @@ -0,0 +1,86 @@
72 +# HG changeset patch
73 +# Parent 3c7b74d47ca39768baf9d91bba40141bf111bc21
74 +# User Nico R. <n-roeser@×××.net>
75 +# Date 1321439581 -3600
76 +
77 +Fix problems with GNU awk 4.0.
78 +Original patch taken from upstream CVS, and mechanism applied to all code parts
79 +where ‘gsub’ is used.
80 +
81 +
82 +diff --git a/binsrc/cached_resources/res_to_c.awk b/binsrc/cached_resources/res_to_c.awk
83 +--- a/binsrc/cached_resources/res_to_c.awk
84 ++++ b/binsrc/cached_resources/res_to_c.awk
85 +@@ -30,7 +30,14 @@
86 + }
87 + {
88 + fun = $0
89 +- gsub ( /\\/, "\\\\", fun)
90 ++
91 ++ q = "\\\\"
92 ++ if (PROCINFO["version"] ~ /^4/)
93 ++ gsub ( q, q q, fun)
94 ++ else
95 ++ gsub ( q, q, fun)
96 ++ #WAS: gsub ( /\\/, "\\\\", fun)
97 ++
98 + gsub ( /"/, "\\\"", fun)
99 + gsub ( /\$/, "\\044", fun)
100 + gsub ( /.*/, "\"&\\n\",", fun)
101 +diff --git a/binsrc/hosting/perl/pl_to_c.awk b/binsrc/hosting/perl/pl_to_c.awk
102 +--- a/binsrc/hosting/perl/pl_to_c.awk
103 ++++ b/binsrc/hosting/perl/pl_to_c.awk
104 +@@ -42,7 +42,14 @@
105 + }
106 +
107 + x = $0
108 +- gsub (/\\/, "\\\\", x)
109 ++
110 ++ q = "\\\\"
111 ++ if (PROCINFO["version"] ~ /^4/)
112 ++ gsub ( q, q q, x)
113 ++ else
114 ++ gsub ( q, q, x)
115 ++ #WAS: gsub (/\\/, "\\\\", x)
116 ++
117 + gsub (/\"/, "\\\"", x)
118 + print "\"" x "\\n\""
119 + }
120 +diff --git a/binsrc/hosting/python/py_to_c.awk b/binsrc/hosting/python/py_to_c.awk
121 +--- a/binsrc/hosting/python/py_to_c.awk
122 ++++ b/binsrc/hosting/python/py_to_c.awk
123 +@@ -48,7 +48,14 @@
124 + }
125 +
126 + x = $0
127 +- gsub (/\\/, "\\\\", x)
128 ++
129 ++ q = "\\\\"
130 ++ if (PROCINFO["version"] ~ /^4/)
131 ++ gsub ( q, q q, x)
132 ++ else
133 ++ gsub ( q, q, x)
134 ++ #WAS: gsub (/\\/, "\\\\", x)
135 ++
136 + gsub (/\"/, "\\\"", x)
137 + print "\"" x "\\n\""
138 + }
139 +diff --git a/binsrc/ws/wsrm/xsd2sql.awk b/binsrc/ws/wsrm/xsd2sql.awk
140 +--- a/binsrc/ws/wsrm/xsd2sql.awk
141 ++++ b/binsrc/ws/wsrm/xsd2sql.awk
142 +@@ -54,7 +54,14 @@
143 + print " ses := string_output ();"
144 + }
145 + str = $0
146 +- gsub ( /\\/, "\\\\", str)
147 ++
148 ++ q = "\\\\"
149 ++ if (PROCINFO["version"] ~ /^4/)
150 ++ gsub ( q, q q, str)
151 ++ else
152 ++ gsub ( q, q, str)
153 ++ #WAS: gsub ( /\\/, "\\\\", str)
154 ++
155 + gsub ( /'/, "\\'", str)
156 +
157 + #
158
159 diff --git a/dev-db/virtuoso-server/files/virtuoso-server-6.1.4-unbundle-minizip.patch b/dev-db/virtuoso-server/files/virtuoso-server-6.1.4-unbundle-minizip.patch
160 deleted file mode 100644
161 index 143c359..0000000
162 --- a/dev-db/virtuoso-server/files/virtuoso-server-6.1.4-unbundle-minizip.patch
163 +++ /dev/null
164 @@ -1,36 +0,0 @@
165 -diff -urN virtuoso-opensource-6.1.4.orig/configure.in virtuoso-opensource-6.1.4/configure.in
166 ---- virtuoso-opensource-6.1.4.orig/configure.in 2011-11-20 03:38:18.000000000 +0400
167 -+++ virtuoso-opensource-6.1.4/configure.in 2011-11-20 03:42:44.000000000 +0400
168 -@@ -1550,14 +1550,15 @@
169 - then
170 - AC_CHECK_HEADER(zlib.h)
171 - AC_CHECK_LIB(z, main, [with_zlib=yes], [with_zlib=internal])
172 -+ AC_CHECK_LIB(minizip, main, [with_zlib=yes], [with_zlib=internal])
173 - fi
174 - if test "x$with_zlib" = "xinternal"
175 - then
176 - ZLIB_INC='-I$(top_srcdir)/libsrc/zlib'
177 - ZLIB_LIB='$(top_builddir)/libsrc/zlib/libz.la'
178 - else
179 -- ZLIB_INC=""
180 -- ZLIB_LIB="-lz"
181 -+ ZLIB_INC=`pkg-config --cflags zlib minizip`
182 -+ ZLIB_LIB=`pkg-config --libs zlib minizip`
183 - fi
184 - AC_SUBST(ZLIB_INC)
185 - AC_SUBST(ZLIB_LIB)
186 -diff -urN virtuoso-opensource-6.1.4.orig/libsrc/Wi/bif_file.c virtuoso-opensource-6.1.4/libsrc/Wi/bif_file.c
187 ---- virtuoso-opensource-6.1.4.orig/libsrc/Wi/bif_file.c 2011-10-26 17:54:19.000000000 +0400
188 -+++ virtuoso-opensource-6.1.4/libsrc/Wi/bif_file.c 2011-11-20 03:44:36.000000000 +0400
189 -@@ -6167,10 +6167,7 @@
190 - #define fopen64 fopen
191 - #endif
192 -
193 --#include "zlib/contrib/minizip/unzip.h"
194 --#include "zlib/contrib/minizip/ioapi.h"
195 --#include "zlib/contrib/minizip/ioapi.c"
196 --#include "zlib/contrib/minizip/unzip.c"
197 -+#include "unzip.h"
198 -
199 - static caddr_t
200 - bif_unzip_file (caddr_t * qst, caddr_t * err_ret, state_slot_t ** args)
201
202 diff --git a/dev-db/virtuoso-server/virtuoso-server-6.1.4.ebuild b/dev-db/virtuoso-server/virtuoso-server-6.1.4.ebuild
203 deleted file mode 100644
204 index d38a43e..0000000
205 --- a/dev-db/virtuoso-server/virtuoso-server-6.1.4.ebuild
206 +++ /dev/null
207 @@ -1,85 +0,0 @@
208 -# Copyright 1999-2011 Gentoo Foundation
209 -# Distributed under the terms of the GNU General Public License v2
210 -# $Header: /var/cvsroot/gentoo-x86/dev-db/virtuoso-server/virtuoso-server-6.1.3-r1.ebuild,v 1.3 2011/09/21 22:25:23 reavertm Exp $
211 -
212 -EAPI=4
213 -
214 -inherit virtuoso
215 -
216 -DESCRIPTION="Server binaries for Virtuoso, high-performance object-relational SQL database"
217 -
218 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
219 -IUSE="kerberos ldap readline"
220 -
221 -# Bug 305077
222 -#RESTRICT="test"
223 -
224 -# zeroconf support looks like broken - disabling - last checked around 5.0.12
225 -# mono support fetches mono source and compiles it manually - disabling for now
226 -# mono? ( dev-lang/mono )
227 -COMMON_DEPEND="
228 - dev-libs/libxml2:2
229 - >=dev-libs/openssl-0.9.7i:0
230 - >=sys-libs/zlib-1.2.5.1-r2:0[minizip]
231 - kerberos? ( app-crypt/mit-krb5 )
232 - ldap? ( net-nds/openldap )
233 - readline? ( sys-libs/readline:0 )
234 -"
235 -DEPEND="${COMMON_DEPEND}
236 - >=sys-devel/bison-2.3
237 - >=sys-devel/flex-2.5.33
238 -"
239 -RDEPEND="${COMMON_DEPEND}
240 - >=dev-db/virtuoso-odbc-${PV}:${SLOT}
241 -"
242 -
243 -VOS_EXTRACT="
244 - libsrc/Dk
245 - libsrc/Thread
246 - libsrc/Tidy
247 - libsrc/Wi
248 - libsrc/Xml.new
249 - libsrc/langfunc
250 - libsrc/odbcsdk
251 - libsrc/plugin
252 - libsrc/util
253 - binsrc/virtuoso
254 - binsrc/tests
255 -"
256 -
257 -DOCS=(AUTHORS ChangeLog CREDITS INSTALL NEWS README)
258 -
259 -PATCHES=(
260 - "${FILESDIR}/${P}-unbundle-minizip.patch"
261 - )
262 -
263 -src_prepare() {
264 - sed -e '/^lib_LTLIBRARIES\s*=.*/s/lib_/noinst_/' -i binsrc/virtuoso/Makefile.am \
265 - || die "failed to disable installation of static lib"
266 -
267 - virtuoso_src_prepare
268 -}
269 -
270 -src_configure() {
271 - myconf+="
272 - $(use_enable kerberos krb)
273 - $(use_enable ldap openldap)
274 - $(use_with readline)
275 - --disable-static
276 - --disable-hslookup
277 - --disable-rendezvous
278 - --without-iodbc
279 - "
280 -
281 - virtuoso_src_configure
282 -}
283 -
284 -src_install() {
285 - virtuoso_src_install
286 -
287 - # Rename isql executables (conflicts with unixODBC)
288 - mv "${ED}/usr/bin/isql" "${ED}/usr/bin/isql-v" || die
289 - mv "${ED}/usr/bin/isqlw" "${ED}/usr/bin/isqlw-v" || die
290 -
291 - keepdir /var/lib/virtuoso/db
292 -}
293
294 diff --git a/eclass/virtuoso.eclass b/eclass/virtuoso.eclass
295 deleted file mode 100644
296 index b4c7677..0000000
297 --- a/eclass/virtuoso.eclass
298 +++ /dev/null
299 @@ -1,144 +0,0 @@
300 -# Copyright 1999-2010 Gentoo Foundation
301 -# Distributed under the terms of the GNU General Public License v2
302 -# $Header: /var/cvsroot/gentoo-x86/eclass/virtuoso.eclass,v 1.11 2011/07/07 23:00:06 reavertm Exp $
303 -
304 -# @ECLASS: virtuoso.eclass
305 -# @MAINTAINER:
306 -# Maciej Mrozowski <reavertm@g.o>
307 -#
308 -# @BLURB: Provides splitting functionality for Virtuoso
309 -# @DESCRIPTION:
310 -# This eclass provides common code for splitting Virtuoso OpenSource database
311 -
312 -case ${EAPI:-0} in
313 - 2|3|4) : ;;
314 - *) die "EAPI=${EAPI} is not supported" ;;
315 -esac
316 -
317 -inherit base autotools multilib
318 -
319 -MY_P="virtuoso-opensource-${PV}"
320 -
321 -case ${PV} in
322 - *9999*)
323 - ECVS_SERVER="virtuoso.cvs.sourceforge.net:/cvsroot/virtuoso"
324 - ECVS_PROJECT='virtuoso'
325 - SRC_URI=""
326 - inherit cvs
327 - ;;
328 - *)
329 - # Use this variable to determine distribution method (live or tarball)
330 - TARBALL="${MY_P}.tar.gz"
331 - SRC_URI="mirror://sourceforge/virtuoso/${TARBALL} mirror://gentoo/VOS-genpatches-${PV}.tar.bz2"
332 - ;;
333 -esac
334 -
335 -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install
336 -
337 -# Set some defaults
338 -HOMEPAGE='http://virtuoso.openlinksw.com/wiki/main/Main/'
339 -LICENSE='GPL-2'
340 -SLOT='0'
341 -
342 -# Restrict incompatible gawk, bug 374315
343 -DEPEND='
344 - >=sys-devel/libtool-2.2.6a
345 -'
346 -RDEPEND=''
347 -
348 -S="${WORKDIR}/${MY_P}"
349 -
350 -# @FUNCTION: virtuoso_src_prepare
351 -# @DESCRIPTION:
352 -# 1. Applies common release patches
353 -# 2. Applies package-specific patches (from ${FILESDIR}/, PATCHES can be used)
354 -# 3. Applies user patches from /etc/portage/patches/${CATEGORY}/${PN}/
355 -# 4. Modifies makefiles for split build. Uses VOS_EXTRACT
356 -# 5. eautoreconf
357 -virtuoso_src_prepare() {
358 - debug-print-function ${FUNCNAME} "$@"
359 -
360 - EPATCH_SUFFIX='patch' EPATCH_FORCE='yes' epatch
361 - base_src_prepare
362 -
363 - # @ECLASS-VARIABLE: VOS_EXTRACT
364 - # @DESCRIPTION:
365 - # Lists any subdirectories that are required to be extracted
366 - # and enabled in Makefile.am's for current package.
367 - if [[ -n ${VOS_EXTRACT} ]]; then
368 - # Comment out everything
369 - find . -name Makefile.am -exec \
370 - sed -e '/SUBDIRS\s*=/s/^/# DISABLED /g' -i {} + \
371 - || die 'failed to disable subdirs'
372 -
373 - # Uncomment specified
374 - local path
375 - for path in ${VOS_EXTRACT}; do
376 - if [[ -d "${path}" ]]; then
377 - # Uncomment leaf
378 - if [[ -f "${path}"/Makefile.am ]]; then
379 - sed -e '/^# DISABLED \s*SUBDIRS\s*=/s/# DISABLED //g' \
380 - -i "${path}"/Makefile.am || die "failed to uncomment leaf in ${path}/Makefile.am"
381 - fi
382 - # Process remaining path elements
383 - while true; do
384 - local subdir=`basename "${path}"`
385 - path=`dirname "${path}"`
386 - if [[ -f "${path}"/Makefile.am ]]; then
387 - # Uncomment if necessary
388 - sed -e '/^# DISABLED \s*SUBDIRS\s*=/s/.*/SUBDIRS =/g' \
389 - -i "${path}"/Makefile.am
390 - # Append subdirs if not there already
391 - if [[ -z `sed -ne "/SUBDIRS\s*=.*${subdir}\b/p" "${path}"/Makefile.am` ]]; then
392 - sed -e "/^SUBDIRS\s*=/s|$| ${subdir}|" \
393 - -i "${path}"/Makefile.am || die "failed to append ${subdir}"
394 - fi
395 - fi
396 - [[ "${path}" = . ]] && break
397 - done
398 - fi
399 - done
400 - fi
401 -
402 - eautoreconf
403 -}
404 -
405 -# @FUNCTION: virtuoso_src_configure
406 -# @DESCRIPTION:
407 -# Runs ./configure with common and user options specified via myconf variable
408 -virtuoso_src_configure() {
409 - debug-print-function ${FUNCNAME} "$@"
410 -
411 - # Override some variables to make tests work
412 - if [[ ${PN} != virtuoso-server ]]; then
413 - [[ ${EAPI} == 2 ]] && ! use prefix && EPREFIX=
414 - export ISQL="${EPREFIX}"/usr/bin/isql-v
415 - export SERVER="${EPREFIX}"/usr/bin/virtuoso-t
416 - fi
417 -
418 - econf \
419 - --with-layout=gentoo \
420 - --localstatedir="${EPREFIX}"/var \
421 - --enable-shared \
422 - --with-pthreads \
423 - --without-internal-zlib \
424 - ${myconf}
425 -}
426 -
427 -# @FUNCTION: virtuoso_src_compile
428 -# @DESCRIPTION:
429 -# Runs make for specified subdirs
430 -virtuoso_src_compile() {
431 - debug-print-function ${FUNCNAME} "$@"
432 -
433 - base_src_compile
434 -}
435 -
436 -# @FUNCTION: virtuoso_src_install
437 -# @DESCRIPTION:
438 -# Default src_install
439 -virtuoso_src_install() {
440 - debug-print-function ${FUNCNAME} "$@"
441 -
442 - base_src_install
443 -}