commit: 5ef6b457d99f0786abcd72e8968e3c841ae384b9
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 29 22:10:50 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 29 22:10:50 2025 +0000
URL: https://gitweb.gentoo.org/repo/dev/ulm.git/commit/?id=5ef6b457
x11-libs/motif: Add xcursor, xrandr and xrender USE flags
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
x11-libs/motif/metadata.xml | 11 +++++++++++
x11-libs/motif/motif-2.4.0.ebuild | 25 +++++++++++++++----------
2 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/x11-libs/motif/metadata.xml b/x11-libs/motif/metadata.xml
index 522b608..08d457f 100644
--- a/x11-libs/motif/metadata.xml
+++ b/x11-libs/motif/metadata.xml
@@ -4,6 +4,17 @@
<maintainer type="person">
<email>[email protected]</email>
</maintainer>
+ <use>
+ <flag name="xcursor">
+ Add support for cursors (<pkg>x11-libs/libXcursor</pkg>)
+ </flag>
+ <flag name="xrandr">
+ Add support for monitor information (<pkg>x11-libs/libXrandr</pkg>)
+ </flag>
+ <flag name="xrender">
+ Add support for transparency (<pkg>x11-libs/libXrender</pkg>)
+ </flag>
+ </use>
<upstream>
<remote-id type="github">thentenaar/motif</remote-id>
</upstream>
diff --git a/x11-libs/motif/motif-2.4.0.ebuild
b/x11-libs/motif/motif-2.4.0.ebuild
index 2b32924..999c38b 100644
--- a/x11-libs/motif/motif-2.4.0.ebuild
+++ b/x11-libs/motif/motif-2.4.0.ebuild
@@ -12,23 +12,23 @@
SRC_URI="https://github.com/thentenaar/${PN}/archive/refs/tags/v${PV}.tar.gz ->
LICENSE="LGPL-2.1+ MIT"
SLOT="0/5"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv
~sparc ~x86 ~x64-macos ~x64-solaris"
-IUSE="examples jpeg png static-libs unicode xft"
+IUSE="examples jpeg png static-libs unicode xcursor xft xrandr xrender"
RDEPEND="x11-libs/libX11[${MULTILIB_USEDEP}]
- x11-libs/libXcursor[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXmu[${MULTILIB_USEDEP}]
x11-libs/libXpm[${MULTILIB_USEDEP}]
- x11-libs/libXrandr[${MULTILIB_USEDEP}]
- x11-libs/libXrender[${MULTILIB_USEDEP}]
x11-libs/libXt[${MULTILIB_USEDEP}]
jpeg? ( media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}] )
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
unicode? ( virtual/libiconv[${MULTILIB_USEDEP}] )
+ xcursor? ( x11-libs/libXcursor[${MULTILIB_USEDEP}] )
xft? (
media-libs/fontconfig[${MULTILIB_USEDEP}]
x11-libs/libXft[${MULTILIB_USEDEP}]
- )"
+ )
+ xrandr? ( x11-libs/libXrandr[${MULTILIB_USEDEP}] )
+ xrender? ( x11-libs/libXrender[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}
x11-base/xorg-proto
@@ -61,12 +61,17 @@ src_prepare() {
}
multilib_src_configure() {
- ECONF_SOURCE="${S}" econf \
- $(use_enable static-libs static) \
- $(use_enable unicode utf8) \
- $(use_with jpeg) \
- $(use_with png) \
+ local myconf=(
+ $(use_enable static-libs static)
+ $(use_enable unicode utf8)
+ $(use_with jpeg)
+ $(use_with png)
+ $(use_with xcursor)
$(use_with xft)
+ $(use_with xrandr)
+ $(use_with xrender)
+ )
+ ECONF_SOURCE="${S}" econf "${myconf[@]}"
}
multilib_src_compile() {