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 1CE731382C5 for ; Wed, 3 Jun 2020 20:54:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BF67E0946; Wed, 3 Jun 2020 20:54:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 3855EE0946 for ; Wed, 3 Jun 2020 20:54:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 1C01634F13C for ; Wed, 3 Jun 2020 20:54:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFB6E279 for ; Wed, 3 Jun 2020 20:54:29 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1591217645.d6a49de56b25c8e4980690704a1df9cee20675ca.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/i2bits/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/i2bits/i2bits-0.1.0.ebuild X-VCS-Directories: app-misc/i2bits/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: d6a49de56b25c8e4980690704a1df9cee20675ca X-VCS-Branch: master Date: Wed, 3 Jun 2020 20:54:29 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 18f6d56a-9dc3-4814-876b-33976c2ebf71 X-Archives-Hash: bbb0ad0420b5b868dc690ce2f827525e commit: d6a49de56b25c8e4980690704a1df9cee20675ca Author: Patrice Clement gentoo org> AuthorDate: Wed Jun 3 19:48:27 2020 +0000 Commit: Patrice Clement gentoo org> CommitDate: Wed Jun 3 20:54:05 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a49de5 app-misc/i2bits: honor CFLAGS. Closes: https://bugs.gentoo.org/722396 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrice Clement gentoo.org> app-misc/i2bits/i2bits-0.1.0.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app-misc/i2bits/i2bits-0.1.0.ebuild b/app-misc/i2bits/i2bits-0.1.0.ebuild index 4bb902c770b..e877529fb90 100644 --- a/app-misc/i2bits/i2bits-0.1.0.ebuild +++ b/app-misc/i2bits/i2bits-0.1.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit cmake-utils +inherit cmake-utils toolchain-funcs DESCRIPTION="Utility to convert hex or dec to binary format" HOMEPAGE="https://bitbucket.org/PascalRD/i2bits/" @@ -12,3 +12,11 @@ SRC_URI="http://unixdev.ru/src/${P}.tar.gz" LICENSE="WTFPL-2" SLOT="0" KEYWORDS="amd64 x86" + +src_prepare() { + sed -e "s/^set(CMAKE_C_FLAGS.*/set(CMAKE_C_FLAGS \"${CFLAGS}\")/" \ + -e "1s/^/project(${PN})\n/" \ + -i CMakeLists.txt || die "can't patch CMakeLists.txt" + + cmake-utils_src_prepare +}