From 530d91bb46735077a1ec3847fb9c2ca374b1349e Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 31 Jul 2022 14:43:12 +0200 Subject: app-misc/binclock: update EAPI 6 -> 8 Signed-off-by: David Seifert --- app-misc/binclock/binclock-1.5-r1.ebuild | 26 ++++++++++++++++++ app-misc/binclock/binclock-1.5.ebuild | 31 ---------------------- .../binclock/files/binclock-1.5-Makefile.patch | 18 +++++++------ 3 files changed, 36 insertions(+), 39 deletions(-) create mode 100644 app-misc/binclock/binclock-1.5-r1.ebuild delete mode 100644 app-misc/binclock/binclock-1.5.ebuild diff --git a/app-misc/binclock/binclock-1.5-r1.ebuild b/app-misc/binclock/binclock-1.5-r1.ebuild new file mode 100644 index 000000000000..f609767f392a --- /dev/null +++ b/app-misc/binclock/binclock-1.5-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Displays a binary clock in your terminal" +HOMEPAGE="http://www.ngolde.de/binclock/" +SRC_URI="http://www.ngolde.de/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm64 ~ia64 ~mips ppc ppc64 sparc x86" + +PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) + +src_configure() { + tc-export CC +} + +src_install() { + dobin src/binclock + doman doc/binclock.1 + dodoc CHANGELOG README binclockrc +} diff --git a/app-misc/binclock/binclock-1.5.ebuild b/app-misc/binclock/binclock-1.5.ebuild deleted file mode 100644 index 733fc66c5a74..000000000000 --- a/app-misc/binclock/binclock-1.5.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit flag-o-matic toolchain-funcs - -DESCRIPTION="Displays a binary clock in your terminal" -HOMEPAGE="http://www.ngolde.de/binclock/" -SRC_URI="http://www.ngolde.de/download/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm64 ~ia64 ~mips ppc ppc64 sparc x86" -IUSE="" - -RDEPEND="" -DEPEND=">=sys-apps/sed-4" - -PATCHES=( "${FILESDIR}/binclock-1.5-Makefile.patch" ) - -src_configure() { - append-cflags -Wall -pedantic - tc-export CC -} - -src_install() { - dobin binclock - doman doc/binclock.1 - dodoc CHANGELOG README binclockrc -} diff --git a/app-misc/binclock/files/binclock-1.5-Makefile.patch b/app-misc/binclock/files/binclock-1.5-Makefile.patch index 15a510186b55..21fcec8cc40d 100644 --- a/app-misc/binclock/files/binclock-1.5-Makefile.patch +++ b/app-misc/binclock/files/binclock-1.5-Makefile.patch @@ -1,22 +1,24 @@ ---- a/Makefile 2018-05-29 10:18:47.795059054 -0400 -+++ b/Makefile 2018-05-29 10:21:37.126740904 -0400 -@@ -18,8 +18,6 @@ +--- a/Makefile ++++ b/Makefile +@@ -18,18 +18,15 @@ # Boston, MA 02111-1307, USA # -CC = gcc -CFLAGS = -O2 -Wall --pedantic - BIN = binclock +-BIN = binclock ++CFLAGS += -Wall -pedantic ++BIN = ./src/binclock SRC = ./src/binclock.c INSPATH = /usr/local/bin/ -@@ -28,8 +26,8 @@ + SOURCEPATH = ./ + MANPATH = /usr/man/man1/ CONF = /etc/ - all : $(MAINSRC) +-all : $(MAINSRC) - $(CC) $(CFLAGS) -o $(BIN) $(SRC) - strip $(SOURCEPATH)$(BIN) -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN) $(SRC) -+ true $(SOURCEPATH)$(BIN) ++all : $(BIN) install : -- cgit v1.2.3-65-gdbad