soprano stable port information

Info4: <<
Package: soprano-%type_pkg[soprano]
Version: 2.6.0
Revision: 8
Description: C++ RDF framework
Type: soprano (x11 mac)
License: GPL/LGPL
Maintainer: Benjamin Reed

Depends: <<
%N-shlibs (>= %v-%r),
libraptor1-shlibs (>= 1.4.21-1),
librasqal2-shlibs (>= 0.9.21-1),
qt4-base-%type_pkg[soprano]-qtcore-shlibs,
qt4-base-%type_pkg[soprano]-qtdbus-shlibs,
qt4-base-%type_pkg[soprano]-qtnetwork-shlibs,
redland-shlibs (>= 1.0.12-1)
<<
BuildDepends: <<
clucene-core (>= 0.9.20-1),
cmake (>= 2.8.2-1),
db48-aes | db48,
dbus1.3-dev (>= 1.2.24-1),
fink (>= 0.30.0-1),
fink-package-precedence (>= 0.7-1),
gmp5 (>= 5.0.1-8),
kde4-buildenv (>= 4.6.0-1),
libcurl4,
libiconv,
libmpfr4 (>= 3.0.1-1),
libraptor1-dev (>= 1.4.21-1),
librasqal2-dev (>= 0.9.21-1),
libssh2.1,
libxml2,
libxslt,
libpcre1,
pkgconfig (>= 0.23-1),
redland-dev (>= 1.0.12-1),
sqlite3-dev,
system-java-dev (>= 1.5.0-1),
system-openssl-dev,
qt4-base-%type_pkg[soprano] (>= 4.7.3-1),
virtuoso (>= 6.1.2-1)
<<
GCC: 4.0

Source: mirror:sourceforge:soprano/soprano-%v.tar.bz2
Source-MD5: 03ae49e87c6ec99e57d0433c2650846f
PatchScript: <<
%{default_script}
find . -name CMakeLists.txt | xargs perl -pi -e 's,include/Soprano,include/soprano,g'
<<
PatchFile: soprano.patch
PatchFile-MD5: 0b01849c69204763951053a68224178d

UseMaxBuildJobs: true
CompileScript: <<
#!/bin/sh -ev

export KDE4_PREFIX="%p" KDE4_TYPE="%type_pkg[soprano]" KDE4_INSTALL_PREFIX="%p/opt/soprano/%type_pkg[soprano]"
. %p/sbin/kde4-buildenv.sh

export CC="$CC -MD" CXX="$CXX -MD"
mkdir -p build
pushd build
cmake $KDE4_CMAKE_ARGS -DCLUCENE_LIBRARY_DIR:PATH="%p/lib" -DIODBC_INCLUDE_DIR:PATH=/usr/include -DIODBC_LIBRARIES:PATH=/usr/lib/libiodbc.dylib ..
make VERBOSE=1
popd
fink-package-precedence --prohibit-bdep %n --depfile-ext=.d .
<<

InstallScript: <<
#!/bin/sh -ev

pushd build
make -j1 install/fast DESTDIR="%d"
popd

install -d -m 755 %i/bin
for bin in onto2vocabularyclass sopranocmd sopranod; do
/bin/mv %i/opt/soprano/%type_pkg[soprano]/bin/$bin %i/bin/$bin-%type_pkg[soprano]
done

%p/sbin/normalize-filenames.sh "%i/opt/soprano/%type_pkg[soprano]/include"
if [ -d "%i/opt/soprano/%type_pkg[soprano]/include/Soprano" ]; then
/bin/mv "%i/opt/soprano/%type_pkg[soprano]/include/Soprano" "%i/opt/soprano/%type_pkg[soprano]/include/soprano"
fi
<<
DocFiles: AUTHORS COPYING* ChangeLog INSTALL README TODO
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for Soprano
Depends: <<
clucene-core-shlibs (>= 0.9.20-1),
dbus1.3-shlibs (>= 1.2.24-1),
qt4-base-%type_pkg[soprano]-qtcore-shlibs (>= 4.7.3-1),
qt4-base-%type_pkg[soprano]-qtdbus-shlibs (>= 4.7.3-1),
qt4-base-%type_pkg[soprano]-qtnetwork-shlibs (>= 4.7.3-1),
qt4-base-%type_pkg[soprano]-qtxml-shlibs (>= 4.7.3-1),
system-java (>= 1.5.0-1),
virtuoso (>= 6.1.2-1)
<<
Recommends: %N (>= %v-%r)
DocFiles: COPYING*
Files: <<
opt/soprano/%type_pkg[soprano]/lib/libsoprano.4*.dylib
opt/soprano/%type_pkg[soprano]/lib/libsopranoclient.1*.dylib
opt/soprano/%type_pkg[soprano]/lib/libsopranoindex.1*.dylib
opt/soprano/%type_pkg[soprano]/lib/libsopranoserver.1*.dylib
<<
Shlibs: <<
%p/opt/soprano/%type_pkg[soprano]/lib/libsoprano.4.dylib 4.0.0 %n (>= 2.2.3-7)
%p/opt/soprano/%type_pkg[soprano]/lib/libsopranoclient.1.dylib 1.0.0 %n (>= 2.2.3-7)
%p/opt/soprano/%type_pkg[soprano]/lib/libsopranoindex.1.dylib 1.0.0 %n (>= 2.2.3-7)
%p/opt/soprano/%type_pkg[soprano]/lib/libsopranoserver.1.dylib 1.0.0 %n (>= 2.2.3-7)
<<
<<
SplitOff2: <<
Package: %N-dev
Description: Development headers and libraries for soprano
Depends: <<
%N (>= %v-%r),
%N-shlibs (= %v-%r)
<<
Replaces: %N (<< 2.4.0.1-1)
BuildDependsOnly: true
Files: <<
opt/soprano/%type_pkg[soprano]/include
opt/soprano/%type_pkg[soprano]/lib/*.dylib
opt/soprano/%type_pkg[soprano]/lib/pkgconfig
opt/soprano/%type_pkg[soprano]/share/soprano/cmake
<<
PreInstScript: <<
/bin/rm -rf "%p/opt/soprano/%type_pkg[soprano]/include/Soprano"
/bin/rm -rf "%p/opt/soprano/%type_pkg[soprano]/include/soprano"
<<
PostInstScript: <<
if [ "$1" = "configure" ] && [ ! -f "%p/opt/soprano/%type_pkg[soprano]/include/Soprano/sopranotypes.h" ]; then
# case-sensitive filesystem, make various build-system stuff happy
/bin/ln -sf soprano "%p/opt/soprano/%type_pkg[soprano]/include/Soprano"
fi
<<
<<

PostInstScript: <<
if [ configure = "$1" ]; then
WEIGHT=100
if [ "%type_pkg[soprano]" = "x11" ]; then
WEIGHT=50
fi
for bin in onto2vocabularyclass sopranocmd sopranod; do
update-alternatives --install %p/bin/$bin $bin %p/bin/$bin-%type_pkg[soprano] $WEIGHT
done
fi
<<
PreRmScript: <<
if [ upgrade != "$1" ]; then
for bin in onto2vocabularyclass sopranocmd sopranod; do
update-alternatives --remove $bin %p/bin/$bin-%type_pkg[soprano]
done
fi
<<

DescDetail: <<
Soprano is an open and pluggable RDF resource framework which is built
on top of QT4. It provides RDF storage, RDF parsing, serialization,
inference, and full text indexing in a nice C++ API.

The main target of Soprano are desktop applications as it is being
developed as a subproject of Nepomuk, the semantic desktop initiative.
<<
<<

soprano stable port .patch

diff -Nurd soprano-2.6.0/CMakeLists.txt soprano-2.6.0-new/CMakeLists.txt
--- soprano-2.6.0/CMakeLists.txt 2011-02-01 09:51:41.000000000 -0500
+++ soprano-2.6.0-new/CMakeLists.txt 2011-05-18 12:20:27.000000000 -0400
@@ -210,7 +210,7 @@
################## apidox ################################
find_package(Doxygen)

-if(DOXYGEN_EXECUTABLE)
+if(FALSE)
configure_file(${soprano_SOURCE_DIR}/Doxyfile.cmake ${soprano_BINARY_DIR}/Doxyfile)
set(QTDOCS_ONLINE "http://doc.qt.nokia.com/latest/")

@@ -251,7 +251,7 @@
COMMAND rsync -zrtq docs/html/ $ENV{USER},soprano@web.sf.net:/home/groups/s/so/soprano/htdocs/apidox/trunk
DEPENDS onlineapidox
COMMENT "Uploading trunk API docs to Sourceforge...")
-endif(DOXYGEN_EXECUTABLE)
+endif(FALSE)


################## status messages ################################
diff -Nurd soprano-2.6.0/Doxyfile.cmake soprano-2.6.0-new/Doxyfile.cmake
--- soprano-2.6.0/Doxyfile.cmake 2011-02-01 09:51:41.000000000 -0500
+++ soprano-2.6.0-new/Doxyfile.cmake 2011-05-18 11:59:39.000000000 -0400
@@ -239,7 +239,7 @@
# Configuration::additions related to external references
#---------------------------------------------------------------------------
TAGFILES = ${soprano_SOURCE_DIR}/qt4.tag
-GENERATE_TAGFILE =
+GENERATE_TAGFILE = docs/soprano.tag
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
diff -Nurd soprano-2.6.0/index/CMakeLists.txt soprano-2.6.0-new/index/CMakeLists.txt
--- soprano-2.6.0/index/CMakeLists.txt 2011-02-01 09:51:41.000000000 -0500
+++ soprano-2.6.0-new/index/CMakeLists.txt 2011-05-18 11:53:43.000000000 -0400
@@ -11,6 +11,8 @@
${CMAKE_CURRENT_BINARY_DIR}
)

+add_definitions(-I${CLUCENE_LIBRARY_DIR})
+
set( SOPRANO_INDEX_SRCS
cluceneindex.cpp
clucenedocumentwrapper.cpp
diff -Nurd soprano-2.6.0/soprano/qhashqurlcompat.cpp soprano-2.6.0-new/soprano/qhashqurlcompat.cpp
--- soprano-2.6.0/soprano/qhashqurlcompat.cpp 2011-02-01 09:51:41.000000000 -0500
+++ soprano-2.6.0-new/soprano/qhashqurlcompat.cpp 2011-05-18 12:56:43.000000000 -0400
@@ -46,7 +46,7 @@
uint soprano_qHash_QUrl(const QUrl &);
}

-#if !((defined(Q_OS_MACX) || defined(_WIN32) ) && QT_VERSION >= 0x040700)
+#if !(defined(_WIN32) && QT_VERSION >= 0x040700)
uint qHash(const QUrl &url)
{
return Soprano::soprano_qHash_QUrl(url);

soprano _unstable_ port .patch