From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97BE8138330 for ; Tue, 29 May 2018 20:10:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABB53E07FA; Tue, 29 May 2018 20:10:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7DA7FE07FA for ; Tue, 29 May 2018 20:10:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE170335C71 for ; Tue, 29 May 2018 20:10:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FE4E2A9 for ; Tue, 29 May 2018 20:10:34 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1527624606.7634da65f4c569a4f2f4dcc63cb9ab39132b585e.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/binclock/files/, app-misc/binclock/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/binclock/binclock-1.5.ebuild app-misc/binclock/files/binclock-1.5-Makefile.patch X-VCS-Directories: app-misc/binclock/ app-misc/binclock/files/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 7634da65f4c569a4f2f4dcc63cb9ab39132b585e X-VCS-Branch: master Date: Tue, 29 May 2018 20:10:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c848128a-759e-41bc-8a6f-d47933190c2a X-Archives-Hash: b5299a0f7885f6b0f896a3ef6c9b8d71 commit: 7634da65f4c569a4f2f4dcc63cb9ab39132b585e Author: Aaron Bauman gentoo org> AuthorDate: Tue May 29 14:29:57 2018 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Tue May 29 20:10:06 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7634da65 app-misc/binclock: bump EAPI and drop eutils This also moves the sed call to a patch for the Makefile. Package-Manager: Portage-2.3.40, Repoman-2.3.9 app-misc/binclock/binclock-1.5.ebuild | 21 ++++++++++----------- .../binclock/files/binclock-1.5-Makefile.patch | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/app-misc/binclock/binclock-1.5.ebuild b/app-misc/binclock/binclock-1.5.ebuild index 3e80505179b..0c4db18b0aa 100644 --- a/app-misc/binclock/binclock-1.5.ebuild +++ b/app-misc/binclock/binclock-1.5.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="2" +EAPI=6 -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs DESCRIPTION="Displays a binary clock in your terminal" HOMEPAGE="http://www.ngolde.de/binclock/" @@ -17,16 +17,15 @@ IUSE="" RDEPEND="" DEPEND=">=sys-apps/sed-4" -src_prepare() { - sed -i -e s/strip/true/ Makefile || die -} +PATCHES=( "${FILESDIR}/binclock-1.5-Makefile.patch" ) -src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" || die "emake failed" +src_configure() { + append-cflags -Wall -pedantic + tc-export CC } src_install() { - dobin binclock || die "dobin failed" - doman doc/binclock.1 || die "doman failed" - dodoc CHANGELOG README binclockrc || die "dodoc failed" + 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 new file mode 100644 index 00000000000..15a510186b5 --- /dev/null +++ b/app-misc/binclock/files/binclock-1.5-Makefile.patch @@ -0,0 +1,22 @@ +--- a/Makefile 2018-05-29 10:18:47.795059054 -0400 ++++ b/Makefile 2018-05-29 10:21:37.126740904 -0400 +@@ -18,8 +18,6 @@ + # Boston, MA 02111-1307, USA + # + +-CC = gcc +-CFLAGS = -O2 -Wall --pedantic + BIN = binclock + SRC = ./src/binclock.c + INSPATH = /usr/local/bin/ +@@ -28,8 +26,8 @@ + CONF = /etc/ + + all : $(MAINSRC) +- $(CC) $(CFLAGS) -o $(BIN) $(SRC) +- strip $(SOURCEPATH)$(BIN) ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN) $(SRC) ++ true $(SOURCEPATH)$(BIN) + + install : +