summaryrefslogtreecommitdiff
blob: e8c69045400e3e567ea5d6c3a99ddf528188379b (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-pilot/gnome-pilot-0.1.65-r1.ebuild,v 1.2 2002/07/11 06:30:26 drobbins Exp $


S=${WORKDIR}/${P}
DESCRIPTION="Gnome Pilot apps"
SRC_URI="ftp://ftp.gnome.org/pub/gnome/unstable/sources/gnome-pilot/${P}.tar.bz2"
HOMEPAGE="http://www.gnome.org/gnome-pilot/"

DEPEND="
	>=gnome-base/control-center-1.4.0.1-r1
	>=dev-libs/pilot-link-0.9.6
	>=dev-util/gob-1.0.12
	>=gnome-base/libglade-0.17"
RDEPEND="nls? ( sys-devel/gettext )"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p0 < ${FILESDIR}/${PN}-gentoo.diff
}

src_compile() {
	local myopts

	CFLAGS="${CFLAGS} `gnome-config --cflags libglade vfs`"

	use nls \
		&& myopts="--enable-nls" \
		|| myopts="--disable-nls"

	mkdir intl && touch intl/libgettext.h
	
	./configure --prefix=/usr \
		--with-gnome-libs=/usr/lib \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--enable-usb-visor=yes \
		${myopts} \
		--host=${CHOST} || die

	emake || die
}

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

	dodoc AUTHORS COPYING* ChangeLog README NEWS
}