summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'alexxy' Shvetsov <alexxy@gentoo.ru>2008-09-27 11:09:24 +0400
committerAlexey 'alexxy' Shvetsov <alexxy@gentoo.ru>2008-09-27 11:09:24 +0400
commite7bbbc77611d54282c338e22da99a625bf763c6a (patch)
tree85dd18e7222370dda0810b6afddf2fae399c6a96
parent9dea4122c24d3cb579b6e153c200dc0d70433406 (diff)
downloadkde-e7bbbc77611d54282c338e22da99a625bf763c6a.tar.gz
kde-e7bbbc77611d54282c338e22da99a625bf763c6a.tar.bz2
kde-e7bbbc77611d54282c338e22da99a625bf763c6a.zip
add strigi 0.6 live ebuild
-rw-r--r--app-misc/strigi/Manifest1
-rw-r--r--app-misc/strigi/strigi-0.6.9999.ebuild95
2 files changed, 96 insertions, 0 deletions
diff --git a/app-misc/strigi/Manifest b/app-misc/strigi/Manifest
index 21df235320b..35012a99beb 100644
--- a/app-misc/strigi/Manifest
+++ b/app-misc/strigi/Manifest
@@ -1,4 +1,5 @@
DIST strigi-0.5.11.tar.bz2 877002 RMD160 558f7b25dd1bab784898ae470595c763fef0f579 SHA1 5ee022f2b154cd6f6e98872ed92db390980f4274 SHA256 29c3a1d6151e5b6984897dc89570380b9caa600c34982285d43998dae9479279
EBUILD strigi-0.5.11.ebuild 2640 RMD160 4f17d8181964b46bb9ba200f52071abf04930048 SHA1 a3d82d2fcb318822e446ef928f1fed7e05b7a2e0 SHA256 eec76957cf0350e11fe62ceab7a570872a05ddb4ec685d2fbc6caaec9ff75023
+EBUILD strigi-0.6.9999.ebuild 2676 RMD160 bb5ba94621ac4f713adfa846649dbba961ab9d31 SHA1 e9e84504b6927d3f6e6e8375c47c94cd213d7d58 SHA256 1fe2fc2f8dec339118d8caf144c2a394200ff44ffae7f0508afb70559296d654
MISC ChangeLog 1833 RMD160 a2e68346a050394919a680d531ba750afc4ee6aa SHA1 4317082ede4cb24afad38014152d22bc61b015e6 SHA256 a83fcea0987faa893adb823884e20ab05f0c62701eb962bcbaf950089b4ed517
MISC metadata.xml 486 RMD160 6eb5e37e0646dc21260e2938d9aa6286489e10cd SHA1 d600420837886e1d487266009b803ca76643c571 SHA256 2a4f8b7f0572075a608b0a3fb2e62321b4dbdd61b231cf72218246f0351cda12
diff --git a/app-misc/strigi/strigi-0.6.9999.ebuild b/app-misc/strigi/strigi-0.6.9999.ebuild
new file mode 100644
index 00000000000..bf1b94fd3af
--- /dev/null
+++ b/app-misc/strigi/strigi-0.6.9999.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit cmake-utils eutils subversion
+
+DESCRIPTION="Fast crawling desktop search engine with Qt4 GUI"
+HOMEPAGE="http://www.vandenoever.info/software/strigi"
+ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/kdesupport/${PN}"
+ESVN_PROJECT="${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+clucene +dbus debug exif fam hyperestraier inotify log +qt4 test"
+# IUSE="sqlite": fails to compile
+
+COMMONDEPEND="
+ dev-libs/libxml2
+ virtual/libiconv
+ clucene? ( >=dev-cpp/clucene-0.9.19 )
+ dbus? ( sys-apps/dbus
+ || ( ( x11-libs/qt-dbus:4
+ x11-libs/qt-gui:4 )
+ =x11-libs/qt-4.3*:4[dbus] )
+ )
+ exif? ( media-gfx/exiv2 )
+ fam? ( virtual/fam )
+ hyperestraier? ( app-text/hyperestraier )
+ log? ( >=dev-libs/log4cxx-0.9.7 )
+ qt4? (
+ || ( ( x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-dbus:4 )
+ =x11-libs/qt-4.3*:4[dbus] )
+ )
+ !clucene? (
+ !hyperestraier? (
+ >=dev-cpp/clucene-0.9.19
+ )
+ )
+"
+# sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${COMMONDEPEND}
+ test? ( dev-util/cppunit )"
+RDEPEND="${COMMONDEPEND}"
+
+src_compile() {
+ # 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="${mycmakeargs}
+ -DENABLE_EXPAT=OFF -DENABLE_POLLING=ON
+ -DFORCE_DEPS=ON -DENABLE_CPPUNIT=OFF
+ -DENABLE_REGENERATEXSD=OFF
+ $(cmake-utils_use_enable clucene CLUCENE)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable exif EXIV2)
+ $(cmake-utils_use_enable fam FAM)
+ $(cmake-utils_use_enable hyperestraier HYPERESTRAIER)
+ $(cmake-utils_use_enable inotify INOTIFY)
+ $(cmake-utils_use_enable log LOG4CXX)
+ $(cmake-utils_use_enable qt4 DBUS)
+ $(cmake-utils_use_enable qt4 QT4)"
+# $(cmake-utils_use_enable sqlite SQLITE)"
+
+ if ! use clucene && ! use hyperestraier; then # && ! use sqlite; then
+ mycmakeargs="${mycmakeargs} -DENABLE_CLUCENE=ON"
+ fi
+
+ cmake-utils_src_compile
+}
+
+src_test() {
+ mycmakeargs="${mycmakeargs} -DENABLE_CPPUNIT=ON"
+ cmake-utils_src_compile
+
+ pushd "${WORKDIR}/${PN}_build"
+ ctest --extra-verbose || die "Tests failed."
+ popd
+}
+
+pkg_postinst() {
+ if ! use clucene && ! use hyperestraier; then # && ! use sqlite; then
+ elog "Because you didn't enable any of the supported backends:"
+ elog "clucene, hyperestraier and sqlite"
+ 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
+}