blob: 13ad7933192c5b571d4224313f99f9081c5c4465 (
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
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_PN=${PN}2
MY_P=${MY_PN}-${PV}
inherit cmake-multilib
DESCRIPTION="Official GTK+:2 port of KDE's Oxygen widget style"
HOMEPAGE="https://store.kde.org/content/show.php/?content=136216"
SRC_URI="mirror://kde/stable/${MY_PN}/${PV}/src/${MY_P}.tar.bz2"
LICENSE="LGPL-2.1"
KEYWORDS="amd64 ~ppc x86"
SLOT="2"
IUSE="debug doc"
COMMON_DEPEND="
dev-libs/dbus-glib[${MULTILIB_USEDEP}]
dev-libs/glib:2[${MULTILIB_USEDEP}]
x11-libs/cairo[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}]
x11-libs/gtk+:2[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/pango[${MULTILIB_USEDEP}]
"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen )
"
RDEPEND="${COMMON_DEPEND}
!x11-themes/oxygen-gtk:0
"
PATCHES=(
"${FILESDIR}/${P}-xul.patch"
"${FILESDIR}/${P}-eclipse.patch"
"${FILESDIR}/${P}-qtpaths.patch"
"${FILESDIR}/${P}-warning.patch"
"${FILESDIR}/${P}-demo-optional.patch"
"${FILESDIR}/${P}-tabstyle.patch"
)
S=${WORKDIR}/${MY_P}
multilib_src_configure() {
if ! multilib_is_native_abi; then
local mycmakeargs=(
-DENABLE_DEMO=OFF
)
fi
cmake-utils_src_configure
}
src_install() {
if use doc; then
doxygen Doxyfile || die "Generating documentation failed"
HTML_DOCS=( doc/html/. )
fi
cmake-multilib_src_install
cat <<-EOF > 99oxygen-gtk2
CONFIG_PROTECT="${EPREFIX}/usr/share/themes/oxygen-gtk/gtk-2.0"
EOF
doenvd 99oxygen-gtk2
}
|