the Fink project is an effort to port
popular Unix programs to Mac OS X
Info3: <<
Package: strigi
Version: 0.7.2
Revision: 4
Description: Desktop Search
License: LGPL
Maintainer: Benjamin Reed
Depends: <<
%N-shlibs (= %v-%r),
dbus (>= 1.2.24-1)
<<
BuildDepends: <<
bzip2-dev,
clucene-core (>= 0.9.20-1),
cmake (>= 2.8.8-1),
dbus1.3-dev (>= 1.2.24-1),
fink (>= 0.30.0-1),
libexiv2-0.19,
libiconv-dev,
libxml2 (>= 2.6.32-1),
pkgconfig (>= 0.23-1)
<<
GCC: 4.0
Source: http://www.vandenoever.info/software/strigi/strigi-%v.tar.bz2
Source-MD5: ca09ba176cf3ffe9afce4d92f38f9a85
SourceDirectory: strigi-%v
PatchFile: strigi.patch
PatchFile-MD5: 6187048e827f6335eeabe9ae0c095e07
#UseMaxBuildJobs: false
CompileScript: <<
#!/bin/sh -ev
export CMAKE_LIBRARY_PATH="%p/lib" CMAKE_INCLUDE_PATH="%p/include"
mkdir -p build
pushd build
# sqlite and hyperestraier are both busted
cmake -DENABLE_QT4:BOOL=OFF -DENABLE_FAM:BOOL=OFF -DENABLE_SQLITE:BOOL=OFF -DENABLE_HYPERESTRAIER:BOOL=OFF -DCMAKE_INSTALL_PREFIX="%p" -D__STRIGI_HAVE_GCC_VISIBILITY:BOOL=OFF ..
make
popd
<<
InstallScript: <<
#!/bin/sh -ev
pushd build
make -j1 install/fast DESTDIR="%d"
popd
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for Strigi
Depends: <<
bzip2-shlibs,
clucene-core-shlibs (>= 0.9.20-1),
libexiv2-0.19-shlibs,
libiconv,
libxml2-shlibs (>= 2.6.32-1)
<<
DocFiles: COPYING
Files: <<
lib/libsearchclient.0*.dylib
lib/libstreamanalyzer.0*.dylib
lib/libstreams.0*.dylib
lib/libstrigihtmlgui.0*.dylib
<<
Shlibs: <<
%p/lib/libsearchclient.0.dylib 0.0.0 strigi-shlibs (>= 0.5.7-1)
%p/lib/libstreamanalyzer.0.dylib 0.0.0 strigi-shlibs (>= 0.5.5-1)
%p/lib/libstreams.0.dylib 0.0.0 strigi-shlibs (>= 0.5.5-1)
%p/lib/libstrigihtmlgui.0.dylib 0.0.0 strigi-shlibs (>= 0.5.5-1)
<<
<<
SplitOff2: <<
Package: %N-dev
Description: Development headers and libraries for Strigi
Depends: %N (= %v-%r)
Replaces: %N
BuildDependsOnly: true
DocFiles: COPYING
Files: <<
include
lib/pkgconfig
lib/*.dylib
lib/strigi/StrigiConfig.cmake
<<
<<
Homepage: http://www.vandenoever.info/software/strigi/
DescDetail: <<
Strigi is a small daemon that can index information. Features:
* Very fast crawling.
* Very small memory footprint.
* No hammering of the system.
* Pluggable backend.
* Communication between daemon and search program over an
abstract interface, this is currently a simple socket but
implementation of dbus is a possibility. There's a small
perl program in the code as an example of how to query.
This is so easy that any KDE app could implement this.
* Simple interface for implementing plugins for extracting
information.
* Calculation of sha1 for every file crawled (allows fast
finding of duplicates)
<<
DescPort: <<
cmake >= 2.8.8 no longer sets CMAKE_HAVE_PTHREAD_CREATE which is(was?) an internal variable. CMAKE_USE_PTHREADS_INIT is a more reliable source for finding if pthreads are available or not.
http://osdir.com/ml/kde-commits/2011-04/msg04153.html
<<
<<
diff -Nurd strigi-0.7.2/src/daemon/dbus/dbuscpp/dbusmessagereader.cpp strigi-0.7.2-new/src/daemon/dbus/dbuscpp/dbusmessagereader.cpp
--- strigi-0.7.2/src/daemon/dbus/dbuscpp/dbusmessagereader.cpp 2010-02-03 14:03:07.000000000 -0500
+++ strigi-0.7.2-new/src/daemon/dbus/dbuscpp/dbusmessagereader.cpp 2010-02-16 09:40:50.000000000 -0500
@@ -52,7 +52,7 @@
return *this;
}
DBusMessageReader&
-DBusMessageReader::operator>>(dbus_uint64_t& s) {
+DBusMessageReader::operator>>(STRIGI_UINT64_TYPE& s) {
if (!isOk()) return *this;
if (DBUS_TYPE_UINT64 != dbus_message_iter_get_arg_type(&it)) {
close();
@@ -63,7 +63,7 @@
return *this;
}
DBusMessageReader&
-DBusMessageReader::operator>>(dbus_int64_t& s) {
+DBusMessageReader::operator>>(STRIGI_INT64_TYPE& s) {
if (!isOk()) return *this;
if (DBUS_TYPE_INT64 != dbus_message_iter_get_arg_type(&it)) {
close();
diff -Nurd strigi-0.7.2/src/daemon/dbus/dbuscpp/dbusmessagereader.h strigi-0.7.2-new/src/daemon/dbus/dbuscpp/dbusmessagereader.h
--- strigi-0.7.2/src/daemon/dbus/dbuscpp/dbusmessagereader.h 2010-02-03 14:03:07.000000000 -0500
+++ strigi-0.7.2-new/src/daemon/dbus/dbuscpp/dbusmessagereader.h 2010-02-16 09:41:28.000000000 -0500
@@ -32,6 +32,14 @@
#include
#endif
+#ifdef __x86_64__
+#define STRIGI_UINT64_TYPE dbus_uint64_t
+#define STRIGI_INT64_TYPE dbus_int64_t
+#else
+#define STRIGI_UINT64_TYPE uint64_t
+#define STRIGI_INT64_TYPE int64_t
+#endif
+
class DBusMessageReader {
private:
DBusMessage* msg;
@@ -62,8 +70,8 @@
DBusMessageReader& operator>>(std::string& s);
DBusMessageReader& operator>>(dbus_int32_t& s);
DBusMessageReader& operator>>(dbus_uint32_t& s);
- DBusMessageReader& operator>>(dbus_uint64_t& s);
- DBusMessageReader& operator>>(dbus_int64_t& s);
+ DBusMessageReader& operator>>(STRIGI_UINT64_TYPE& s);
+ DBusMessageReader& operator>>(STRIGI_INT64_TYPE& s);
DBusMessageReader& operator>>(std::multimap
DBusMessageReader& operator>>(std::vector
bool isOk() const { return ok; }
diff -Nurd strigi-0.7.2/src/luceneindexer/CMakeLists.txt strigi-0.7.2-new/src/luceneindexer/CMakeLists.txt
--- strigi-0.7.2/src/luceneindexer/CMakeLists.txt 2010-02-03 14:03:07.000000000 -0500
+++ strigi-0.7.2-new/src/luceneindexer/CMakeLists.txt 2010-02-16 09:22:22.000000000 -0500
@@ -10,6 +10,8 @@
${ICONV_INCLUDE_DIR}
)
+add_definitions(-I${CLUCENE_LIBRARY_DIR})
+
IF(WIN32)
# why only here and not for the complete project?
ADD_DEFINITIONS(-D_UNICODE)
--- a/config.h.cmake 2010-02-03 14:03:07.000000000 -0500
+++ b/config.h.cmake 2012-05-05 16:54:10.000000000 -0400
@@ -40,7 +40,7 @@
//thread stuff
//////////////////////////////
#cmakedefine CMAKE_USE_WIN32_THREADS_INIT 1
-#cmakedefine CMAKE_HAVE_PTHREAD_CREATE 1
+#cmakedefine CMAKE_USE_PTHREADS_INIT 1
//////////////////////////////
//types
--- a/src/streams/strigi/strigi_thread.h 2010-02-03 14:03:07.000000000 -0500
+++ b/src/streams/strigi/strigi_thread.h 2012-05-05 16:54:38.000000000 -0400
@@ -23,7 +23,7 @@
#include
-#if defined(CMAKE_HAVE_PTHREAD_CREATE)
+#if defined(CMAKE_USE_PTHREADS_INIT)
#include
#define STRIGI_MUTEX_DEFINE(x) pthread_mutex_t x
#define STRIGI_MUTEX_INIT(x) pthread_mutex_init(x, 0)