x11-misc/dmenu: Add savedconfig support by Hadrien Lacour (bug #635820).
authorJeroen Roovers <jer@gentoo.org>
Mon, 30 Oct 2017 15:52:43 +0000 (16:52 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 30 Oct 2017 15:53:05 +0000 (16:53 +0100)
Package-Manager: Portage-2.3.13, Repoman-2.3.4

x11-misc/dmenu/dmenu-4.7-r1.ebuild [moved from x11-misc/dmenu/dmenu-4.7.ebuild with 93% similarity]

similarity index 93%
rename from x11-misc/dmenu/dmenu-4.7.ebuild
rename to x11-misc/dmenu/dmenu-4.7-r1.ebuild
index 47042fad0e71a5c55e9fac55fe96c30df313ca3b..05dc375cb2ba60b77b3e167eb0ce8b3d37f75c42 100644 (file)
@@ -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
 }