| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/mail-notification/mail-notification-5.4-r4.ebuild,v 1.9 2012/05/04 08:42:23 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
inherit gnome2 multilib flag-o-matic toolchain-funcs eutils
|
| 8 |
|
| 9 |
DESCRIPTION="A GNOME trayicon which checks for email, with support for many online and offline mailbox formats."
|
| 10 |
HOMEPAGE="http://www.nongnu.org/mailnotify/"
|
| 11 |
SRC_URI="http://savannah.nongnu.org/download/mailnotify/${P}.tar.bz2"
|
| 12 |
|
| 13 |
KEYWORDS="amd64 ppc sparc x86"
|
| 14 |
SLOT="0"
|
| 15 |
LICENSE="GPL-3"
|
| 16 |
IUSE="evo gmail imap ipv6 maildir mbox mh mozilla pop sasl ssl sylpheed"
|
| 17 |
|
| 18 |
# gmime is actually optional, but it's used by so much of the package
|
| 19 |
# it's pointless making it optional. gnome-keyring is required for
|
| 20 |
# several specific access methods, and thus linked to those USE flags
|
| 21 |
# instead of adding a keyring USE flag.
|
| 22 |
RDEPEND=">=x11-libs/gtk+-2.12:2
|
| 23 |
>=dev-libs/glib-2.14
|
| 24 |
>=gnome-base/gconf-2.4.0
|
| 25 |
>=gnome-base/gconf-2.6
|
| 26 |
>=gnome-base/libgnomeui-2.14
|
| 27 |
>=gnome-base/libglade-2.0
|
| 28 |
dev-libs/dbus-glib
|
| 29 |
dev-libs/gmime:2.4
|
| 30 |
>=x11-libs/libnotify-0.4.1
|
| 31 |
pop? ( gnome-base/gnome-keyring )
|
| 32 |
imap? ( gnome-base/gnome-keyring )
|
| 33 |
gmail? ( gnome-base/gnome-keyring )
|
| 34 |
ssl? ( >=dev-libs/openssl-0.9.6 )
|
| 35 |
sasl? ( >=dev-libs/cyrus-sasl-2 )
|
| 36 |
evo? ( >=mail-client/evolution-2.24 )
|
| 37 |
sylpheed? ( mail-client/sylpheed )"
|
| 38 |
|
| 39 |
DEPEND="${RDEPEND}
|
| 40 |
app-text/scrollkeeper
|
| 41 |
virtual/pkgconfig
|
| 42 |
>=dev-util/intltool-0.35.0"
|
| 43 |
|
| 44 |
# this now uses JB (the Jean-Yves Lefort's Build System) as a build system
|
| 45 |
# instead of autotools, this is a little helper function that basically does
|
| 46 |
# the same thing as use_enable
|
| 47 |
use_var() {
|
| 48 |
echo "${2:-$1}=$(usex $1)"
|
| 49 |
}
|
| 50 |
|
| 51 |
src_prepare() {
|
| 52 |
epatch "${FILESDIR}/${P}-dont-update-cache.patch"
|
| 53 |
|
| 54 |
# We are not Ubuntu, and I suspect that this is the cause of #215281
|
| 55 |
epatch "${FILESDIR}/${P}-remove-ubuntu-special-case.patch"
|
| 56 |
|
| 57 |
# Make it work ok with eds-2.24 and 2.29
|
| 58 |
epatch "${FILESDIR}/${P}-e-d-s.patch"
|
| 59 |
|
| 60 |
# Fix gtkhtml depend to solve building against evo-2.28, see bug #293374
|
| 61 |
epatch "${FILESDIR}/${P}-evolution-gtkhtml.patch"
|
| 62 |
|
| 63 |
# Add patch for new cyrus-sasl's ABI, see:
|
| 64 |
# https://bugzilla.redhat.com/501456
|
| 65 |
epatch "${FILESDIR}/${P}-sasl_encode64.patch"
|
| 66 |
|
| 67 |
# Fedora patch to build against dev-libs/gmime:2.4
|
| 68 |
epatch "${FILESDIR}/${P}-gmime.patch"
|
| 69 |
|
| 70 |
# Fix forced --as-needed, bug 317905
|
| 71 |
epatch "${FILESDIR}/${P}-asneeded.patch"
|
| 72 |
|
| 73 |
# Fix icons for gnome 2.30+
|
| 74 |
epatch "${FILESDIR}/${P}-icons.patch"
|
| 75 |
}
|
| 76 |
|
| 77 |
src_configure() {
|
| 78 |
set -- \
|
| 79 |
./jb configure destdir="${D}" prefix="/usr" libdir=/usr/$(get_libdir) \
|
| 80 |
sysconfdir="/etc" localstatedir="/var" cc="$(tc-getCC)" \
|
| 81 |
cflags="${CFLAGS}" cppflags="${CXXFLAGS}" ldflags="${LDFLAGS}" \
|
| 82 |
scrollkeeper-dir="/var/lib/scrollkeeper" \
|
| 83 |
$(use_var evo evolution) \
|
| 84 |
$(use_var gmail) \
|
| 85 |
$(use_var imap) \
|
| 86 |
$(use_var ipv6) \
|
| 87 |
$(use_var maildir) \
|
| 88 |
$(use_var mbox) \
|
| 89 |
$(use_var mh) \
|
| 90 |
$(use_var mozilla) \
|
| 91 |
$(use_var pop pop3) \
|
| 92 |
$(use_var sasl) \
|
| 93 |
$(use_var ssl) \
|
| 94 |
$(use_var sylpheed)
|
| 95 |
echo "$@"
|
| 96 |
"$@" || die
|
| 97 |
}
|
| 98 |
|
| 99 |
src_compile() {
|
| 100 |
./jb build || die
|
| 101 |
}
|
| 102 |
|
| 103 |
src_install() {
|
| 104 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" ./jb install || die
|
| 105 |
|
| 106 |
dodoc NEWS README AUTHORS TODO TRANSLATING
|
| 107 |
|
| 108 |
rm -rf "${D}/var/lib/scrollkeeper"
|
| 109 |
}
|