summaryrefslogtreecommitdiff
blob: 47d3e623ad5deec45a58f8906e6a4979f6df5389 (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="1"
inherit eutils rpm kde-functions autotools

MDV_EXTRAVERSION="3mdv2007.0"

DESCRIPTION="Mandriva's Galaxy theme for GTK2, Metacity and KDE"
HOMEPAGE="http://www.mandriva.com/"
SRC_URI="ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/2007.0/SRPMS/main/release/galaxy-${PV}-${MDV_EXTRAVERSION}.src.rpm"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde"

DEPEND=">=x11-libs/gtk+-2.0
	kde? ( || ( kde-base/kwin:3.5 kde-base/kdebase:3.5 ) )"

RDEPEND="${DEPEND}"

S="${WORKDIR}/galaxy-${PV}"

src_unpack() {
	rpm_src_unpack
	cd "${S}"
	epatch "${FILESDIR}"/remove-gtk1.patch
	use kde || epatch "${FILESDIR}"/remove-kde.patch
	eautoreconf
}

src_compile() {
	set-qtdir 3
	set-kdedir 3
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS README ChangeLog
}