From: Jeroen Roovers Date: Mon, 30 Oct 2017 15:52:43 +0000 (+0100) Subject: x11-misc/dmenu: Add savedconfig support by Hadrien Lacour (bug #635820). X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e2dc58720ac8be82138b1e4d682399edf9d49ff7;p=gentoo.git x11-misc/dmenu: Add savedconfig support by Hadrien Lacour (bug #635820). Package-Manager: Portage-2.3.13, Repoman-2.3.4 --- diff --git a/x11-misc/dmenu/dmenu-4.7.ebuild b/x11-misc/dmenu/dmenu-4.7-r1.ebuild similarity index 93% rename from x11-misc/dmenu/dmenu-4.7.ebuild rename to x11-misc/dmenu/dmenu-4.7-r1.ebuild index 47042fad0e71..05dc375cb2ba 100644 --- a/x11-misc/dmenu/dmenu-4.7.ebuild +++ b/x11-misc/dmenu/dmenu-4.7-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit toolchain-funcs +inherit savedconfig toolchain-funcs DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System" HOMEPAGE="https://tools.suckless.org/dmenu/" @@ -36,6 +36,8 @@ src_prepare() { -e 's|${CC} -o|$(CC) $(CFLAGS) -o|g' \ -e '/^ echo/d' \ Makefile || die + + restore_config config.h } src_compile() { @@ -54,4 +56,6 @@ src_compile() { src_install() { emake DESTDIR="${D}" PREFIX="/usr" install + + save_config config.h }