summaryrefslogtreecommitdiff
blob: 3c3a599c524ecd890afdbbf2ee8082c1fa92a46c (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-qtlibs/emul-linux-x86-qtlibs-20080316.ebuild,v 1.1 2008/03/17 07:18:38 welp Exp $

inherit eutils emul-linux-x86

LICENSE="|| ( QPL-1.0 GPL-2 ) GPL-2 LGPL-2"
KEYWORDS="-* ~amd64"

DEPEND=""
RDEPEND=">=app-emulation/emul-linux-x86-baselibs-20071114
		>=app-emulation/emul-linux-x86-soundlibs-20071114
		>=app-emulation/emul-linux-x86-xlibs-20071114"

pkg_setup() {
	if ! built_with_use app-emulation/emul-linux-x86-soundlibs arts; then
		eerror
		eerror "\t ${PN} requires arts support in app-emulation/emul-linux-x86-soundlibs."
		eerror "\t Please compile app-emulation/emul-linux-x86-soundlibs with USE=arts "
		eerror "\t enabled and then re-merge this package."
		eerror
		die "app-emulation/emul-linux-x86-soundlibs must have arts useflag turned on"
	fi
}

src_unpack() {
	emul-linux-x86_src_unpack
	NEEDED="(libDCOP.so|libkdecore.so|libkdefx.so|libqt-mt.so|libqt.so|libqui.so)"
	find "${S}" -name '*.so*' | egrep -v "${NEEDED}" | xargs rm -f
}