summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schmitt <chris@ilovelinux.de>2010-01-11 21:38:02 +0100
committerChristian Schmitt <chris@ilovelinux.de>2010-01-11 21:39:40 +0100
commit3a202978eb4e13b8d873c36cd819acebe19d316b (patch)
tree89b42e45c4a5538aae27fb91484d39d52c9a4552
parentbd4de9402695f8d5cff2b39dea27439554c5ea4e (diff)
downloadkde-3a202978eb4e13b8d873c36cd819acebe19d316b.tar.gz
kde-3a202978eb4e13b8d873c36cd819acebe19d316b.tar.bz2
kde-3a202978eb4e13b8d873c36cd819acebe19d316b.zip
[app-misc/strigi-0.7.1] new version for 4.4 release. changed clucene deps.
-rw-r--r--app-misc/strigi/Manifest2
-rw-r--r--app-misc/strigi/strigi-0.7.1.ebuild101
2 files changed, 103 insertions, 0 deletions
diff --git a/app-misc/strigi/Manifest b/app-misc/strigi/Manifest
index d05b9f6f14c..5efaff26c4a 100644
--- a/app-misc/strigi/Manifest
+++ b/app-misc/strigi/Manifest
@@ -1,2 +1,4 @@
+DIST strigi-0.7.1.tar.bz2 936454 RMD160 4dac3c3e8937dc1e0ea5cc759c95d64ba4e24898 SHA1 9e05a875a1c62ebb5c0c59bf2114253cd1bc2a07 SHA256 d1830506da50262c80d5a3b55ee7821b132184cbd251c527db8d9d76a9242ab3
+EBUILD strigi-0.7.1.ebuild 2684 RMD160 294f9d0d2e5749074da31152f576c35f957d84c9 SHA1 225e875dfa525e98d02ca32734b5a656199bf57c SHA256 5c6dca82d37f158967922e4f773aab70fc7e0d4d8bcb8b003d7137766e0c4482
EBUILD strigi-9999.ebuild 2477 RMD160 836835b83d562355f3f28f725ca37c1859d08fcd SHA1 9a55e4a2a4cf2fd8ab8a91536495d8bdae319739 SHA256 4804d95cf7eabab88b09ab2b6091f679fe20be27e4ddea27ca8c77d9b41af46f
MISC metadata.xml 486 RMD160 6eb5e37e0646dc21260e2938d9aa6286489e10cd SHA1 d600420837886e1d487266009b803ca76643c571 SHA256 2a4f8b7f0572075a608b0a3fb2e62321b4dbdd61b231cf72218246f0351cda12
diff --git a/app-misc/strigi/strigi-0.7.1.ebuild b/app-misc/strigi/strigi-0.7.1.ebuild
new file mode 100644
index 00000000000..cc34eb38f2b
--- /dev/null
+++ b/app-misc/strigi/strigi-0.7.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/strigi-0.7.0.ebuild,v 1.10 2010/01/08 06:33:14 abcd Exp $
+
+EAPI="2"
+
+inherit base cmake-utils
+
+DESCRIPTION="Fast crawling desktop search engine with Qt4 GUI"
+HOMEPAGE="http://strigi.sourceforge.net/"
+SRC_URI="http://www.vandenoever.info/software/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 sparc x86"
+IUSE="+clucene +dbus debug exif fam hyperestraier inotify log +qt4 test"
+
+COMMONDEPEND="
+ dev-libs/libxml2
+ virtual/libiconv
+ >=virtual/poppler-utils-0.8
+ clucene? ( >=dev-cpp/clucene-0.9.21[-debug] )
+ dbus? (
+ x11-libs/qt-dbus:4
+ x11-libs/qt-gui:4
+ )
+ exif? ( >=media-gfx/exiv2-0.17 )
+ fam? ( virtual/fam )
+ hyperestraier? ( app-text/hyperestraier )
+ log? ( >=dev-libs/log4cxx-0.10.0 )
+ qt4? (
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-dbus:4
+ )
+ !clucene? (
+ !hyperestraier? (
+ >=dev-cpp/clucene-0.9.21[-debug]
+ )
+ )
+"
+DEPEND="${COMMONDEPEND}
+ test? ( dev-util/cppunit )"
+RDEPEND="${COMMONDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.6.4-gcc44.patch"
+ "${FILESDIR}/${PN}-0.6.5-gcc4.4-missing-headers.patch"
+ "${FILESDIR}/${PN}-disable_java.patch"
+)
+
+src_configure() {
+ # Strigi needs either expat or libxml2.
+ # However libxml2 seems to be required in both cases, linking to 2 xml parsers
+ # is just silly, so we forcefully disable linking to expat.
+ # Enabled: POLLING (only reliable way to check for files changed.)
+
+ mycmakeargs=(
+ -DENABLE_EXPAT=OFF -DENABLE_POLLING=ON
+ -DFORCE_DEPS=ON -DENABLE_CPPUNIT=OFF
+ -DENABLE_REGENERATEXSD=OFF
+ $(cmake-utils_use_enable clucene)
+ $(cmake-utils_use_enable dbus)
+ $(cmake-utils_use_enable exif EXIV2)
+ $(cmake-utils_use_enable fam)
+ $(cmake-utils_use_enable hyperestraier)
+ $(cmake-utils_use_enable inotify)
+ $(cmake-utils_use_enable log LOG4CXX)
+ $(cmake-utils_use_enable qt4)
+ )
+
+ if use qt4; then
+ mycmakeargs+=(-DENABLE_DBUS=ON)
+ fi
+
+ if ! use clucene && ! use hyperestraier; then
+ mycmakeargs+=(-DENABLE_CLUCENE=ON)
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ mycmakeargs+=(-DENABLE_CPPUNIT=ON)
+ cmake-utils_src_configure
+ cmake-utils_src_compile
+
+ pushd "${CMAKE_BUILD_DIR}" > /dev/null
+ ctest --extra-verbose || die "Tests failed."
+ popd > /dev/null
+}
+
+pkg_postinst() {
+ if ! use clucene && ! use hyperestraier; then
+ elog "Because you didn't enable either of the supported backends:"
+ elog "clucene or hyperestraier"
+ elog "clucene support was silently installed."
+ elog "If you prefer another backend, be sure to reinstall strigi"
+ elog "and to enable that backend use flag"
+ fi
+}