summaryrefslogtreecommitdiff
blob: 36c2d595ba99ead0d24508c39702043a3a697357 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-themes/gtk-engines-mist/gtk-engines-mist-0.10.ebuild,v 1.2 2003/10/04 18:27:13 liquidx Exp $

inherit gtk-engines2

MY_P="${P/engines-mist/mist-engine}"

IUSE=""
DESCRIPTION="GTK+1 and GTK+2 Mist Theme Engine"
HOMEPAGE="http://primates.ximian.com/~dave/mist/"
SRC_URI="http://primates.ximian.com/~dave/mist/${MY_P}.tar.gz"
KEYWORDS="~x86 ~ppc ~alpha ~sparc"
LICENSE="GPL-2"
SLOT="2"

DEPEND="!x11-themes/gnome-themes"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	# patch that adds --[enable|disable]-gtk-[1|2] - liquidx@g.o (04 Oct 03)
	epatch ${FILESDIR}/${P}-autoconf.patch
	cd ${S}; aclocal; automake; autoconf
}

src_compile() {
	local myconf
	if [ -n "${HAS_GTK1}" ]; then
		myconf="${myconf} --enable-gtk-1"
	else
		myconf="${myconf} --disable-gtk-1"
	fi
	
	if [ -n "${HAS_GTK2}" ]; then
		myconf="${myconf} --enable-gtk-2"
	else
		myconf="${myconf} --disable-gtk-2"
	fi
	
	econf ${myconf} || die "configure failed"
	emake || die "make failed"
}