summaryrefslogtreecommitdiff
blob: a0bde1cd3e0401bba0e409442cb26584c033b978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Mikael Hallendal <hallski@gentoo.org>, Martin Schlemmer <azarah@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-mail/evolution/evolution-0.15-r2.ebuild,v 1.1 2001/10/07 00:09:25 hallski Exp $

DB3=db-3.1.17
A="${P}.tar.gz ${DB3}.tar.gz"
S=${WORKDIR}/${P}
DESCRIPTION="A GNOME groupware application, a Microsoft Outlook workalike"
SRC_URI="ftp://ftp.ximian.com/pub/source/${PN}/${A}
	 ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${A}
	 http://www.sleepycat.com/update/3.1.17/${DB3}.tar.gz"
HOMEPAGE="http://www.ximian.com"

DEPEND=">=gnome-extra/bonobo-conf-0.12
        >=gnome-base/bonobo-1.0.9-r1
	>=gnome-extra/gal-0.13-r1
        >=gnome-base/gconf-1.0.4-r1
	>=gnome-extra/gtkhtml-0.14.0-r1
	>=gnome-base/oaf-0.6.6-r1
	>=gnome-base/ORBit-0.5.10-r1
	>=gnome-base/libglade-0.17-r1
	>=media-libs/gdk-pixbuf-0.11.0-r1
	>=dev-libs/libxml-1.8.15
	>=gnome-base/gnome-vfs-1.0.2-r1
	>=gnome-base/gnome-print-0.20
	>=app-text/scrollkeeper-0.2
        >=dev-util/xml-i18n-tools-0.8.4
	ssl? ( dev-libs/openssl )
	ldap? ( net-nds/openldap )
	mozilla? ( >=net-www/mozilla-0.9.4-r2 )
	pda? ( >=gnome-extra/gnome-pilot-0.1.61-r1 )" 

src_compile() {
	cd ${WORKDIR}/${DB3}/build_unix
	../dist/configure --prefix=${WORKDIR}/db3 || die
	make || die # make -j 4 doesn't work, use make
	make prefix=${WORKDIR}/db3 install || die

	cd ${S}
  
	local myconf

	MOZILLA=$MOZILLA_FIVE_HOME

	if [ "`use ssl`" ] ; then
		myconf="$myconf --enable-ssl"
	else
		myconf="$myconf --disable-ssl"
	fi

	if [ "`use pda`" ] ; then
		myconf="$myconf --with-pisock=/usr --enable-pilot-conduits=yes"
	fi

	if [ "`use mozilla`" ] ; then
		myconf="$myconf --with-nspr-includes=${MOZILLA}/include/nspr \
				--with-nss-includes=${MOZILLA}/include       \
				--with-nspr-libs=${MOZILLA}"
	fi

	CFLAGS="-I${WORKDIR}/db3/include ${CFLAGS} 			\
		`gnome-config --cflags bonobo`"

	./configure --host=${CHOST} 		     			\
		    --prefix=/usr					\
		    --sysconfdir=/etc		 			\
		    --enable-file-locking=no 				\
		    --with-db3=${WORKDIR}/db3 				\
	            --without-movemail 					\
		    $myconf || die

	make || die # emake didn't work.
}

src_install () {
	make DESTDIR=${D} install || die

	dodoc AUTHORS COPYING ChangeLog HACKING MAINTAINERS
	dodoc NEWS README
}