diff options
author | Thomas Bracht Laumann Jespersen <t@laumann.xyz> | 2022-02-03 21:48:44 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-20 00:29:50 +0000 |
commit | 91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7 (patch) | |
tree | 9cd7160f901d062505402d55c89c74287195de68 /dev-util | |
parent | sys-libs/musl: Support Gentoo prefix (diff) | |
download | gentoo-91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7.tar.gz gentoo-91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7.tar.bz2 gentoo-91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7.zip |
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 <t@laumann.xyz>
Closes: https://bugs.gentoo.org/724268
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/its4/its4-1.1.1-r2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
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" +} |