commit:     e2dc58720ac8be82138b1e4d682399edf9d49ff7
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 30 15:52:43 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Oct 30 15:53:05 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2dc5872

x11-misc/dmenu: Add savedconfig support by Hadrien Lacour (bug #635820).

Package-Manager: Portage-2.3.13, Repoman-2.3.4

 x11-misc/dmenu/{dmenu-4.7.ebuild => dmenu-4.7-r1.ebuild} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 47042fad0e7..05dc375cb2b 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
 }

Reply via email to