app-misc/cw: port to EAPI 7 (for now)

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-03 21:32:25 +00:00
parent 2ac69b19d7
commit b1fa39d563
5 changed files with 12 additions and 23 deletions

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EAPI=7
inherit eutils toolchain-funcs
inherit toolchain-funcs
DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands"
HOMEPAGE="http://cwrapper.sourceforge.net/"
@@ -12,15 +12,17 @@ SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
src_prepare() {
epatch \
"${FILESDIR}"/${PV}-ldflags.patch \
"${FILESDIR}"/${PV}-path.patch \
"${FILESDIR}"/${PV}-collision.patch \
"${FILESDIR}"/${PV}-format-security.patch
PATCHES=(
"${FILESDIR}"/${PV}-ldflags.patch
"${FILESDIR}"/${PV}-path.patch
"${FILESDIR}"/${PV}-collision.patch
"${FILESDIR}"/${PV}-format-security.patch
)
src_configure() {
tc-export CC
econf
}
src_compile() {

View File

@@ -1,5 +1,3 @@
diff --git a/src/cw.c b/src/cw.c
index d7b4875..a7811d8 100644
--- a/src/cw.c
+++ b/src/cw.c
@@ -1336,7 +1336,7 @@ unsigned char is_cwfile(char *file){
@@ -11,8 +9,6 @@ index d7b4875..a7811d8 100644
return(0);
}
/* sets left and right borders. */
diff --git a/src/cwu.c b/src/cwu.c
index 823618d..63f566b 100644
--- a/src/cwu.c
+++ b/src/cwu.c
@@ -37,12 +37,12 @@ signed int main(signed int argc,char **argv){

View File

@@ -1,8 +1,3 @@
src/cw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cw.c b/src/cw.c
index d7b4875..3ec1ac1 100644
--- a/src/cw.c
+++ b/src/cw.c
@@ -643,7 +643,7 @@ void sighandler(signed int sig){

View File

@@ -1,5 +1,3 @@
diff --git a/Makefile.in b/Makefile.in
index 9a6e4ec..e510493 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -19,11 +19,11 @@ all:

View File

@@ -1,5 +1,3 @@
diff --git a/bin/colorcfg b/bin/colorcfg
index cf73b50..3e78c73 100755
--- a/bin/colorcfg
+++ b/bin/colorcfg
@@ -10,13 +10,7 @@ echo "[ cw/color wrapper: user setup script. ]"