From 45514f493cb9744d43e326dba232e71ec016e3e6 Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Tue, 1 Sep 2015 21:09:05 +0300 Subject: [PATCH] soprano:ad d --- programming/misc/soprano/actions.py | 23 +++ ...ound-for-datasourcenamenotfound-error.diff | 52 ++++++ programming/misc/soprano/pspec.xml | 160 ++++++++++++++++++ programming/misc/soprano/translations.xml | 28 +++ 4 files changed, 263 insertions(+) create mode 100644 programming/misc/soprano/actions.py create mode 100644 programming/misc/soprano/files/locale-workaround-for-datasourcenamenotfound-error.diff create mode 100644 programming/misc/soprano/pspec.xml create mode 100644 programming/misc/soprano/translations.xml diff --git a/programming/misc/soprano/actions.py b/programming/misc/soprano/actions.py new file mode 100644 index 0000000000..3c91927794 --- /dev/null +++ b/programming/misc/soprano/actions.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import cmaketools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +shelltools.export("JAVA_HOME","/usr/lib/jvm/java-7-openjdk") + +def setup(): + cmaketools.configure("-DCMAKE_SKIP_RPATH=OFF") + +def build(): + cmaketools.make() + +def install(): + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README") diff --git a/programming/misc/soprano/files/locale-workaround-for-datasourcenamenotfound-error.diff b/programming/misc/soprano/files/locale-workaround-for-datasourcenamenotfound-error.diff new file mode 100644 index 0000000000..1ecc81d7a3 --- /dev/null +++ b/programming/misc/soprano/files/locale-workaround-for-datasourcenamenotfound-error.diff @@ -0,0 +1,52 @@ +Index: soprano-2.6.0/backends/virtuoso/odbcconnectionpool.cpp +=================================================================== +--- soprano-2.6.0.orig/backends/virtuoso/odbcconnectionpool.cpp ++++ soprano-2.6.0/backends/virtuoso/odbcconnectionpool.cpp +@@ -32,13 +32,18 @@ + #include + + #include ++#include + + + Soprano::ODBC::Connection* Soprano::ODBC::ConnectionPoolPrivate::createConnection() + { ++ char *tmpLocale = setlocale(LC_CTYPE, ""); ++ setlocale(LC_CTYPE, "C"); ++ + Environment* env = Environment::createEnvironment(); + if ( !env ) { + setError( "Unable to create ODBC environment." ); ++ setlocale(LC_CTYPE, tmpLocale); + return 0; + } + +@@ -48,6 +53,7 @@ Soprano::ODBC::Connection* Soprano::ODBC + if ( SQLAllocConnect( env->henv(), &hdbc ) != SQL_SUCCESS ) { + setError( "Failed to allocate SQL handle" ); + delete env; ++ setlocale(LC_CTYPE, tmpLocale); + return 0; + } + +@@ -72,6 +78,7 @@ Soprano::ODBC::Connection* Soprano::ODBC + setError( Virtuoso::convertSqlError( SQL_HANDLE_DBC, hdbc ) ); + SQLFreeHandle( SQL_HANDLE_DBC, hdbc ); + delete env; ++ setlocale(LC_CTYPE, tmpLocale); + return 0; + } + +@@ -87,10 +94,12 @@ Soprano::ODBC::Connection* Soprano::ODBC + if ( conn->executeCommand( command ) != Error::ErrorNone ) { + setError( conn->lastError() ); + delete conn; ++ setlocale(LC_CTYPE, tmpLocale); + return 0; + } + } + ++ setlocale(LC_CTYPE, tmpLocale); + return conn; + } + diff --git a/programming/misc/soprano/pspec.xml b/programming/misc/soprano/pspec.xml new file mode 100644 index 0000000000..841606d737 --- /dev/null +++ b/programming/misc/soprano/pspec.xml @@ -0,0 +1,160 @@ + + + + + soprano + http://soprano.sourceforge.net + + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + GPLv2 + library + Qt wrapper API to different RDF storage solutions + soprano is a library which provides a highly usable object-oriented C++/Qt4 framework for RDF data. It uses different RDF storage solutions as backends through a simple plugin system. + mirrors://sourceforge/soprano/Soprano/2.9.4/soprano-2.9.4.tar.bz2 + + qt-devel + redland-devel + clucene-devel + raptor2-devel + + jdk7-openjdk + libiodbc-devel + + + + locale-workaround-for-datasourcenamenotfound-error.diff + + + + + soprano + + qt + clucene + raptor2 + + + /usr/bin + /usr/lib + /usr/share/dbus-1/interfaces + /usr/share/soprano/plugins + /usr/share/soprano/rules + /usr/kde/4/share/apps + /usr/share/doc + + + + + soprano-plugin-sesame2 + Sesame2 backend for Soprano + + qt + + jre7-openjdk-headless + soprano + + + /usr/lib/soprano/libsoprano_sesame2* + /usr/share/soprano/plugins/sesame2* + /usr/share/soprano/sesame2* + + + + + soprano-plugin-virtuoso + Virtuoso backend for Soprano + + qt + virtuoso + libiodbc + soprano + + + /usr/lib/soprano/libsoprano_virtuoso* + /usr/share/soprano/plugins/virtuoso* + + + + + soprano-plugin-redland + Redland backend for Soprano + + qt + redland + soprano + + + /usr/lib/soprano/libsoprano_redland* + /usr/share/soprano/plugins/redland* + + + + + soprano-devel + Development files for soprano + + soprano + qt-devel + + + /usr/include + /usr/library/pkgconfig + /usr/share/soprano/cmake + /usr/lib/pkgconfig + + + + + + 2014-05-24 + 2.9.4 + Rebuild. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-03-03 + 2.9.4 + Rebuild for openjdk + PisiLinux Community + admins@pisilinux.org + + + 2013-10-26 + 2.9.4 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-07-17 + 2.9.3 + Move pc files to devel pack, release bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-07-17 + 2.9.3 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-07-10 + 2.9.2 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-01-08 + 2.9.0 + First release + Idris Kalp + yaralikurt15@hotmail.com + + + diff --git a/programming/misc/soprano/translations.xml b/programming/misc/soprano/translations.xml new file mode 100644 index 0000000000..9335d2568d --- /dev/null +++ b/programming/misc/soprano/translations.xml @@ -0,0 +1,28 @@ + + + + soprano + Çeşitli RDF saklama çözümleri için bir Qt sarmalayıcı programlama arayüzü + soprano RDF verisi için çok kullanışlı, nesne yönelimli C++/Qt4 çatısı sağlayan bir kitaplıktır. Basit bir eklenti sistemi sayesinde farklı RDF depolama çözümlerinin arka uç olarak kullanabilir. + + + + soprano-plugin-sesame2 + Soprano için Sesame2 motoru + + + + soprano-plugin-virtuoso + Soprano için Virtuoso motoru + + + + soprano-plugin-redland + Soprano için Redland motoru + + + + soprano-devel + soprano için geliştirme dosyaları + +