From c743e47eb7c7f1c7de483f554728c5daaf9e4819 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Fri, 7 Jan 2022 11:37:10 -0800 Subject: x11-wm/dwm: sync live ebuild changes Signed-off-by: Georgy Yakovlev --- x11-wm/dwm/dwm-9999.ebuild | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/x11-wm/dwm/dwm-9999.ebuild b/x11-wm/dwm/dwm-9999.ebuild index 4b464a12ac2f..4ff4f401873f 100644 --- a/x11-wm/dwm/dwm-9999.ebuild +++ b/x11-wm/dwm/dwm-9999.ebuild @@ -1,16 +1,23 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit git-r3 savedconfig toolchain-funcs + +inherit savedconfig toolchain-funcs DESCRIPTION="a dynamic window manager for X11" HOMEPAGE="https://dwm.suckless.org/" -EGIT_REPO_URI="https://git.suckless.org/dwm" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.suckless.org/dwm" +else + SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +fi LICENSE="MIT" SLOT="0" -KEYWORDS="" IUSE="xinerama" RDEPEND=" @@ -30,6 +37,8 @@ src_prepare() { sed -i \ -e "s/ -Os / /" \ -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \ + -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + -e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \ config.mk || die restore_config config.h -- cgit v1.2.3-65-gdbad