summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-09-01 14:12:00 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-09-01 14:12:50 +0300
commitba4b1a1ce282be0246b3d77b7b694eacc79194a5 (patch)
tree8fd4122c1850adea8e90c0c4f1543625bcbada58 /app-editors/featherpad
parentmail-client/thunderbird: stabilize 102.15.0 for x86 (diff)
downloadgentoo-ba4b1a1ce282be0246b3d77b7b694eacc79194a5.tar.gz
gentoo-ba4b1a1ce282be0246b3d77b7b694eacc79194a5.tar.bz2
gentoo-ba4b1a1ce282be0246b3d77b7b694eacc79194a5.zip
app-editors/featherpad: enable building with qt6
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/featherpad')
-rw-r--r--app-editors/featherpad/featherpad-1.4.1.ebuild42
1 files changed, 27 insertions, 15 deletions
diff --git a/app-editors/featherpad/featherpad-1.4.1.ebuild b/app-editors/featherpad/featherpad-1.4.1.ebuild
index 88d6e56287b5..69a1e0841b09 100644
--- a/app-editors/featherpad/featherpad-1.4.1.ebuild
+++ b/app-editors/featherpad/featherpad-1.4.1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit xdg cmake
+inherit cmake xdg
DESCRIPTION="Lightweight Qt5 Plain-Text Editor for Linux"
HOMEPAGE="https://github.com/tsujan/FeatherPad"
@@ -13,26 +13,38 @@ S="${WORKDIR}/FeatherPad-${PV}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
-IUSE="+X"
+IUSE="+qt5 qt6 +X"
+REQUIRED_USE="^^ ( qt5 qt6 )"
-RDEPEND="app-text/hunspell:=
- >=dev-qt/qtcore-5.15.0:5
- dev-qt/qtdbus:5
- dev-qt/qtgui:5
- dev-qt/qtprintsupport:5
- dev-qt/qtsvg:5
- dev-qt/qtwidgets:5
- X? (
- dev-qt/qtx11extras:5
- x11-libs/libX11
- )"
+RDEPEND="
+ app-text/hunspell:=
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ X? ( dev-qt/qtx11extras:5 )
+ )
+ qt6? (
+ dev-qt/qtbase:6[cups,dbus,gui,widgets]
+ dev-qt/qtsvg:6
+ )
+ X? ( x11-libs/libX11 )
+"
DEPEND="${RDEPEND}
- X? ( x11-base/xorg-proto )"
-BDEPEND="dev-qt/linguist-tools:5"
+ X? ( x11-base/xorg-proto )
+"
+BDEPEND="
+ qt5? ( dev-qt/linguist-tools:5 )
+ qt6? ( dev-qt/qttools:6[linguist] )
+"
src_configure() {
local mycmakeargs=(
-DWITHOUT_X11=$(usex !X)
+ -DENABLE_QT5=$(usex qt5)
)
cmake_src_configure
}