x11-misc/xdotool: tidy ebuild and patches

Just style changes except for dropping (unused) libXi RDEPEND
and moving xorg-proto from BDEPEND to DEPEND.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-04-30 19:36:43 -04:00
parent a0b3937f05
commit 3c61e2b717
3 changed files with 22 additions and 24 deletions

View File

@@ -1,6 +1,5 @@
diff -ur a/Makefile b/Makefile
--- a/Makefile 2021-08-04 17:14:19.000000000 +0100
+++ b/Makefile 2021-08-05 22:13:20.509655072 +0100
--- a/Makefile
+++ b/Makefile
@@ -35,9 +35,9 @@
DEFAULT_LIBS=-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst -lXinerama -lxkbcommon
DEFAULT_INC=-I/usr/X11R6/include -I/usr/local/include

View File

@@ -1,6 +1,5 @@
diff -ur a/Makefile b/Makefile
--- a/Makefile 2021-08-04 17:14:19.000000000 +0100
+++ b/Makefile 2021-08-05 22:10:47.713611624 +0100
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@
$(CC) -o xdotool.static xdotool.o xdo.o xdo_search.o $(CMDOBJS) $(LDFLAGS) -lm $(XDOTOOL_LIBS) $(LIBXDO_LIBS)

View File

@@ -4,7 +4,6 @@
EAPI=8
DOCS_BUILDER="doxygen"
inherit docs toolchain-funcs
DESCRIPTION="Simulate keyboard input and mouse activity, move and resize windows"
@@ -16,38 +15,39 @@ SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86"
IUSE="examples"
# Many the tests want to manually start Xvfb regardless of whether there
# is an X server running or not (i.e. does not play nicely with virtualx),
# some tests require x11-wm/openbox, some try to run a complete Gnome
# session. All of them require a Ruby interpreter with dev-ruby/minitest
# installed. In short, supporting tests here will need MUCH work.
# tests have various troublesome requirements
RESTRICT="test"
RDEPEND="x11-libs/libX11
x11-libs/libXi
RDEPEND="
x11-libs/libX11
x11-libs/libXinerama
x11-libs/libXtst
x11-libs/libxkbcommon"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig
x11-base/xorg-proto"
x11-libs/libxkbcommon
"
DEPEND="
${RDEPEND}
x11-base/xorg-proto
"
BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-3.20210804.2-no_hardcoded_pkg-config.patch
"${FILESDIR}"/${PN}-3.20210804.2-no_ldconfig.patch
)
DOCS=( CHANGELIST README.md )
src_compile() {
tc-export CC LD PKG_CONFIG
emake PREFIX="${EPREFIX}/usr"
use doc && docs_compile
emake PREFIX="${EPREFIX}"/usr
docs_compile
}
src_install() {
emake PREFIX="${ED}/usr" INSTALLMAN="${ED}/usr/share/man" INSTALLLIB="${ED}/usr/$(get_libdir)" install
emake PREFIX="${ED}"/usr INSTALLMAN="${ED}"/usr/share/man \
INSTALLLIB="${ED}"/usr/$(get_libdir) install
use examples && DOCS+=( examples )
dodoc -r CHANGELIST $(usev examples)
einstalldocs
}