Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/binclock/files/, app-misc/binclock/
Date: Sun, 31 Jul 2022 12:43:33
Message-Id: 1659271392.530d91bb46735077a1ec3847fb9c2ca374b1349e.soap@gentoo
1 commit: 530d91bb46735077a1ec3847fb9c2ca374b1349e
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 12:43:12 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 12:43:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=530d91bb
7
8 app-misc/binclock: update EAPI 6 -> 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 .../{binclock-1.5.ebuild => binclock-1.5-r1.ebuild} | 15 +++++----------
13 app-misc/binclock/files/binclock-1.5-Makefile.patch | 18 ++++++++++--------
14 2 files changed, 15 insertions(+), 18 deletions(-)
15
16 diff --git a/app-misc/binclock/binclock-1.5.ebuild b/app-misc/binclock/binclock-1.5-r1.ebuild
17 similarity index 64%
18 rename from app-misc/binclock/binclock-1.5.ebuild
19 rename to app-misc/binclock/binclock-1.5-r1.ebuild
20 index 733fc66c5a74..f609767f392a 100644
21 --- a/app-misc/binclock/binclock-1.5.ebuild
22 +++ b/app-misc/binclock/binclock-1.5-r1.ebuild
23 @@ -1,9 +1,9 @@
24 -# Copyright 1999-2021 Gentoo Authors
25 +# Copyright 1999-2022 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=6
29 +EAPI=8
30
31 -inherit flag-o-matic toolchain-funcs
32 +inherit toolchain-funcs
33
34 DESCRIPTION="Displays a binary clock in your terminal"
35 HOMEPAGE="http://www.ngolde.de/binclock/"
36 @@ -12,20 +12,15 @@ SRC_URI="http://www.ngolde.de/download/${P}.tar.gz"
37 LICENSE="GPL-2"
38 SLOT="0"
39 KEYWORDS="~alpha amd64 ~arm64 ~ia64 ~mips ppc ppc64 sparc x86"
40 -IUSE=""
41
42 -RDEPEND=""
43 -DEPEND=">=sys-apps/sed-4"
44 -
45 -PATCHES=( "${FILESDIR}/binclock-1.5-Makefile.patch" )
46 +PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
47
48 src_configure() {
49 - append-cflags -Wall -pedantic
50 tc-export CC
51 }
52
53 src_install() {
54 - dobin binclock
55 + dobin src/binclock
56 doman doc/binclock.1
57 dodoc CHANGELOG README binclockrc
58 }
59
60 diff --git a/app-misc/binclock/files/binclock-1.5-Makefile.patch b/app-misc/binclock/files/binclock-1.5-Makefile.patch
61 index 15a510186b55..21fcec8cc40d 100644
62 --- a/app-misc/binclock/files/binclock-1.5-Makefile.patch
63 +++ b/app-misc/binclock/files/binclock-1.5-Makefile.patch
64 @@ -1,22 +1,24 @@
65 ---- a/Makefile 2018-05-29 10:18:47.795059054 -0400
66 -+++ b/Makefile 2018-05-29 10:21:37.126740904 -0400
67 -@@ -18,8 +18,6 @@
68 +--- a/Makefile
69 ++++ b/Makefile
70 +@@ -18,18 +18,15 @@
71 # Boston, MA 02111-1307, USA
72 #
73
74 -CC = gcc
75 -CFLAGS = -O2 -Wall --pedantic
76 - BIN = binclock
77 +-BIN = binclock
78 ++CFLAGS += -Wall -pedantic
79 ++BIN = ./src/binclock
80 SRC = ./src/binclock.c
81 INSPATH = /usr/local/bin/
82 -@@ -28,8 +26,8 @@
83 + SOURCEPATH = ./
84 + MANPATH = /usr/man/man1/
85 CONF = /etc/
86
87 - all : $(MAINSRC)
88 +-all : $(MAINSRC)
89 - $(CC) $(CFLAGS) -o $(BIN) $(SRC)
90 - strip $(SOURCEPATH)$(BIN)
91 -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN) $(SRC)
92 -+ true $(SOURCEPATH)$(BIN)
93 ++all : $(BIN)
94
95 install :