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.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 EB33415808C for ; Sun, 20 Feb 2022 00:31:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41089E07F1; Sun, 20 Feb 2022 00:31:39 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 256BBE07FE for ; Sun, 20 Feb 2022 00:31:39 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4F451342E7B for ; Sun, 20 Feb 2022 00:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2944D2F5 for ; Sun, 20 Feb 2022 00:31:35 +0000 (UTC) From: "Sam James" 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" Message-ID: <1645316990.91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/its4/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/its4/its4-1.1.1-r2.ebuild X-VCS-Directories: dev-util/its4/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7 X-VCS-Branch: master Date: Sun, 20 Feb 2022 00:31:35 +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: 584451fd-3240-4062-bce3-5e25859be383 X-Archives-Hash: 5595aeef247692453cd68ead579a02f6 commit: 91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7 Author: Thomas Bracht Laumann Jespersen laumann xyz> AuthorDate: Thu Feb 3 20:48:44 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 20 00:29:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91d6e8e1 dev-util/its4: Avoid calling g++ directly This revbump accomplishes two things: * Bump EAPI=8 from 5. The biggest change is adding eapply_user in src_prepare() * Use --with-cpp argument for call to ./configure, so the script doesn't try to find a compiler Signed-off-by: Thomas Bracht Laumann Jespersen laumann.xyz> Closes: https://bugs.gentoo.org/724268 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Sam James gentoo.org> dev-util/its4/its4-1.1.1-r2.ebuild | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-util/its4/its4-1.1.1-r2.ebuild b/dev-util/its4/its4-1.1.1-r2.ebuild new file mode 100644 index 000000000000..5bb0c4ed44fc --- /dev/null +++ b/dev-util/its4/its4-1.1.1-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="ITS4: Software Security Tool" +HOMEPAGE="http://www.cigital.com/its4/" +SRC_URI="https://dev.gentoo.org/~robbat2/distfiles/${P}.tgz" + +LICENSE="ITS4" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +S="${WORKDIR}/${PN}" + +src_prepare() { + sed -i \ + -e 's,iostream.h,iostream,g'\ + "${S}"/configure || die + sed -i \ + -e 's/$(CC) -o/$(CC) $(OPTIMIZATION) $(EXTRA_FLAGS) -o/' \ + "${S}"/Makefile.in || die + eapply_user +} + +src_configure() { + # WARNING + # non-standard configure + # do NOT use econf + ./configure --with-cpp=$(tc-getCXX) --prefix=/usr --mandir=/usr/share/man --datadir=/usr/share/its4 || die "configure failed" +} + +src_compile() { + emake CC="$(tc-getCXX)" OPTIMIZATION="${CXXFLAGS}" EXTRA_FLAGS="${LDFLAGS}" +} + +src_install() { + # WARNING + # non-standard, do NOT use einstall or 'make install DESTDIR=...' + make install INSTALL_BINDIR="${D}/usr/bin" INSTALL_MANDIR="${D}/usr/share/man" INSTALL_DATADIR="${D}/usr/share/its4" || die "install failed" +}