summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-09-25 23:15:26 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-09-25 23:20:48 +0200
commit229807cdcd809f3dcc8f00cb302743b9fe906056 (patch)
tree02530e9d2a8d8594673342c30f18ba222fa10a32 /x11-themes
parentx11-themes/kvantum: drop 1.0.10 (diff)
downloadgentoo-229807cdcd809f3dcc8f00cb302743b9fe906056.tar.gz
gentoo-229807cdcd809f3dcc8f00cb302743b9fe906056.tar.bz2
gentoo-229807cdcd809f3dcc8f00cb302743b9fe906056.zip
x11-themes/kvantum: Wire up USE=kde for Qt6, missing dev-qt/qtbase[X]
Tweak DESCRIPTION, drop REQUIRED_USE Closes: https://bugs.gentoo.org/932803 Bug: https://bugs.gentoo.org/935914 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/kvantum/kvantum-1.1.2-r2.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/x11-themes/kvantum/kvantum-1.1.2-r2.ebuild b/x11-themes/kvantum/kvantum-1.1.2-r2.ebuild
new file mode 100644
index 000000000000..3ad29e04cb10
--- /dev/null
+++ b/x11-themes/kvantum/kvantum-1.1.2-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# taken from Kvantum/style/CMakeLists.txt
+QTMIN="6.2.0"
+KFMIN="6.0.0"
+inherit cmake multibuild xdg
+
+DESCRIPTION="SVG-based theme engine for Qt, KDE Plasma and LXQt"
+HOMEPAGE="https://github.com/tsujan/Kvantum"
+SRC_URI="https://github.com/tsujan/${PN^}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
+S=${WORKDIR}/${PN^}-${PV}/${PN^}
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="kde qt5"
+
+RESTRICT="test" # no tests
+
+RDEPEND="
+ >=dev-qt/qtbase-${QTMIN}:6[gui,widgets,X]
+ >=dev-qt/qtsvg-${QTMIN}:6
+ x11-libs/libX11
+ kde? ( >=kde-frameworks/kwindowsystem-${KFMIN}:6 )
+ qt5? (
+ >=dev-qt/qtcore-5.15.9:5
+ >=dev-qt/qtgui-5.15.9:5
+ >=dev-qt/qtsvg-5.15.9:5
+ >=dev-qt/qtwidgets-5.15.9:5
+ >=dev-qt/qtx11extras-5.15.9:5
+ kde? ( >=kde-frameworks/kwindowsystem-5.115.0:5 )
+ )
+"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto
+"
+BDEPEND="
+ dev-qt/qttools:6[linguist]
+ qt5? ( dev-qt/linguist-tools:5 )
+"
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt5) qt6 )
+}
+
+src_configure() {
+ my_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT4=OFF
+ )
+ if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ mycmakeargs+=(
+ -DENABLE_QT5=ON
+ -DWITHOUT_KF=$(usex !kde)
+ )
+ elif [[ ${MULTIBUILD_VARIANT} = qt6 ]]; then
+ mycmakeargs+=(
+ -DENABLE_QT5=OFF
+ -DWITHOUT_KF=$(usex !kde)
+ )
+ fi
+ cmake_src_configure
+ }
+
+ multibuild_foreach_variant my_src_configure
+}
+
+src_compile() {
+ multibuild_foreach_variant cmake_src_compile
+}
+
+src_install() {
+ multibuild_foreach_variant cmake_src_install
+}