mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-22 06:57:59 +02:00
Bug: https://bugs.gentoo.org/957749 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
56 lines
1.3 KiB
Bash
56 lines
1.3 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_PN=${PN}2
|
|
MY_P=${MY_PN}-${PV}
|
|
PATCHSET=${PN}-patchset
|
|
inherit cmake-multilib
|
|
|
|
DESCRIPTION="Official GTK+:2 port of KDE's Oxygen widget style"
|
|
HOMEPAGE="https://store.kde.org/p/1005553/"
|
|
SRC_URI="mirror://kde/stable/${MY_PN}/${PV}/src/${MY_P}.tar.bz2
|
|
https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}.tar.xz"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="2"
|
|
KEYWORDS="amd64 ~ppc x86"
|
|
|
|
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}]
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
!x11-themes/oxygen-gtk:0
|
|
"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
PATCHES=(
|
|
"${WORKDIR}/${PATCHSET}/${PV}" # bug 955107
|
|
"${FILESDIR}/${PN}-1.4.1-fix-uninitialised.patch" # bug 957749, pending MR
|
|
)
|
|
|
|
multilib_src_configure() {
|
|
if ! multilib_is_native_abi; then
|
|
local mycmakeargs=(
|
|
-DENABLE_DEMO=OFF
|
|
)
|
|
fi
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake-multilib_src_install
|
|
|
|
cat <<-EOF > 99oxygen-gtk2
|
|
CONFIG_PROTECT="${EPREFIX}/usr/share/themes/oxygen-gtk/gtk-2.0"
|
|
EOF
|
|
doenvd 99oxygen-gtk2
|
|
}
|