# # Ebuild file for the Evolution Brutus plugin. # Copyright (C) 2006-2007 OMC Denmark ApS # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # # Please see http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds # on how to use this ebuild file. # # $Header: $ inherit eutils DESCRIPTION="Brutus Exchange connector for Evolution 2.4 and later" HOMEPAGE="http://www.42tools.com/" SRC_URI="http://www.42tools.com/sites/default/files/downloads/dist/@EVOLUTION_BRUTUS_NAME@/@BRUTUS_DIST_RELEASE@/@EVOLUTION_BRUTUS_NAME@-@EVOLUTION_BRUTUS_VERSION@.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug" RESTRICT="nomirror" DEPEND=">=gnome-base/orbit-@ORBIT2_REQUIRED@ >=dev-libs/libIDL-@LIBIDL_REQUIRED@ >=dev-util/pkgconfig-@PKGCONFIG_REQUIRED@ >=dev-util/intltool-@INTLTOOL_REQUIRED@ >=mail-client/evolution-@EVOLUTION_VERSION@ >=gnome-extra/evolution-data-server-@EDS_BASE_VERSION@ >=app-crypt/brutus-keyring-@BRUTUS_KEYRING_REQUIRED@ gnome-base/gnome-common" DOCS="COPYING README INSTALL docs/building_from_source docs/using_evolution-brutus" src_compile() { BRUTUS_ECONF="--enable-brutus-dist=yes \ --enable-brutus-devel=no \ --enable-brutus-target=gentoo \ $(use_enable debug brutus-debug yes)" econf ${BRUTUS_ECONF} || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ${DOCS} } pkg_postinst() { ewarn "You can not use evolution-brutus until Evolution has been restarted." ewarn ewarn "It is not enough to simply exit from Evolution. All Evolution components must be" ewarn "completely shut down." ewarn ewarn "You should first restart all Brutus daemons if you are upgrading from an earlier" ewarn "release of evolution-brutus." ewarn ewarn "The preferred method is simply to tell the daemons to restart themselves. You can" ewarn "easily achieve this by opening a shell and execute these two commands:" ewarn ewarn " if [ -f ~/.brutus-logd/brutus-logd.pid ]; then (kill -s USR2 \$(cat ~/.brutus-logd/brutus-logd.pid)) fi" ewarn " if [ -f ~/.brutusd/brutusd.pid ]; then (kill -s USR2 \$(cat ~/.brutusd/brutusd.pid)) fi" ewarn ewarn "Then you must restart Evolution. One sure way to accomplish that is to open a" ewarn "terminal and execute: \"evolution --force-shutdown\"" }