# Copyright 2010 Dan Callaghan # Distributed under the terms of the GNU General Public License v2 require gnome-2 multilib SUMMARY="Tray icon showing unread mail" HOMEPAGE="http://www.nongnu.org/mailnotify/" DOWNLOADS="http://savannah.nongnu.org/download/mailnotify/${PNV}.tar.bz2" LICENCES="GPL-3" SLOT="0" PLATFORMS="~amd64 ~x86" MYOPTIONS=" ipv6 ssl sasl evolution [[ description = [ add support for checking Evolution mailboxes ] ]] " DEPENDENCIES=" build: sys-devel/gettext dev-lang/perl:* build+run: gnome-platform/libgnomeui[>=2.15.90] gnome-desktop/gnome-keyring sys-apps/dbus x11-libs/libnotify[>=0.4.1] net-utils/gmime:2.0[>=2.2.7] ssl? ( dev-libs/openssl[>=0.9.6] ) sasl? ( net-libs/cyrus-sasl[>=2.0] ) evolution? ( mail-client/evolution[>=2.12] ) " BUGS_TO="djc@djc.id.au" DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/disable-icon-cache-update.patch" ) function optionyn() { local option="$1" var="${2:-$1}" if option "$option" ; then echo "$var=yes" else echo "$var=no" fi } src_configure() { edo ./jb configure \ cc="${CC}" \ cflags="${CFLAGS}" \ cppflags="${CXXFLAGS}" \ ldflags="${LDFLAGS}" \ destdir="${IMAGE}" \ prefix=/usr \ bindir=/usr/bin \ libdir=/usr/${LIBDIR} \ libexecdir=/usr/libexec \ datadir=/usr/share \ sysconfdir=/etc \ localstatedir=/var/lib \ install-gconf-schemas=no \ update-gtk-icon-cache=no \ cc-dependency-tracking=no \ $(optionyn evolution) \ hotmail=no yahoo=no \ $(optionyn ipv6) \ $(optionyn ssl) \ $(optionyn sasl) \ regression-tests=no # Tests call gnome_vfs_init which requires a writeable homedir # https://bugzilla.gnome.org/show_bug.cgi?id=340234 } src_compile() { : } src_install() { edo ./jb install }