mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-misc/cw: port to EAPI 7 (for now)
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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. ]"
|
||||
|
||||
Reference in New Issue
Block a user