summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-02-02 23:18:20 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2009-02-02 23:18:20 +0000
commitb2a5fec9fec16115969f8c2ad2b67935ace38c57 (patch)
tree7117d0044851b8e5e5a990e913cb1720a898ef98 /dev-libs/soprano
parentVersion bump, now propagates flags properly and backport changes to 1.7 (diff)
downloadhistorical-b2a5fec9fec16115969f8c2ad2b67935ace38c57.tar.gz
historical-b2a5fec9fec16115969f8c2ad2b67935ace38c57.tar.bz2
historical-b2a5fec9fec16115969f8c2ad2b67935ace38c57.zip
Version bump. Thanks to reavertm.
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/soprano')
-rw-r--r--dev-libs/soprano/ChangeLog8
-rw-r--r--dev-libs/soprano/Manifest5
-rw-r--r--dev-libs/soprano/files/soprano-make-optional-targets.patch191
-rw-r--r--dev-libs/soprano/soprano-2.2.1.ebuild78
4 files changed, 280 insertions, 2 deletions
diff --git a/dev-libs/soprano/ChangeLog b/dev-libs/soprano/ChangeLog
index 9dfe329f6437..7aa9368602a4 100644
--- a/dev-libs/soprano/ChangeLog
+++ b/dev-libs/soprano/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/soprano
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v 1.15 2009/02/01 23:04:13 jmbsvicetto Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v 1.16 2009/02/02 23:18:20 scarabeus Exp $
+
+*soprano-2.2.1 (02 Feb 2009)
+
+ 02 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org>
+ +files/soprano-make-optional-targets.patch, +soprano-2.2.1.ebuild:
+ Version bump. Thanks to reavertm.
01 Feb 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
soprano-2.2.ebuild:
diff --git a/dev-libs/soprano/Manifest b/dev-libs/soprano/Manifest
index 8b07d2c77ddd..d4fd7185f0e1 100644
--- a/dev-libs/soprano/Manifest
+++ b/dev-libs/soprano/Manifest
@@ -1,8 +1,11 @@
+AUX soprano-make-optional-targets.patch 7769 RMD160 cadf6db4d8c38c0f4879838ea049695dca48af4e SHA1 4489d50c89788d41746921cf890da6bf46bf7ce8 SHA256 32e55e17e6519947f877d63174e41ee033af05470d4a252031d1165c579e0872
DIST soprano-2.0.2.tar.bz2 1618299 RMD160 b280e6461c930b5a0c2c54e885f495225fa60c68 SHA1 86ce3e81c92ae52b8a3995f3dbb3786b74975b6f SHA256 511198662307dc25eb841ab47b38f8f04b4155c1b799762d19edf98a8f06e120
DIST soprano-2.1.1.tar.bz2 1831720 RMD160 5da5343b45e5fbbe687b114f4133be2e6c85140e SHA1 07a8a47809a7b17a270897d8b7c14e7656d4af7d SHA256 102f3f4c557e28ccf5f64e9f292ddc3412c7dc09f083867b2e73d08739e6bff9
+DIST soprano-2.2.1.tar.bz2 1848048 RMD160 ac7b810b2a7d191b9eb1818a25669af639fa074c SHA1 459a01eba8ec6791cb9c72d56bfed394c948d047 SHA256 09c720c9100daca9c905894bfb95c868cf5af4f2939affd0c6e714de6da0c9bf
DIST soprano-2.2.tar.bz2 1847479 RMD160 fb111b143b40d14e8bc07e7802eade494959168a SHA1 c71cefa3bfdd72712d52985a3144d0c35e3a5a32 SHA256 1a33c08778640c9154b9f3adb0fc1d386faa5b71aa4eada7d549678d69998b9e
EBUILD soprano-2.0.2.ebuild 2208 RMD160 dd56d6f47c30e1e2a5e4a56e0638350af9dd133f SHA1 afdab3e6a23f2f9044b74a5ba07cb24991bcfdcb SHA256 7389594bec4f1eb5d71a6e9d3837e9317a5013002d2fd34938b07c0f03c0e522
EBUILD soprano-2.1.1.ebuild 2744 RMD160 326c189569b97eb6c7708395be33687efc61553e SHA1 99bf6271d41db0d85458fe9bdfd7fb7e57ddfec6 SHA256 d95865890e11388f3d3482f999737fd203b10f0c153a90ad839c26cede5b4a24
+EBUILD soprano-2.2.1.ebuild 2017 RMD160 e3ee7ee79ba6243023bfc06c7f3f52b73c77b35c SHA1 d9403d88b1ab4118c79c699a489fd054d75acff5 SHA256 ea5c40477161305caefd11c66b8425adfb74b4fe0818516da1156c48609baee8
EBUILD soprano-2.2.ebuild 2759 RMD160 cc8c97fe2106d2348a9c60cd23e8bbcd3f609c5e SHA1 bfb3aae96e1498392b90a2b365957562186de74f SHA256 8724e4a3faf482bdd571f6e9bdc56dbe7017d89a6a5baf2e43c7289f7b8eb5d6
-MISC ChangeLog 2255 RMD160 057f7bcda763edd93ff9863f31e7b887bc9535a0 SHA1 0d904428c1e922cec822d01886bae4df91735173 SHA256 1c766c9a23f5ccce601c987d48a749ac07b705aa9324ae938b1c921256a86a2e
+MISC ChangeLog 2441 RMD160 ebac224a199028cd6e800db5ef9aeeaba2ff089b SHA1 5e83fc8d5de3ebea9631c13f9ee50339295baaae SHA256 671d452190eaf2a8abe30b7e226195d0c010e6fa5d230a86a6b5a0c5a8654dae
MISC metadata.xml 440 RMD160 290571f5152906ed32eacad5ce6138f510b2a361 SHA1 6ed3b3208cefbbc0b1463be20e7ec173834b8109 SHA256 d805c4de395442d3e76d1937d4033d2cef5723e175630d8497e681e3901fde4c
diff --git a/dev-libs/soprano/files/soprano-make-optional-targets.patch b/dev-libs/soprano/files/soprano-make-optional-targets.patch
new file mode 100644
index 000000000000..3a3b40edfd00
--- /dev/null
+++ b/dev-libs/soprano/files/soprano-make-optional-targets.patch
@@ -0,0 +1,191 @@
+Index: CMakeLists.txt
+===================================================================
+--- CMakeLists.txt (revision 918069)
++++ CMakeLists.txt (working copy)
+@@ -1,4 +1,4 @@
+-project(soprano)
++project(soprano)
+
+ cmake_minimum_required(VERSION 2.6.2)
+
+@@ -9,10 +9,8 @@
+ set(CMAKE_SOPRANO_VERSION_RELEASE 60)
+ set(CMAKE_SOPRANO_VERSION_STRING "${CMAKE_SOPRANO_VERSION_MAJOR}.${CMAKE_SOPRANO_VERSION_MINOR}.${CMAKE_SOPRANO_VERSION_RELEASE}")
+
+-enable_testing()
++set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
+
+-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
+-
+ if(WIN32)
+ set(CMAKE_DEBUG_POSTFIX "d")
+ endif(WIN32)
+@@ -20,37 +18,45 @@
+ ################## find packages ################################
+
+ set(QT_MIN_VERSION "4.4.0")
+-find_package(Qt4 REQUIRED)
++find_package(Qt4 REQUIRED)
+ # properly set up compile flags (QT_DEBUG/QT_NO_DEBUG, ...)
+ include(${QT_USE_FILE})
+
+-find_package(Redland)
++option(ENABLE_Redland "Raptor RDF parser/serializer and Redland storage backend" OFF)
++if(ENABLE_Redland)
++ find_package(Redland)
++endif(ENABLE_Redland)
+
+-find_package(CLucene)
+-if(CLucene_FOUND)
+- if(CLUCENE_VERSION AND CLUCENE_VERSION STRGREATER "0.9.19" OR CLUCENE_VERSION STREQUAL "0.9.19")
+- set(CL_VERSION_19_OR_GREATER TRUE)
+- endif(CLUCENE_VERSION AND CLUCENE_VERSION STRGREATER "0.9.19" OR CLUCENE_VERSION STREQUAL "0.9.19")
+- set(SOPRANO_BUILD_INDEX_LIB 1 CACHE INTERNAL "Soprano Index is built" FORCE)
+-endif(CLucene_FOUND)
++option(ENABLE_CLucene "CLucene-based full-text search index library" ON)
++if(ENABLE_CLucene)
++ find_package(CLucene)
++ if(CLucene_FOUND)
++ if(CLUCENE_VERSION AND CLUCENE_VERSION STRGREATER "0.9.19" OR CLUCENE_VERSION STREQUAL "0.9.19")
++ set(CL_VERSION_19_OR_GREATER TRUE)
++ endif(CLUCENE_VERSION AND CLUCENE_VERSION STRGREATER "0.9.19" OR CLUCENE_VERSION STREQUAL "0.9.19")
++ set(SOPRANO_BUILD_INDEX_LIB 1 CACHE INTERNAL "Soprano Index is built" FORCE)
++ endif(CLucene_FOUND)
++endif(ENABLE_CLucene)
+
+-find_package(JNI)
+-if(JAVA_INCLUDE_PATH AND JAVA_JVM_LIBRARY)
+- file(READ ${JAVA_INCLUDE_PATH}/jni.h jni_header_data)
+- string(REGEX MATCH "JNI_VERSION_1_4" JNI_1_4_FOUND "${jni_header_data}")
+- if(JNI_1_4_FOUND)
+- message(STATUS "Found Java JNI >= 1.4: ${JAVA_INCLUDE_PATH}, ${JAVA_JVM_LIBRARY}")
+- else(JNI_1_4_FOUND)
+- message( "Need JNI version 1.4 or higher for the Sesame2 backend.")
+- endif(JNI_1_4_FOUND)
+-else(JAVA_INCLUDE_PATH AND JAVA_JVM_LIBRARY)
+- message(STATUS "Could not find Java JNI")
+- if("$ENV{JAVA_HOME}" STREQUAL "")
+- message("Make sure JAVA_HOME is set")
+- endif("$ENV{JAVA_HOME}" STREQUAL "")
+-endif(JAVA_INCLUDE_PATH AND JAVA_JVM_LIBRARY)
++option(ENABLE_Sesame2 "Sesame2 storage backend (java-based)" ON)
++if(ENABLE_Sesame2)
++ find_package(JNI)
++ if(JAVA_INCLUDE_PATH AND JAVA_JVM_LIBRARY)
++ file(READ ${JAVA_INCLUDE_PATH}/jni.h jni_header_data)
++ string(REGEX MATCH "JNI_VERSION_1_4" JNI_1_4_FOUND "${jni_header_data}")
++ if(JNI_1_4_FOUND)
++ message(STATUS "Found Java JNI >= 1.4: ${JAVA_INCLUDE_PATH}, ${JAVA_JVM_LIBRARY}")
++ else(JNI_1_4_FOUND)
++ message( "Need JNI version 1.4 or higher for the Sesame2 backend.")
++ endif(JNI_1_4_FOUND)
++ else(JAVA_INCLUDE_PATH AND JAVA_JVM_LIBRARY)
++ message(STATUS "Could not find Java JNI")
++ if("$ENV{JAVA_HOME}" STREQUAL "")
++ message("Make sure JAVA_HOME is set")
++ endif("$ENV{JAVA_HOME}" STREQUAL "")
++ endif(JAVA_INCLUDE_PATH AND JAVA_JVM_LIBRARY)
++endif(ENABLE_Sesame2)
+
+-
+ ################## setup install directories ################################
+ set (LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
+ set (LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name")
+@@ -63,40 +69,47 @@
+ # By default cmake builds the targets with full RPATH to everything in the build directory,
+ # but then removes the RPATH when installing.
+ # These two options below make it set the RPATH of the installed targets to all
+-# RPATH directories outside the current CMAKE_BINARY_DIR and also the library
++# RPATH directories outside the current CMAKE_BINARY_DIR and also the library
+ # install directory. Alex
+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+-set(CMAKE_INSTALL_RPATH ${LIB_DESTINATION} )
++set(CMAKE_INSTALL_RPATH ${LIB_DESTINATION})
+
+ if(APPLE)
+- set(CMAKE_INSTALL_NAME_DIR ${LIB_DESTINATION})
++ set(CMAKE_INSTALL_NAME_DIR ${LIB_DESTINATION})
+ endif(APPLE)
+
+
+ ################## some compiler settings ################################
+ if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32 )
+- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
+ endif(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32 )
+ if(MSVC)
+- add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Zc:wchar_t-)
++ add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Zc:wchar_t-)
+ endif(MSVC)
+ if(MINGW)
+- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
+ endif(MINGW)
+
+
+ ################## add subdirectories ################################
+ if(CLucene_FOUND)
+- add_subdirectory(index)
++ add_subdirectory(index)
+ endif(CLucene_FOUND)
+-add_subdirectory(soprano)
++
++add_subdirectory(soprano)
+ add_subdirectory(backends)
+ add_subdirectory(parsers)
+ add_subdirectory(serializers)
+ #add_subdirectory(queryparsers)
+ add_subdirectory(server)
+ add_subdirectory(tools)
+-add_subdirectory(test)
++
++option(ENABLE_tests "Parser/storage backend tests)" ON)
++if(ENABLE_tests)
++ enable_testing()
++ add_subdirectory(test)
++endif(ENABLE_tests)
++
+ add_subdirectory(rules)
+ add_subdirectory(includes)
+
+@@ -109,24 +122,26 @@
+
+
+ ################## apidox ################################
+-find_package(Doxygen)
++option(ENABLE_docs "API documentation" ON)
++if(ENABLE_docs)
++ find_package(Doxygen)
+
+-if(DOXYGEN_EXECUTABLE)
+- configure_file(${soprano_SOURCE_DIR}/Doxyfile.cmake ${soprano_BINARY_DIR}/Doxyfile)
++ if(DOXYGEN_EXECUTABLE)
++ configure_file(${soprano_SOURCE_DIR}/Doxyfile.cmake ${soprano_BINARY_DIR}/Doxyfile)
+
+- if(EXISTS ${QT_DOC_DIR}/html)
+- set(QTDOCS "${QT_DOC_DIR}/html")
+- else(EXISTS ${QT_DOC_DIR}/html)
+- set(QTDOCS "http://doc.trolltech.com/4.3/")
+- endif(EXISTS ${QT_DOC_DIR}/html)
++ if(EXISTS ${QT_DOC_DIR}/html)
++ set(QTDOCS "${QT_DOC_DIR}/html")
++ else(EXISTS ${QT_DOC_DIR}/html)
++ set(QTDOCS "http://doc.trolltech.com/4.3/")
++ endif(EXISTS ${QT_DOC_DIR}/html)
+
+- add_custom_target(
+- apidox
+- COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
+- COMMAND docs/html/installdox -l qt4.tag@${QTDOCS} docs/html/*.html)
+-endif(DOXYGEN_EXECUTABLE)
++ add_custom_target(
++ apidox
++ COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
++ COMMAND docs/html/installdox -l qt4.tag@${QTDOCS} docs/html/*.html)
++ endif(DOXYGEN_EXECUTABLE)
++endif(ENABLE_docs)
+
+-
+ ################## status messages ################################
+ message("---------------------------------------------------------------------------------------")
+ message("-- Soprano Components that will be built:")
diff --git a/dev-libs/soprano/soprano-2.2.1.ebuild b/dev-libs/soprano/soprano-2.2.1.ebuild
new file mode 100644
index 000000000000..24ed03d2aed4
--- /dev/null
+++ b/dev-libs/soprano/soprano-2.2.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/soprano-2.2.1.ebuild,v 1.1 2009/02/02 23:18:20 scarabeus Exp $
+
+EAPI="2"
+
+JAVA_PKG_OPT_USE="sesame2"
+
+inherit base cmake-utils flag-o-matic java-pkg-opt-2
+
+DESCRIPTION="Soprano is a library which provides a nice QT interface to RDF storage solutions."
+HOMEPAGE="http://sourceforge.net/projects/soprano"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="+clucene debug doc elibc_FreeBSD redland +sesame2"
+
+COMMON_DEPEND="
+ x11-libs/qt-core:4
+ x11-libs/qt-dbus:4
+ clucene? ( dev-cpp/clucene )
+ redland? (
+ >=dev-libs/rasqal-0.9.15
+ >=dev-libs/redland-1.0.6
+ media-libs/raptor
+ )
+ sesame2? ( >=virtual/jdk-1.6.0 )
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+"
+RDEPEND="${COMMON_DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-make-optional-targets.patch" )
+
+CMAKE_IN_SOURCE_BUILD="1"
+
+pkg_setup() {
+ if ! use redland && ! use sesame2; then
+ ewarn "You explicitly disabled default soprano backend and haven't chosen other one."
+ ewarn "Applications using soprano may need at least one backend functional."
+ ewarn "If you experience any problems, enable any of those USE flags:"
+ ewarn "redland, sesame2"
+ fi
+}
+
+src_prepare() {
+ base_src_prepare
+}
+
+src_configure() {
+ # Fix for missing pthread.h linking
+ # NOTE: temporarely fix until a better cmake files patch will be provided.
+ use elibc_FreeBSD && append-ldflags "-lpthread"
+
+ mycmakeargs="${mycmakeargs}
+ -DENABLE_tests=OFF
+ $(cmake-utils_use_enable clucene CLucene)
+ $(cmake-utils_use_enable redland Redland)
+ $(cmake-utils_use_enable sesame2 Sesame2)
+ $(cmake-utils_use_enable doc docs)"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_test() {
+ mycmakeargs="${mycmakeargs}
+ -DENABLE_tests=ON"
+ cmake-utils_src_configure
+ cmake-utils_src_compile
+ ctest --extra-verbose || die "Tests failed."
+}