|
|
# Copyright 1999-2007 Gentoo Foundation | # Copyright 1999-2007 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/beagle/beagle-0.2.18.ebuild,v 1.4 2007/11/25 00:37:19 ranger Exp $ |
# $Header: $ |
| |
EAPI=1 | EAPI=1 |
| |
inherit gnome.org eutils autotools mono |
inherit gnome.org eutils autotools mono mozextension |
| |
DESCRIPTION="search tool that ransacks your personal information space to find whatever you're looking for" |
DESCRIPTION="Search tool that ransacks your personal information space to find whatever you're looking for" |
HOMEPAGE="http://www.beagle-project.org" | HOMEPAGE="http://www.beagle-project.org" |
| |
LICENSE="MIT Apache-1.1" | LICENSE="MIT Apache-1.1" |
SLOT="0" | SLOT="0" |
KEYWORDS="amd64 ppc x86" |
KEYWORDS="~amd64 ~ppc ~x86" |
IUSE="chm doc eds galago gtk ole pdf python thunderbird +xscreensaver" |
IUSE="chm debug doc epiphany eds firefox galago gtk pdf ole thunderbird +xscreensaver" |
| |
RDEPEND=">=dev-lang/mono-1.1.18 |
RDEPEND=" |
|
>=dev-lang/mono-1.2.4 |
|
app-shells/bash |
app-arch/zip | app-arch/zip |
sys-devel/gettext | sys-devel/gettext |
>=x11-libs/gtk+-2.6 |
x11-misc/shared-mime-info |
>=dev-libs/gmime-2.2.1 | >=dev-libs/gmime-2.2.1 |
>=dev-dotnet/gtk-sharp-2.8 |
=media-libs/libexif-0.6* |
>=gnome-base/librsvg-2 |
|
>=media-libs/libexif-0.6 |
|
>=dev-libs/libxml2-2.6.19 | >=dev-libs/libxml2-2.6.19 |
x11-libs/libX11 |
|
x11-libs/libXt |
|
>=dev-db/sqlite-3.3.1 | >=dev-db/sqlite-3.3.1 |
gtk? ( >=dev-dotnet/gconf-sharp-2.8 |
>=dev-libs/libbeagle-0.3.0 |
>=dev-dotnet/glade-sharp-2.8 |
gtk? ( >=gnome-base/libgnome-2.0 |
>=dev-dotnet/gnome-sharp-2.8 ) |
>=x11-libs/gtk+-2.6.0 |
eds? ( >=dev-dotnet/evolution-sharp-0.13.3 |
>=dev-libs/atk-1.2.4 |
>=dev-dotnet/gconf-sharp-2.3 ) |
>=gnome-base/librsvg-2.0 |
ole? ( >=app-text/wv-1.2.0 |
>=dev-dotnet/gconf-sharp-2.8 |
>=dev-dotnet/gsf-sharp-0.6 |
>=dev-dotnet/glade-sharp-2.8 |
>=app-office/gnumeric-1.4.3-r3 ) |
>=dev-dotnet/gnome-sharp-2.8 |
python? ( >=dev-python/pygtk-2.6 ) |
>=dev-dotnet/gtk-sharp-2.8 ) |
pdf? ( >=app-text/poppler-0.5.1 ) |
eds? ( >=dev-dotnet/evolution-sharp-0.13.3 |
chm? ( app-doc/chmlib ) |
>=dev-dotnet/gconf-sharp-2.3 ) |
galago? ( >=dev-dotnet/galago-sharp-0.5 ) |
ole? ( >=app-text/wv-1.2.3 |
xscreensaver? ( x11-libs/libXScrnSaver )" |
>=dev-dotnet/gsf-sharp-0.8 ) |
|
chm? ( app-doc/chmlib ) |
|
pdf? ( >=app-text/poppler-0.5.1 ) |
|
galago? ( >=dev-dotnet/galago-sharp-0.5.0 ) |
|
thunderbird? ( || ( >=mail-client/mozilla-thunderbird-1.5 |
|
>=mail-client/mozilla-thunderbird-bin-1.5 ) ) |
|
firefox? ( || ( >=www-client/mozilla-firefox-1.5 |
|
>=www-client/mozilla-firefox-bin-1.5 ) ) |
|
epiphany? ( >=www-client/epiphany-extensions-2.16 ) |
|
xscreensaver? ( || ( ( x11-libs/libX11 |
|
x11-libs/libXScrnSaver |
|
x11-libs/libXt ) |
|
virtual/x11 ) )" |
|
# Avahi code is currently experimental |
|
#avahi? ( >=net-dns/avahi-0.6.10 ) |
|
|
DEPEND="${RDEPEND} | DEPEND="${RDEPEND} |
doc? ( dev-util/gtk-doc ) |
doc? ( >=dev-util/monodoc-1.2.4 ) |
dev-util/pkgconfig | dev-util/pkgconfig |
x11-proto/xproto |
xscreensaver? ( || ( ( x11-proto/xproto |
xscreensaver? ( x11-proto/scrnsaverproto )" |
x11-proto/scrnsaverproto ) |
|
virtual/x11 ) )" |
| |
pkg_setup() { | pkg_setup() { |
local fail="Re-emerge dev-libs/gmime with USE mono." | local fail="Re-emerge dev-libs/gmime with USE mono." |
|
|
| |
epatch "${FILESDIR}"/${PN}-0.2.7-crawltweek.patch | epatch "${FILESDIR}"/${PN}-0.2.7-crawltweek.patch |
epatch "${FILESDIR}"/${PN}-log-level-warn.patch | epatch "${FILESDIR}"/${PN}-log-level-warn.patch |
|
epatch "${FILESDIR}"/${P}-mono-1.2.6-fix.patch |
| |
eautoreconf | eautoreconf |
} | } |
| |
src_compile() { | src_compile() { |
econf --enable-libbeagle --enable-sqlite3 \ |
econf \ |
$(use_enable doc gtk-doc) \ |
--enable-sqlite3 \ |
|
--disable-avahi \ |
|
$(use_enable debug xml-dump) \ |
|
$(use_enable doc docs) \ |
|
$(use_enable epiphany epiphany-extension) \ |
|
$(use_enable firefox) \ |
$(use_enable thunderbird) \ | $(use_enable thunderbird) \ |
$(use_enable eds evolution) \ | $(use_enable eds evolution) \ |
$(use_enable gtk gui) \ | $(use_enable gtk gui) \ |
$(use_enable python) \ |
$(use_enable ole gsf-sharp wv1) \ |
$(use_enable ole gsf-sharp) \ |
|
$(use_enable xscreensaver xss) | $(use_enable xscreensaver xss) |
|
# Avahi code is experimental, explicitly disabled above |
|
#$(use_enable avahi) \ |
| |
emake || die "emake failed." | emake || die "emake failed." |
} | } |
|
|
src_install() { | src_install() { |
emake DESTDIR="${D}" install || die "emake install failed." | emake DESTDIR="${D}" install || die "emake install failed." |
| |
dodir /usr/share/beagle |
declare MOZILLA_FIVE_HOME |
insinto /usr/share/beagle |
if use firefox; then |
doins mozilla-extension/beagle.xpi |
xpi_unpack "${S}"/firefox-extension/beagle.xpi \ |
|
|| die "Unable to find Beagle Firefox Extension" |
|
mv "${WORKDIR}"/beagle "${WORKDIR}"/firefox-beagle |
|
|
|
if has_version '>=www-client/mozilla-firefox-1.5'; then |
|
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-firefox" |
|
xpi_install "${WORKDIR}"/firefox-beagle \ |
|
|| die "xpi install for mozilla-firefox failed!" |
|
fi |
|
if has_version '>=www-client/mozilla-${i}-bin-1.5'; then |
|
MOZILLA_FIVE_HOME="/opt/firefox" |
|
xpi_install "${WORKDIR}"/firefox-beagle \ |
|
|| die "xpi install for mozilla-firefox-bin failed!" |
|
fi |
|
fi |
|
|
|
if use thunderbird; then |
|
xpi_unpack "${S}"/thunderbird-extension/beagle.xpi \ |
|
|| die "Unable to find Beagle Thunderbird Extension" |
|
mv "${WORKDIR}"/beagle "${WORKDIR}"/thunderbird-beagle |
|
|
|
if has_version '>=mail-client/mozilla-thunderbird-1.5'; then |
|
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" |
|
xpi_install "${WORKDIR}"/thunderbird-beagle \ |
|
|| die "xpi install for mozilla-thunderbird failed!" |
|
fi |
|
if has_version '>=mail-client/mozilla-thunderbird-bin-1.5'; then |
|
MOZILLA_FIVE_HOME="/opt/thunderbird" |
|
xpi_install "${WORKDIR}"/thunderbird-beagle \ |
|
|| die "xpi install for mozilla-thunderbird-bin failed!" |
|
fi |
|
fi |
| |
dodoc AUTHORS NEWS README |
dodoc "${S}"/{AUTHORS,INSTALL,NEWS,README} |
| |
sed -i -e 's/CRAWL_ENABLED="yes"/CRAWL_ENABLED="no"/' "${D}"/etc/beagle/crawl-* | sed -i -e 's/CRAWL_ENABLED="yes"/CRAWL_ENABLED="no"/' "${D}"/etc/beagle/crawl-* |
| |
insinto /etc/beagle |
insinto "${ROOT}/etc/beagle" |
doins "${FILESDIR}"/crawl-portage |
doins "${FILESDIR}/crawl-portage" |
| |
keepdir /usr/$(get_libdir)/beagle/Backends |
keepdir "${ROOT}/usr/$(get_libdir)/beagle/Backends" |
diropts -o beagleindex -g beagleindex | diropts -o beagleindex -g beagleindex |
keepdir /var/lib/cache/beagle/indexes |
keepdir "${ROOT}/var/lib/cache/beagle/indexes" |
} | } |
| |
pkg_postinst() { | pkg_postinst() { |
elog "If available, Beagle greatly benefits from using certain operating" | elog "If available, Beagle greatly benefits from using certain operating" |
elog "system features such as Extended Attributes and inotify." | elog "system features such as Extended Attributes and inotify." |
echo |
elog |
elog "If you want static queryables such as the portage tree and system" | elog "If you want static queryables such as the portage tree and system" |
elog "documentation you will need to edit the /etc/beagle/crawl-* files" | elog "documentation you will need to edit the /etc/beagle/crawl-* files" |
elog "and change CRAWL_ENABLE from 'no' to 'yes'." | elog "and change CRAWL_ENABLE from 'no' to 'yes'." |
echo |
elog |
elog "For more info on how to create the optimal beagle environment, and" | elog "For more info on how to create the optimal beagle environment, and" |
elog "basic usage info, see the Gentoo page of the Beagle website:" | elog "basic usage info, see the Gentoo page of the Beagle website:" |
elog "http://www.beagle-project.org/Gentoo_Installation" | elog "http://www.beagle-project.org/Gentoo_Installation" |