bring back the old verison ffor zarafa
Package-Manager: portage-2.2.0_alpha166 RepoMan-Options: --force
This commit is contained in:
parent
a667c9830d
commit
fe18784afe
10
dev-cpp/clucene/ChangeLog
Normal file
10
dev-cpp/clucene/ChangeLog
Normal file
@ -0,0 +1,10 @@
|
||||
# ChangeLog for dev-cpp/clucene
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
*clucene-0.9.21b-r1 (23 Apr 2013)
|
||||
|
||||
23 Apr 2013; Mario Fetka <mario.fetka@gmail.com> +clucene-0.9.21b-r1.ebuild,
|
||||
+files/clucene-0.9.21b-doxygen.patch, +files/clucene-0.9.21b-gcc44.patch,
|
||||
+files/clucene-0.9.21b-zarafa.patch, +metadata.xml:
|
||||
bring back the old verison ffor zarafa
|
7
dev-cpp/clucene/Manifest
Normal file
7
dev-cpp/clucene/Manifest
Normal file
@ -0,0 +1,7 @@
|
||||
AUX clucene-0.9.21b-doxygen.patch 320 SHA256 b255bad44fb80d0bb2d371751252954b3ef38eddebbb2c56df07202081774914 SHA512 c3f93f97adcd7e6724b4b6b409acc83f4253aa23919afb082a6b1c3d1673a38b5e02c17b158d7c381196f680a7499304d1e1f43e5c2b476a654ffed04441d71f WHIRLPOOL acade7d165743599fd18f8f433408d3e19fdff8de680b1a83be6d2d2f6fe2aabbeb58bee71bc2aefb8fbfb17599f2e005bab0446d99a24b42f88faba14139033
|
||||
AUX clucene-0.9.21b-gcc44.patch 218 SHA256 2ab6c9350ae2ddc56e0c3c956c687f22b0a6f5adc438a0e512bca18efc502d2f SHA512 3a7e02fd6ab6225d14a3c34005f55776126cd46d1b6e229c10de338c0c471bdea968c3e336463da66ec97c014d334d8204c496969f0ef52bc9e2e67ab3a9c9da WHIRLPOOL 658de064aa942a64ae83717f3788aad13ccd0bc7a5fc1a136cf802afdcca30d160d141fa3010741165a86e1199bd4769ef4fca79df3903c9e8372e78afd69d9a
|
||||
AUX clucene-0.9.21b-zarafa.patch 4580 SHA256 8c4bb38a6de507e64fde29e1ab7f26d764a1b863d1053171c9886910de514281 SHA512 c00391ca0c2e86e18bbeb3f27a0f37934c453eb9ef9f15ae66980d0a9059de9960e89b1604fe033002d69ec649d62c66329bcc290376fc319ababc7ac4a671aa WHIRLPOOL 2f88a3431fcd2a387de7d565ea145e871b6a2e4d84f408bbc27dba43f56a75714e00b304c0e9e3d58ee296145cc3382c98b82773ef84638f2f18d76c29dc7092
|
||||
DIST clucene-core-0.9.21b.tar.bz2 1539103 SHA256 202ee45af747f18642ae0a088d7c4553521714a511a1a9ec99b8144cf9928317 SHA512 706e8ad1fc944ffe12f0b0057169bca63131ae2263a3e46dd9750bfe2e7401870dac8dc494e0159f9302afb285473d89b5bd62f9c2339a1a1954e4cb98391ee3 WHIRLPOOL df92ebd7692d81bec4a50751c4919a2aa136d3d8de6e117aca08500c519c21a52907ee089d7ee314b85303550002ec199d547037fa6efce2f97f9b12cbd22c08
|
||||
EBUILD clucene-0.9.21b-r1.ebuild 1444 SHA256 9620bce61d4d9fc4bfee450c2a478d97eb1e3672948f7ad29ed53fb69484f6a1 SHA512 7165ea8e2589fadaf873bed890205bf66829c02171e047fe34709b83358af111fb2d77bf5dd87df5082bef0057443b00de179351262dd55156103162b41bf98c WHIRLPOOL e67eb7fa62f70d4aca8b582520c461e84b14451c299a59d9f62c811320ebe8486508aa6fa783901e82dee4d33fbfa50ac85c21e78a945e1db6ddc34cbd573720
|
||||
MISC ChangeLog 401 SHA256 a7b0e5a3cb797cbc221542bec5caafd111529bda6eb3a30f32af70d0bc4ef63a SHA512 fd3f4f6f9d046739bf8ba7f738482df34e80e25b51224f79ce012f328b52dcab488ae3ad219ca1d44b58f688d952dd0244800cc11a4a36345a3bcbe3ec4f7744 WHIRLPOOL 8fb1eff53a708c253dd6ae46525fb9bf97249d183341e9b24713f92701b22e67f7fc1a2d1ce5a6720d345a1579785ba36aff32a5f0a99b2d17e789e181d1f1d5
|
||||
MISC metadata.xml 157 SHA256 01f6fa4357ce08e8b0f7900a51fa78c7f060fefc7c7da98acaec1e283dd59892 SHA512 657d6b0a31ceb7ac10bedfd5cbd634d4ff47938bd2f321203f0233e53686f7e0fd460e81f82793804895c7e97cfa472c1ca44b93314574262ee8cc5745a3efd0 WHIRLPOOL 785331909f1834cdd5d797ad484ea0e35c3e44c79a8a7517a6fb5de926acd181abd57910c8d960fb2e11ea38ddea336bca309af16fcc2df68fe4b602bca120b3
|
62
dev-cpp/clucene/clucene-0.9.21b-r1.ebuild
Normal file
62
dev-cpp/clucene/clucene-0.9.21b-r1.ebuild
Normal file
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/clucene/Attic/clucene-0.9.21b-r1.ebuild,v 1.11 2012/10/01 11:41:11 johu dead $
|
||||
|
||||
EAPI=3
|
||||
|
||||
MY_P=${PN}-core-${PV}
|
||||
inherit base autotools
|
||||
|
||||
DESCRIPTION="High-performance, full-featured text search engine based off of lucene in C++"
|
||||
HOMEPAGE="http://clucene.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/clucene/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
|
||||
SLOT="1"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="debug doc static-libs threads"
|
||||
|
||||
DEPEND="doc? ( >=app-doc/doxygen-1.4.2 )"
|
||||
RDEPEND=""
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gcc44.patch"
|
||||
"${FILESDIR}/${P}-doxygen.patch"
|
||||
"${FILESDIR}/${P}-zarafa.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
|
||||
# fix wrong aclocal_amflags
|
||||
sed -i \
|
||||
-e '/ACLOCAL_AMFLAGS/d' \
|
||||
Makefile.am || die
|
||||
|
||||
AT_M4DIR='-I m4' eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable debug cnddebug) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable threads multithreading)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
base_src_compile
|
||||
if use doc ; then
|
||||
emake doxygen || die "making docs failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
base_src_install
|
||||
use doc && { dohtml "${S}"/doc/html/* ; }
|
||||
|
||||
find "${D}" -type f -name '*.la' -exec rm -f {} + \
|
||||
|| die "la removal failed"
|
||||
}
|
11
dev-cpp/clucene/files/clucene-0.9.21b-doxygen.patch
Normal file
11
dev-cpp/clucene/files/clucene-0.9.21b-doxygen.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.am.old 2010-11-25 14:47:59.000000000 -0800
|
||||
+++ Makefile.am 2010-11-25 14:48:11.000000000 -0800
|
||||
@@ -48,7 +48,7 @@
|
||||
ncftpput -v upload.sourceforge.net /incoming @PACKAGE@-@VERSION@.tar.gz
|
||||
|
||||
doxygen:
|
||||
- rm -fdr ./doc/html
|
||||
+ rm -fr ./doc/html
|
||||
doxygen Doxyfile
|
||||
cp ./doc/clucene.jpg ./doc/html/clucene.jpg
|
||||
|
10
dev-cpp/clucene/files/clucene-0.9.21b-gcc44.patch
Normal file
10
dev-cpp/clucene/files/clucene-0.9.21b-gcc44.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/CLucene/util/bufferedstream.h~
|
||||
+++ src/CLucene/util/bufferedstream.h
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "streambase.h"
|
||||
#include "inputstreambuffer.h"
|
||||
#include <cassert>
|
||||
+#include <stdio.h>
|
||||
|
||||
namespace jstreams {
|
||||
|
128
dev-cpp/clucene/files/clucene-0.9.21b-zarafa.patch
Normal file
128
dev-cpp/clucene/files/clucene-0.9.21b-zarafa.patch
Normal file
@ -0,0 +1,128 @@
|
||||
diff -urb clucene-core-0.9.21/configure.ac clucene-core-0.9.21b/configure.ac
|
||||
--- clucene-core-0.9.21/configure.ac 2008-09-21 08:19:46.000000000 +0200
|
||||
+++ clucene-core-0.9.21b/configure.ac 2008-10-23 20:17:57.000000000 +0200
|
||||
@@ -6,14 +6,14 @@
|
||||
AC_INIT(src/CLucene/StdHeader.h)
|
||||
|
||||
dnl the clucene-core package version
|
||||
-VERSION=0.9.21
|
||||
+VERSION=0.9.21b
|
||||
|
||||
dnl increment if interfaces have been added, removed or changed
|
||||
clLIB_current=3
|
||||
|
||||
dnl increment if source code has changed
|
||||
dnl - set to zero if current is incremented
|
||||
-clLIB_revision=0
|
||||
+clLIB_revision=1
|
||||
|
||||
dnl increment if interfaces have been added
|
||||
dnl - set to zero if interfaces have been removed or changed
|
||||
diff -urb clucene-core-0.9.21/src/CLucene/queryParser/MultiFieldQueryParser.cpp clucene-core-0.9.21b/src/CLucene/queryParser/MultiFieldQueryParser.cpp
|
||||
--- clucene-core-0.9.21/src/CLucene/queryParser/MultiFieldQueryParser.cpp 2008-08-22 16:40:15.000000000 +0200
|
||||
+++ clucene-core-0.9.21b/src/CLucene/queryParser/MultiFieldQueryParser.cpp 2008-10-23 19:44:35.000000000 +0200
|
||||
@@ -36,7 +36,10 @@
|
||||
int32_t i = 0;
|
||||
while ( fields[i] != NULL ){
|
||||
Query* q = QueryParser::parse(query, fields[i], analyzer);
|
||||
+ if (q && (q->getQueryName()!=_T("BooleanQuery") || ((BooleanQuery*)q)->getClauseCount() > 0)) {
|
||||
bQuery->add(q, true, false, false);
|
||||
+ } else
|
||||
+ _CLDELETE(q);
|
||||
|
||||
i++;
|
||||
}
|
||||
@@ -51,6 +54,7 @@
|
||||
while ( fields[i] != NULL )
|
||||
{
|
||||
Query* q = QueryParser::parse(query, fields[i], analyzer);
|
||||
+ if (q && (q->getQueryName()!=_T("BooleanQuery") || ((BooleanQuery*)q)->getClauseCount() > 0)) {
|
||||
uint8_t flag = flags[i];
|
||||
switch (flag)
|
||||
{
|
||||
@@ -64,6 +68,9 @@
|
||||
bQuery->add(q, true, false, false);
|
||||
break;
|
||||
}
|
||||
+ } else {
|
||||
+ _CLDELETE(q);
|
||||
+ }
|
||||
|
||||
i++;
|
||||
}
|
||||
diff -urb clucene-core-0.9.21/src/CLucene/store/FSDirectory.cpp clucene-core-0.9.21b/src/CLucene/store/FSDirectory.cpp
|
||||
--- clucene-core-0.9.21/src/CLucene/store/FSDirectory.cpp 2008-08-22 16:40:17.000000000 +0200
|
||||
+++ clucene-core-0.9.21b/src/CLucene/store/FSDirectory.cpp 2008-10-23 20:01:52.000000000 +0200
|
||||
@@ -65,7 +65,7 @@
|
||||
if ( other.handle == NULL )
|
||||
_CLTHROWA(CL_ERR_NullPointer, "other handle is null");
|
||||
|
||||
- SCOPED_LOCK_MUTEX(other.handle->THIS_LOCK)
|
||||
+ SCOPED_LOCK_MUTEX(*other.handle->THIS_LOCK)
|
||||
handle = _CL_POINTER(other.handle);
|
||||
_pos = other.handle->_fpos; //note where we are currently...
|
||||
}
|
||||
@@ -75,6 +75,10 @@
|
||||
_length = 0;
|
||||
_fpos = 0;
|
||||
path[0]=0;
|
||||
+
|
||||
+#ifdef _LUCENE_THREADMUTEX
|
||||
+ THIS_LOCK = new _LUCENE_THREADMUTEX;
|
||||
+#endif
|
||||
}
|
||||
FSDirectory::FSIndexInput::SharedHandle::~SharedHandle() throw(CLuceneError&){
|
||||
if ( fhandle >= 0 ){
|
||||
@@ -100,7 +104,31 @@
|
||||
}
|
||||
void FSDirectory::FSIndexInput::close() {
|
||||
BufferedIndexInput::close();
|
||||
+#ifdef _LUCENE_THREADMUTEX
|
||||
+ if ( handle != NULL ){
|
||||
+ //here we have a bit of a problem... we need to lock the handle to ensure that we can
|
||||
+ //safely delete the handle... but if we delete the handle, then the scoped unlock,
|
||||
+ //won't be able to unlock the mutex...
|
||||
+
|
||||
+ //take a reference of the lock object...
|
||||
+ _LUCENE_THREADMUTEX* mutex = handle->THIS_LOCK;
|
||||
+ //lock the mutex
|
||||
+ mutex->lock();
|
||||
+
|
||||
+ //determine if we are about to delete the handle...
|
||||
+ bool dounlock = ( handle->__cl_refcount > 1 );
|
||||
+ //decdelete (deletes if refcount is down to 0
|
||||
_CLDECDELETE(handle);
|
||||
+
|
||||
+ if ( dounlock ){
|
||||
+ mutex->unlock();
|
||||
+ }else{
|
||||
+ delete mutex;
|
||||
+ }
|
||||
+ }
|
||||
+#else
|
||||
+ _CLDECDELETE(handle);
|
||||
+#endif
|
||||
}
|
||||
|
||||
void FSDirectory::FSIndexInput::seekInternal(const int64_t position) {
|
||||
@@ -110,7 +138,7 @@
|
||||
|
||||
/** IndexInput methods */
|
||||
void FSDirectory::FSIndexInput::readInternal(uint8_t* b, const int32_t len) {
|
||||
- SCOPED_LOCK_MUTEX(handle->THIS_LOCK)
|
||||
+ SCOPED_LOCK_MUTEX(*handle->THIS_LOCK)
|
||||
CND_PRECONDITION(handle!=NULL,"shared file handle has closed");
|
||||
CND_PRECONDITION(handle->fhandle>=0,"file is not open");
|
||||
|
||||
diff -urb clucene-core-0.9.21/src/CLucene/store/FSDirectory.h clucene-core-0.9.21b/src/CLucene/store/FSDirectory.h
|
||||
--- clucene-core-0.9.21/src/CLucene/store/FSDirectory.h 2008-08-22 16:40:17.000000000 +0200
|
||||
+++ clucene-core-0.9.21b/src/CLucene/store/FSDirectory.h 2008-10-23 20:00:43.000000000 +0200
|
||||
@@ -86,7 +86,7 @@
|
||||
int32_t fhandle;
|
||||
int64_t _length;
|
||||
int64_t _fpos;
|
||||
- DEFINE_MUTEX(THIS_LOCK)
|
||||
+ DEFINE_MUTEX(*THIS_LOCK)
|
||||
char path[CL_MAX_DIR]; //todo: this is only used for cloning, better to get information from the fhandle
|
||||
SharedHandle();
|
||||
~SharedHandle() throw(CLuceneError&);
|
5
dev-cpp/clucene/metadata.xml
Normal file
5
dev-cpp/clucene/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>kde</herd>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user