KBFX – an alternative to T-Menu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

strigi-0.3.11.ebuild 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Copyright 1999-2006 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header:
  4. inherit eutils multilib
  5. DESCRIPTION="Fast crawling Desktop-Searchengine with (optional) QT4 GUI"
  6. HOMEPAGE="http://www.vandenoever.info/software/strigi"
  7. SRC_URI="http://www.vandenoever.info/software/${PN}/${P}.tar.bz2"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE="xercesc clucene hyperestraier sqlite3 xml xattr qt4 log dbus inotify"
  12. DEPEND="
  13. >=dev-util/cmake-2.4.2
  14. >=sys-libs/zlib-1.2.3
  15. >=app-arch/bzip2-1.0.3
  16. dev-libs/openssl
  17. virtual/libiconv
  18. dev-libs/expat
  19. xercesc? ( >=dev-libs/xerces-c )
  20. clucene? ( >=dev-cpp/clucene-0.9.16 )
  21. hyperestraier? ( app-text/hyperestraier )
  22. sqlite3? ( =dev-db/sqlite-3* )
  23. xml? ( dev-libs/libxml2 )
  24. xattr? ( sys-apps/attr )
  25. qt4? ( >=x11-libs/qt-4.2.1-r1 )
  26. log? ( >=dev-libs/log4cxx-0.9.7 )
  27. dbus? ( sys-apps/dbus )"
  28. # For most optional dependancies the use flags will be ignored,
  29. # useage will be determined by the pressence of the library instead.
  30. # This is a problem with the upstream build file.
  31. pkg_setup() {
  32. if !(use clucene) && !(use hyperestraier) && !(use sqlite3) ; then
  33. echo ""
  34. echo "ERROR:"
  35. eerror "You must enable one of the supported backends: "
  36. eerror "clucene, hyperestraier and sqlite3"
  37. eerror "If you are unsure, select cluencene"
  38. echo ""
  39. die
  40. fi
  41. if use dbus && use qt4 && !(built_with_use ">=x11-libs/qt-4.2.0" dbus); then
  42. echo ""
  43. echo "ERROR:"
  44. eerror "You are building Stingi with qt4 and dbus, but qt4 wasn't built with dbus."
  45. eerror "Please reemerge qt4 with dbus, or disable dbus in Stingi."
  46. echo ""
  47. die
  48. fi
  49. if use qt4 && !(use dbus); then
  50. echo ""
  51. echo "WARNING:"
  52. ewarn "You are building Stingi with qt4 but without dbus."
  53. ewarn "Strigiclient won't be able to detect a running Strigi daemon."
  54. ewarn "To avoid this, please enable both qt4 and dbus."
  55. echo ""
  56. fi
  57. # inotify still in development and unstable
  58. if use inotify; then
  59. echo ""
  60. echo "WARNING:"
  61. ewarn "Inotify support in stingi is still unstable"
  62. ewarn "If you get problems, please rebuild stringi without inotify"
  63. echo ""
  64. fi
  65. }
  66. src_compile() {
  67. cmake \
  68. -DENABLE_INOTIFY:BOOL=$( use inotify && echo ON || echo OFF ) \
  69. -DENABLE_DBUS:BOOL=$( use dbus && echo ON || echo OFF ) \
  70. -DENABLE_LOG4CXX:BOOL=$( use log && echo ON || echo OFF ) \
  71. -DCMAKE_INSTALL_PREFIX:PATH=/usr \
  72. -DLIB_DESTINATION:PATH=$(get_libdir) \
  73. . || die
  74. emake || die
  75. }
  76. src_install() {
  77. emake install DESTDIR=${D} || die
  78. }