commit 44793d5a382a851cbc59e9316fc893a333c34d32 parent d7c63af08934df1491d86058e54b798171c5d361 Author: Plat <plat@stellar-nexus.ru> Date: Thu, 22 Aug 2024 18:36:13 +0000 More adequate xscreenshot ebuild Diffstat:
M | media-gfx/xscreenshot/xscreenshot-1.0.ebuild | | | 9 | +++++++++ |
M | media-gfx/xscreenshot/xscreenshot-9999.ebuild | | | 9 | +++++++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/media-gfx/xscreenshot/xscreenshot-1.0.ebuild b/media-gfx/xscreenshot/xscreenshot-1.0.ebuild @@ -22,6 +22,15 @@ SLOT="0" DEPEND="x11-libs/libX11" RDEPEND="${DEPEND}" +src_prepare() { + default + + sed -i \ + -e '/^INCS/{s:/usr/X11R6/include:/usr/include/X11:}' \ + -e "/^LIBS/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + Makefile || die +} + src_compile() { filter-flags -Wl,--as-needed emake CC="$(tc-getCC)" diff --git a/media-gfx/xscreenshot/xscreenshot-9999.ebuild b/media-gfx/xscreenshot/xscreenshot-9999.ebuild @@ -22,6 +22,15 @@ SLOT="0" DEPEND="x11-libs/libX11" RDEPEND="${DEPEND}" +src_prepare() { + default + + sed -i \ + -e '/^INCS/{s:/usr/X11R6/include:/usr/include/X11:}' \ + -e "/^LIBS/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + Makefile || die +} + src_compile() { filter-flags -Wl,--as-needed emake CC="$(tc-getCC)"