# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 DESCRIPTION="Evolution module for connecting to Microsoft Exchange" HOMEPAGE="http://www.novell.com/products/connector/" SRC_URI="http://ftp.ximian.com/pub/source/evolution/${PF}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug ldap doc" # Just reading from configure.in ... RDEPEND="net-mail/evolution virtual/glibc >=dev-libs/glib-2.0 >=gnome-base/ORBit2-2.3 >=gnome-base/gconf-2.0 >=net-libs/libsoup-2.0 >=gnome-base/libglade-2.0 >=gnome-base/libgnomeui-2.0 >=gnome-base/libbonobo-2.0 ldap? ( >=net-nds/openldap-2.0 )" DEPEND="$REDEPEND sys-devel/gcc sys-apps/coreutils sys-devel/make sys-devel/libtool sys-devel/gettext dev-util/pkgconfig doc? ( dev-util/gtk-doc )" src_compile() { myconf="" # LDAP? if use ldap; then myconf="$myconf --with-openldap=yes" else myconf="$myconf --with-openldap=no" fi # debugging? if use debug; then myconf="$myconf --with-e2k-debug" fi # Avoid sandbox violations by putting # non-stadard install dirs under the image tree # (except idldir, since that is only read, and at the install stage) einfo "Putting non-standard install directories under image tree" mv configure configure.tmp cat configure.tmp | sed 's/^\(EVOLUTION_[a-z_]*dir=\"\)/\1\\$\{DESTDIR\}/' > configure mv configure configure.tmp cat configure.tmp | sed 's/^\(EVOLUTION_idldir=\"\)\\${DESTDIR}/\1/' > configure chmod u+x configure # Build; make sure DESTDIR is blank so itens are sought in the right place gnome2_src_compile DESTDIR="" $myconf } src_install() { gnome2_src_install DESTDIR="${D}" }