# Description: E-mail client and PIM
# URL: http://www.ximian.com/evolution/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: libsoup, evolution-data-server, gtkhtml, gnome-spell, dbus, libnotify, nss
# Group: gnome/desktop

name=evolution
version=2.12.2
release=1
source=(http://download.gnome.org/desktop/2.20/2.20.2/sources/$name-$version.tar.bz2)

build() {
	cd $name-$version
	find . -name "Makefile.in" -exec \
		sed -i 's/scrollkeeper-update/echo/g' '{}' \;
	rm po/*.po
	sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
		-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
	./configure --prefix=/usr \
		--libexecdir=/usr/lib \
		--enable-ipv6=yes \
		--enable-doc=no \
		--enable-gtk-doc=no \
		--enable-nss=yes \
		--enable-smime=yes \
		--with-nspr-libs=/usr/lib \
		--with-nspr-includes=/usr/include/nspr \
		--with-nss-libs=/usr/lib \
		--with-nss-includes=/usr/include/nss \
		--with-openldap=yes \
		--disable-schemas-install
	make
	make DESTDIR=$PKG install
}
