From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1555471-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5AEC9158089
	for <garchives@archives.gentoo.org>; Mon, 18 Sep 2023 09:01:55 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9E44B2BC038;
	Mon, 18 Sep 2023 09:01:54 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 855E42BC038
	for <gentoo-commits@lists.gentoo.org>; Mon, 18 Sep 2023 09:01:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 845E7335CB7
	for <gentoo-commits@lists.gentoo.org>; Mon, 18 Sep 2023 09:01:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D2A8411D8
	for <gentoo-commits@lists.gentoo.org>; Mon, 18 Sep 2023 09:01:51 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1695027560.bec0e5ce38d99d789194d7b14aadf9d0e074caca.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/beep/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-misc/beep/beep-1.4.12.ebuild
X-VCS-Directories: app-misc/beep/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: bec0e5ce38d99d789194d7b14aadf9d0e074caca
X-VCS-Branch: master
Date: Mon, 18 Sep 2023 09:01:51 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b2be271d-7f89-4c3a-a203-a600ae87c386
X-Archives-Hash: e12d692ed0715916273fe01932d4e297

commit:     bec0e5ce38d99d789194d7b14aadf9d0e074caca
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 18 08:59:10 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 18 08:59:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bec0e5ce

app-misc/beep: respect CC/*FLAGS

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/beep/beep-1.4.12.ebuild | 33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)

diff --git a/app-misc/beep/beep-1.4.12.ebuild b/app-misc/beep/beep-1.4.12.ebuild
index 921d9410df5d..b05797a15faf 100644
--- a/app-misc/beep/beep-1.4.12.ebuild
+++ b/app-misc/beep/beep-1.4.12.ebuild
@@ -19,28 +19,17 @@ RESTRICT="test"
 src_prepare() {
 	default
 
-	sed -i -e "s#-D_FORTIFY_SOURCE=2##g;" GNUmakefile || die
-}
-
-src_compile() {
-	emake \
-		COMPILERS=gcc \
-		COMPILER_gcc="$(tc-getCC)" \
-		LINKER_gcc="$(tc-getCC)" \
-		CFLAGS_gcc="${CFLAGS}" \
-		LDFLAGS="${LDFLAGS}" \
-		CPPFLAGS_gcc="" \
-		all
-}
-
-src_test() {
-	emake \
-		COMPILERS=gcc \
-		COMPILER_gcc="$(tc-getCC)" \
-		LINKER_gcc="$(tc-getCC)" \
-		CFLAGS_gcc="${CFLAGS}" \
-		LDFLAGS="${LDFLAGS}" \
-		check
+	cat <<-EOF > local.mk || die
+	CC=$(tc-getCC)
+	CFLAGS=${CFLAGS}
+	CPPFLAGS=${CPPFLAGS}
+	LDFLAGS=${LDFLAGS}
+	EOF
+
+	sed -i \
+		-e "s#-D_FORTIFY_SOURCE=2##g;" \
+		-e '/\-Werror)/d' \
+		GNUmakefile || die
 }
 
 src_install() {