Commit: be602c74f5eee9297492538b3006960ff78b91ba Parent: bfa05ca1d67ce2f5e9e156fe9259d5420ea837eb Author: opask Date: Tue, 8 Jan 2019 16:36:54 -0700 add x11-wm/dwm Diffstat:
A | x11-wm/dwm/dwm-9999.ebuild | | | 59 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 59 insertions(+), 0 deletions(-)
diff --git a/x11-wm/dwm/dwm-9999.ebuild b/x11-wm/dwm/dwm-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit git-r3 savedconfig + +DESCRIPTION="a dynamic window manager for X11" +HOMEPAGE="https://dwm.suckless.org/" +EGIT_REPO_URI="git://git.suckless.org/dwm" + +LICENSE="MIT" +SLOT="0" +IUSE="xinerama savedconfig static" + +RDEPEND=" + media-libs/fontconfig + x11-libs/libX11 + x11-libs/libXft + xinerama? ( x11-libs/libXinerama ) +" +DEPEND=" + ${RDEPEND} + xinerama? ( x11-base/xorg-proto ) +" + +src_prepare() { + default + + sed -e '/^CC/d' \ + -e '/^X11INC/{s:X11R6/include:include/X11:}' \ + -e '/^X11LIB/{s:/X11R6::}' \ + -e '/^CFLAGS/{s:=:+=:}' \ + -e '/^LDFLAGS/{s:=:+=:}' \ + < config.mk > config.mk.new || die + mv config.mk.new config.mk + + if ! use xinerama; then + sed -e '/^XINERAMALIBS/d' \ + -e '/^XINERAMAFLAGS/d' \ + < config.mk > config.mk.new || die + mv config.mk.new config.mk + fi + + if use static; then + export LDFLAGS="${LDFLAGS} -static" + fi + + restore_config config.h +} + +src_compile() { + emake CC=${CC} dwm +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install + + save_config config.h +}