You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
MY_PN=${PN}3
|
||
|
MY_P=${MY_PN}-${PV}
|
||
|
|
||
|
inherit cmake-multilib
|
||
|
|
||
|
DESCRIPTION="Official GTK+:3 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="3"
|
||
|
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+:3[${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}-gtk-3.14.patch"
|
||
|
"${FILESDIR}/${PN}-1.4.6-demo-optional.patch"
|
||
|
"${FILESDIR}/${PN}-1.4.6-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-gtk3
|
||
|
CONFIG_PROTECT="${EPREFIX}/usr/share/themes/oxygen-gtk/gtk-3.0"
|
||
|
EOF
|
||
|
doenvd 99oxygen-gtk3
|
||
|
}
|