Commit: 34409d417b769249e6b2e83c1c6d6c5cdc7157d4 Parent: 5ff9935c455c64cc55732820ab584cfa1ab6fae6 Author: opask Date: Fri, 5 Apr 2019 22:33:25 -0600 add working dmenu ebuild Diffstat:
A | x11-misc/dmenu/dmenu-9999.ebuild | | | 49 | +++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 49 insertions(+), 0 deletions(-)
diff --git a/x11-misc/dmenu/dmenu-9999.ebuild b/x11-misc/dmenu/dmenu-9999.ebuild @@ -0,0 +1,49 @@ +EAPI=7 +inherit git-r3 savedconfig + +DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System" +HOMEPAGE="https://tools.suckless.org/dmenu/" +EGIT_REPO_URI="https://git.suckless.org/dmenu" + +LICENSE="MIT" +SLOT="0" +IUSE="savedconfig static xinerama" + +RDEPEND=" + media-libs/fontconfig + x11-libs/libX11 + x11-libs/libXft + xinerama? ( x11-libs/libXinerama ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-base/xorg-proto +" + +src_prepare() { + default + + sed -e '/^X11INC/{s:X11R6/include:include/X11:}' \ + -e '/^X11LIB/{s:X11R6/lib:lib/X11:}' \ + < config.mk > config.mk.new || die + mv config.mk.new config.mk + + if use static; then + export CFLAGS="${CFLAGS} -static" + export LDFLAGS="${LDFLAGS} -static" + fi + + if ! use xinerama; then + sed /^XINERAMA/d <config.mk >config.mk.new + mv config.mk.new config.mk + fi + + restore_config config.h +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install + + save_config config.h +}