Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/its4/
Date: Sun, 20 Feb 2022 00:31:39
Message-Id: 1645316990.91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7.sam@gentoo
1 commit: 91d6e8e1eb1da9c52e9023c3889d67a4a687a7b7
2 Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
3 AuthorDate: Thu Feb 3 20:48:44 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 00:29:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91d6e8e1
7
8 dev-util/its4: Avoid calling g++ directly
9
10 This revbump accomplishes two things:
11
12 * Bump EAPI=8 from 5. The biggest change is adding eapply_user in
13 src_prepare()
14
15 * Use --with-cpp argument for call to ./configure, so the script
16 doesn't try to find a compiler
17
18 Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
19 Closes: https://bugs.gentoo.org/724268
20 Package-Manager: Portage-3.0.30, Repoman-3.0.3
21 Signed-off-by: Sam James <sam <AT> gentoo.org>
22
23 dev-util/its4/its4-1.1.1-r2.ebuild | 43 ++++++++++++++++++++++++++++++++++++++
24 1 file changed, 43 insertions(+)
25
26 diff --git a/dev-util/its4/its4-1.1.1-r2.ebuild b/dev-util/its4/its4-1.1.1-r2.ebuild
27 new file mode 100644
28 index 000000000000..5bb0c4ed44fc
29 --- /dev/null
30 +++ b/dev-util/its4/its4-1.1.1-r2.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit toolchain-funcs
38 +
39 +DESCRIPTION="ITS4: Software Security Tool"
40 +HOMEPAGE="http://www.cigital.com/its4/"
41 +SRC_URI="https://dev.gentoo.org/~robbat2/distfiles/${P}.tgz"
42 +
43 +LICENSE="ITS4"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~x86"
46 +
47 +S="${WORKDIR}/${PN}"
48 +
49 +src_prepare() {
50 + sed -i \
51 + -e 's,iostream.h,iostream,g'\
52 + "${S}"/configure || die
53 + sed -i \
54 + -e 's/$(CC) -o/$(CC) $(OPTIMIZATION) $(EXTRA_FLAGS) -o/' \
55 + "${S}"/Makefile.in || die
56 + eapply_user
57 +}
58 +
59 +src_configure() {
60 + # WARNING
61 + # non-standard configure
62 + # do NOT use econf
63 + ./configure --with-cpp=$(tc-getCXX) --prefix=/usr --mandir=/usr/share/man --datadir=/usr/share/its4 || die "configure failed"
64 +}
65 +
66 +src_compile() {
67 + emake CC="$(tc-getCXX)" OPTIMIZATION="${CXXFLAGS}" EXTRA_FLAGS="${LDFLAGS}"
68 +}
69 +
70 +src_install() {
71 + # WARNING
72 + # non-standard, do NOT use einstall or 'make install DESTDIR=...'
73 + make install INSTALL_BINDIR="${D}/usr/bin" INSTALL_MANDIR="${D}/usr/share/man" INSTALL_DATADIR="${D}/usr/share/its4" || die "install failed"
74 +}