summaryrefslogtreecommitdiff
blob: 45df9f0415dbb85a765be7f479950a93d73e06d1 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtkDPS/gtkDPS-0.3.4.ebuild,v 1.23 2006/03/27 21:30:10 agriffis Exp $

inherit eutils gnuconfig multilib

DESCRIPTION="Set of functions, objects and widgets to use DPS easily with GTK"
SRC_URI="ftp://ftp.gyve.org/pub/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gyve.org/gtkDPS/"

LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc sparc x86"
IUSE="nls"

DEPEND="=x11-libs/gtk+-1.2*
	|| ( app-text/dgs <x11-base/xorg-x11-7 )
	nls? ( sys-devel/gettext )"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-m4.patch
	gnuconfig_update
}

src_compile() {
	if ! use nls ; then
		myconf="--disable-nls"
	fi
	./configure \
		--prefix=/usr \
		--host=${CHOST} \
		--with-x \
		--with-dps $myconf \
		--libdir=${D}/usr/$(get_libdir) \
		|| die
	#Very ugly workaround 
	use nls && echo '#define LOCALEDIR "/usr/share/locale"' >> config.h
	make || die
}

src_install () {
	make prefix="${D}"/usr install || die
	dodoc ChangeLog GTKDPS-VERSION HACKING NEWS README TODO
}