commit:     f1a0c0999145e288fa5a3e2fc3ca5f080c547437
Author:     Ionen Wolkens <sudinave <AT> gmail <DOT> com>
AuthorDate: Thu Feb 25 09:14:55 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 09:14:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a0c099

x11-misc/numlockx: EAPI-7 bump + respect LDFLAGS

LDFLAGS were used for building but not the -lXext/Xtst configure tests.

Also removed HOMEPAGE, upstream doesn't seem to exist anymore.

Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 x11-misc/numlockx/numlockx-1.2.ebuild | 30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

diff --git a/x11-misc/numlockx/numlockx-1.2.ebuild 
b/x11-misc/numlockx/numlockx-1.2.ebuild
index bd6dcd1d7a2..5d4050ff9f5 100644
--- a/x11-misc/numlockx/numlockx-1.2.ebuild
+++ b/x11-misc/numlockx/numlockx-1.2.ebuild
@@ -1,38 +1,34 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
+
 inherit autotools
 
-DESCRIPTION="Turns on numlock in X"
-HOMEPAGE="https://home.kde.org/~seli/numlockx/";
+DESCRIPTION="Changes keyboard's numlock state under X"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
 SRC_URI="mirror://gentoo/${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ppc ppc64 sparc x86"
-IUSE=""
 
 RDEPEND="
        x11-libs/libX11
        x11-libs/libXext
-       x11-libs/libXtst
-"
+       x11-libs/libXtst"
 DEPEND="
        ${RDEPEND}
-       x11-base/xorg-proto
-"
+       x11-base/xorg-proto"
 
 src_prepare() {
-       sed -i \
-               -e '/^K_.*$/d' \
-               -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
-               configure.in || die
-       sed -i -e 's,@X_[_A-Z]\+@,,g' Makefile.am || die
+       default
+       mv configure.{in,ac} || die
+       sed -i '/^K_/d; s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || 
die
+       sed -i 's/@X_.*@//g' Makefile.am || die
        eautoreconf
 }
 
-src_install() {
-       dobin ${PN}
-       dodoc AUTHORS README
+src_configure() {
+       econf X_LDFLAGS="${LDFLAGS}"
 }

Reply via email to