summaryrefslogtreecommitdiff
blob: 6ee30e99e329c6468d3d4a5ca901a90da096670f (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
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

AUTOTOOLS_AUTO_DEPEND=no
inherit autotools xdg

DESCRIPTION="The default OpenSolaris theme (GTK+ 2.x engine, icon- and metacity theme)"
HOMEPAGE="http://dlc.sun.com/osol/jds/downloads/extras/nimbus/"
SRC_URI="http://dlc.sun.com/osol/jds/downloads/extras/${PN}/${P}.tar.bz2"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="gtk minimal"

DEPEND="gtk? ( x11-libs/gtk+:2 )"
RDEPEND="
	${DEPEND}
	!minimal? (
		|| (
			x11-themes/adwaita-icon-theme
			x11-themes/tango-icon-theme
		)
	)"
BDEPEND="
	dev-util/intltool
	virtual/pkgconfig
	x11-misc/icon-naming-utils
	!gtk? ( ${AUTOTOOLS_DEPEND} )"

PATCHES=( "${FILESDIR}"/${PN}-0.1.7-fix-themes.patch )

src_prepare() {
	xdg_src_prepare

	echo light-index.theme.in >> po/POTFILES.skip || die
	echo dark-index.theme.in >> po/POTFILES.skip || die

	if ! use gtk; then
		sed -e '/GTK2/d' \
			-e '/^gtk-engine/d' \
			-e '/^SUBDIRS/s:gtk-engine ::' \
			-i configure.in Makefile.am || die
		mv configure.{in,ac} || die
		eautoreconf
	fi
}

src_configure() {
	econf --disable-static
}

src_install() {
	default

	# no static archives
	find "${D}" -name '*.la' -delete || die
}