summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjan Adriaanse <arjan@adriaan.se>2020-05-04 04:38:13 +0200
committerMike Gilbert <floppym@gentoo.org>2020-05-04 23:06:09 -0400
commitb7994d5cdc2b80af2eb16799c020be54c26bef90 (patch)
treee2d1aac93f1d649c84dc1d41cee9c01bd1e33f92 /app-misc
parentdev-php/xdebug-client: drop old (diff)
downloadgentoo-b7994d5cdc2b80af2eb16799c020be54c26bef90.tar.gz
gentoo-b7994d5cdc2b80af2eb16799c020be54c26bef90.tar.bz2
gentoo-b7994d5cdc2b80af2eb16799c020be54c26bef90.zip
app-misc/gtypist: fix crash and upgrade EAPI
Closes: https://bugs.gentoo.org/698764 Signed-off-by: Arjan Adriaanse <arjan@adriaan.se> Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/15639
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/gtypist/files/gtypist-2.9.5-link-infow.patch15
-rw-r--r--app-misc/gtypist/gtypist-2.9.5-r1.ebuild (renamed from app-misc/gtypist/gtypist-2.9.5.ebuild)17
2 files changed, 28 insertions, 4 deletions
diff --git a/app-misc/gtypist/files/gtypist-2.9.5-link-infow.patch b/app-misc/gtypist/files/gtypist-2.9.5-link-infow.patch
new file mode 100644
index 000000000000..736a031aa41a
--- /dev/null
+++ b/app-misc/gtypist/files/gtypist-2.9.5-link-infow.patch
@@ -0,0 +1,15 @@
+diff --git a/configure.ac b/configure.ac
+index 8742d93..e350926 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,8 +56,8 @@ else
+ "further information. On Debian/Ubuntu you need to install libncursesw5-dev."
+ exit 1;
+ fi
+-AC_SEARCH_LIBS(cbreak, tinfo, [],
+- [AC_MSG_ERROR([Can't find cbreak() in -lncursesw or -ltinfo])])
++AC_SEARCH_LIBS(cbreak, tinfow, [],
++ [AC_MSG_ERROR([Can't find cbreak() in -lncursesw or -ltinfow])])
+
+
+ # iconv
diff --git a/app-misc/gtypist/gtypist-2.9.5.ebuild b/app-misc/gtypist/gtypist-2.9.5-r1.ebuild
index 0ecb2e7fd225..dc5ae156662e 100644
--- a/app-misc/gtypist/gtypist-2.9.5.ebuild
+++ b/app-misc/gtypist/gtypist-2.9.5-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils elisp-common
+EAPI=7
+inherit elisp-common autotools
DESCRIPTION="Universal typing tutor"
HOMEPAGE="https://www.gnu.org/software/gtypist/"
@@ -27,8 +27,17 @@ src_unpack() {
unpack ${P}.tar.xz
}
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+
+ # solution from https://bugs.gentoo.org/698764#c0
+ "${FILESDIR}"/${PN}-2.9.5-link-infow.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+ default
+
+ eaclocal && eautomake
}
src_configure() {