diff options
author | Johannes Huber <johu@gentoo.org> | 2012-04-17 18:42:22 +0000 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2012-04-17 18:42:22 +0000 |
commit | 65aabad9d5cc56d20133e0adf36ebee326e46687 (patch) | |
tree | c06c06bf28eeb51a4fb119c46976164afd546f15 /app-misc/strigi | |
parent | marked x86 per bug 412097 (diff) | |
download | gentoo-2-65aabad9d5cc56d20133e0adf36ebee326e46687.tar.gz gentoo-2-65aabad9d5cc56d20133e0adf36ebee326e46687.tar.bz2 gentoo-2-65aabad9d5cc56d20133e0adf36ebee326e46687.zip |
Revision bump adds upstream patch to fix build with gcc 4.7 spotted by Alphat-PC <AlphatPC@gmail.com> wrt bug #412361.
(Portage version: 2.2.0_alpha100/cvs/Linux i686)
Diffstat (limited to 'app-misc/strigi')
-rw-r--r-- | app-misc/strigi/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/strigi/files/strigi-0.7.7-gcc47.patch | 20 | ||||
-rw-r--r-- | app-misc/strigi/strigi-0.7.7-r1.ebuild | 91 |
3 files changed, 119 insertions, 1 deletions
diff --git a/app-misc/strigi/ChangeLog b/app-misc/strigi/ChangeLog index ecf0acbdac9b..6259a644d549 100644 --- a/app-misc/strigi/ChangeLog +++ b/app-misc/strigi/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/strigi # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/ChangeLog,v 1.87 2012/03/12 10:01:56 johu Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/ChangeLog,v 1.88 2012/04/17 18:42:22 johu Exp $ + +*strigi-0.7.7-r1 (17 Apr 2012) + + 17 Apr 2012; Johannes Huber <johu@gentoo.org> +files/strigi-0.7.7-gcc47.patch, + +strigi-0.7.7-r1.ebuild: + Revision bump adds upstream patch to fix build with gcc 4.7 spotted by Alphat- + PC <AlphatPC@gmail.com> wrt bug #412361. 12 Mar 2012; Johannes Huber <johu@gentoo.org> -files/strigi-0.6.4-gcc44.patch, -files/strigi-0.6.5-gcc4.4-missing-headers.patch, diff --git a/app-misc/strigi/files/strigi-0.7.7-gcc47.patch b/app-misc/strigi/files/strigi-0.7.7-gcc47.patch new file mode 100644 index 000000000000..3e3d31835f67 --- /dev/null +++ b/app-misc/strigi/files/strigi-0.7.7-gcc47.patch @@ -0,0 +1,20 @@ +commit a8e97f672325557b3fbc84b987299350ec5ac10b +Author: Rex Dieter <rdieter@fedoraproject.org> +Date: Mon Jan 9 11:13:25 2012 -0600 + + gcc47 fix, unistd.h header required unconditionally for 'sleep' + +diff --git a/strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp b/strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp +index 9fcdcb1..1e97599 100644 +--- a/strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp ++++ b/strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp +@@ -27,9 +27,7 @@ + #include <iostream> + #include <stdio.h> + +-#if defined(__SUNPRO_CC) + #include <unistd.h> +-#endif + + using namespace std; + diff --git a/app-misc/strigi/strigi-0.7.7-r1.ebuild b/app-misc/strigi/strigi-0.7.7-r1.ebuild new file mode 100644 index 000000000000..6b14b1d4ef66 --- /dev/null +++ b/app-misc/strigi/strigi-0.7.7-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/strigi-0.7.7-r1.ebuild,v 1.1 2012/04/17 18:42:22 johu Exp $ + +EAPI=4 + +if [[ "${PV}" != "9999" ]]; then + SRC_URI="http://dev.gentoo.org/~johu/distfiles/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +else + EGIT_REPO_URI="git://anongit.kde.org/strigi" + GIT_ECLASS="git-2" + EGIT_HAS_SUBMODULES="true" + KEYWORDS="" +fi + +inherit cmake-utils ${GIT_ECLASS} + +DESCRIPTION="Fast crawling desktop search engine with Qt4 GUI" +HOMEPAGE="https://projects.kde.org/projects/kdesupport/strigi/strigi" + +LICENSE="GPL-2" +SLOT="0" +IUSE="clucene +dbus debug exif fam ffmpeg hyperestraier inotify log +qt4 test" + +COMMONDEPEND=" + app-arch/bzip2:0 + dev-libs/libxml2:2 + sys-libs/zlib:0 + virtual/libiconv + clucene? ( >=dev-cpp/clucene-0.9.21[-debug] ) + dbus? ( + sys-apps/dbus + qt4? ( x11-libs/qt-dbus:4 ) + ) + exif? ( >=media-gfx/exiv2-0.17 ) + fam? ( virtual/fam ) + ffmpeg? ( virtual/ffmpeg ) + hyperestraier? ( app-text/hyperestraier ) + log? ( >=dev-libs/log4cxx-0.10.0 ) + qt4? ( + x11-libs/qt-core:4 + x11-libs/qt-gui:4 + ) +" +DEPEND="${COMMONDEPEND} + dev-libs/boost + test? ( dev-util/cppunit )" +RDEPEND=${COMMONDEPEND} + +PATCHES=( "${FILESDIR}/${P}-gcc47.patch" ) + +src_configure() { + # Enabled: POLLING (only reliable way to check for files changed.) + # Disabled: xine - recommended upstream to keep it this way + mycmakeargs=( + -DENABLE_POLLING=ON + -DFORCE_DEPS=ON + -DENABLE_CPPUNIT=OFF + -DENABLE_REGENERATEXSD=OFF + -DENABLE_XINE=OFF + $(cmake-utils_use_enable clucene CLUCENE) + $(cmake-utils_use_enable dbus) + $(cmake-utils_use_enable exif EXIV2) + $(cmake-utils_use_enable fam) + $(cmake-utils_use_enable ffmpeg) + $(cmake-utils_use_enable hyperestraier) + $(cmake-utils_use_enable inotify) + $(cmake-utils_use_enable log LOG4CXX) + $(cmake-utils_use_enable qt4) + $(cmake-utils_use_enable test CPPUNIT) + ) + + if use qt4; then + mycmakeargs+=(-DENABLE_DBUS=ON) + fi + + cmake-utils_src_configure +} + +pkg_postinst() { + if ! use clucene && ! use hyperestraier; then + echo + elog "Because you didn't enable either of the available backends:" + elog "clucene or hyperestraier, strigi may not be functional." + elog "If you intend to use standalone strigi indexer (not needed for KDE)," + elog "be sure to reinstall app-misc/strigi with either clucene (recommended)" + elog "or hyperestraier (unreliable) USE flag enabled." + echo + fi +} |