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 5C210138330 for ; Sat, 3 Sep 2016 14:01:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C825E0A40; Sat, 3 Sep 2016 14:01:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B92D8E0A40 for ; Sat, 3 Sep 2016 14:01:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5BB77340806 for ; Sat, 3 Sep 2016 14:01:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CE46246D for ; Sat, 3 Sep 2016 14:01:17 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1472911262.5917f76438cba881d0e8dbf8ccb1670b453ca0bb.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/capstone/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/capstone/capstone-3.0.4-r1.ebuild dev-libs/capstone/capstone-3.0.4-r2.ebuild X-VCS-Directories: dev-libs/capstone/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 5917f76438cba881d0e8dbf8ccb1670b453ca0bb X-VCS-Branch: master Date: Sat, 3 Sep 2016 14:01:17 +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: 4781eb8e-e447-41fe-adaa-b5aa1f81b0e9 X-Archives-Hash: 947f958f1358dcff1ed591a19b9b580d commit: 5917f76438cba881d0e8dbf8ccb1670b453ca0bb Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Sep 3 14:00:55 2016 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Sep 3 14:01:02 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5917f764 dev-libs/capstone: respect gentoo toolchain overrides, bug #592778 Respect AR, CC, CFLAGS, LDFLAGS, RANLIB, $libdir. Thanks to Mike Auty who provided an example fix. Reported-by: Mike Auty Bug: https://bugs.gentoo.org/592778 Package-Manager: portage-2.3.0 ...ne-3.0.4-r1.ebuild => capstone-3.0.4-r2.ebuild} | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dev-libs/capstone/capstone-3.0.4-r1.ebuild b/dev-libs/capstone/capstone-3.0.4-r2.ebuild similarity index 55% rename from dev-libs/capstone/capstone-3.0.4-r1.ebuild rename to dev-libs/capstone/capstone-3.0.4-r2.ebuild index 018e9db..41855d1 100644 --- a/dev-libs/capstone/capstone-3.0.4-r1.ebuild +++ b/dev-libs/capstone/capstone-3.0.4-r2.ebuild @@ -4,6 +4,8 @@ EAPI=6 +inherit toolchain-funcs + DESCRIPTION="disassembly/disassembler framework + bindings" HOMEPAGE="http://www.capstone-engine.org/" SRC_URI="https://github.com/aquynh/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" @@ -14,3 +16,23 @@ KEYWORDS="~amd64 ~x86" RDEPEND="" DEPEND="${RDEPEND}" + +src_configure() { + { + cat <<-EOF + # Gentoo overrides: + # verbose build + V = 1 + # toolchain + AR = $(tc-getAR) + CC = $(tc-getCC) + RANLIB = $(tc-getRANLIB) + # toolchain flags + CFLAGS = ${CFLAGS} + LDFLAGS = ${LDFLAGS} + # libs + LIBDIRARCH = $(get_libdir) + EOF + } >> config.mk || die + +}