summaryrefslogtreecommitdiff
blob: 353331fb61ab1b509c411b31db63e9bbf7466e04 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-themes/gtk-engines-industrial/gtk-engines-industrial-0.2.36.ebuild,v 1.1 2005/08/03 11:31:27 leonardop Exp $

inherit eutils

MY_PN="gtk-industrial-engine"
DESCRIPTION="GTK+ 1 Industrial theme engine"
HOMEPAGE="http://art.gnome.org/themes/gtk_engines/672"
SRC_URI="http://art.gnome.org/download/themes/gtk_engines/672/${MY_PN}_${PV}-2.tar.gz"
LICENSE="GPL-2"
SLOT="1"

KEYWORDS="~x86"
IUSE="static"

DEPEND="=x11-libs/gtk+-1.2*"

S=${WORKDIR}/${MY_PN}-${PV}

src_unpack() {
	unpack ${A}
	cd ${S}

	# Only install the gtk1 engine
	epatch ${FILESDIR}/${P}-gtk1_only.patch

	# Hack so it can find the required files
	cp gtk-common/* gtk1-engine

	libtoolize --copy --force
	aclocal || die "aclocal failed"
	autoheader || die "autoheader failed"
	automake --add-missing --gnu || die "automake failed"
	autoconf || die "autoconf failed"
}

src_compile() {
	local myconf="$(use_enable static)"

	econf $myconf || die "Configuration failed"
	emake || die "Compilation failed"
}

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

	dodoc ChangeLog README
}