Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/smatch/
Date: Fri, 18 Jan 2019 08:14:14
Message-Id: 1547799241.04421c9cd3e428422bec7916457c4bd3e9607e41.slyfox@gentoo
1 commit: 04421c9cd3e428422bec7916457c4bd3e9607e41
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 18 08:13:17 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 18 08:14:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04421c9c
7
8 sys-devel/smatch: bump up to 1.60
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-devel/smatch/Manifest | 1 +
14 sys-devel/smatch/smatch-1.60.ebuild | 66 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 67 insertions(+)
16
17 diff --git a/sys-devel/smatch/Manifest b/sys-devel/smatch/Manifest
18 index 68f734a52dd..fae3e61cc1f 100644
19 --- a/sys-devel/smatch/Manifest
20 +++ b/sys-devel/smatch/Manifest
21 @@ -1,2 +1,3 @@
22 DIST smatch-1.57.tar.gz 491677 BLAKE2B 150ba84dc797497b2522d28b443a89fbec221a00fcade85014d434f675ec60908a473770c695dbf65a5ed273c3e665aa9dc4ec9a91bc071651388a9ec90f1bfa SHA512 031f417c97d58b617b2e375a28f509f71eb2735212a98aee0e21880a28842078ad3c24b5375a03f73d75fec582a9d187ed6a00a0512c4792e5ffce82dfd79b99
23 DIST smatch-1.59.tar.gz 495530 BLAKE2B 668a050e229cd9b4e5881fe059f5a8654164f5a155c471559ce7a82e66bcb2170f89a25680be7ff867f2765b574f363ef95a15a65ca98d47dbd8aed20f588f9a SHA512 5e18f48dbbe11255a06b427205aefd1f8f5a11bb0b238f9134b89e6f5cb838fcae649a4e87a4a04473a33077c94e88aab46b06e33cc87cfe451fa83b5846ccc7
24 +DIST smatch-1.60.tar.gz 558479 BLAKE2B d5e564c32e33dc38847f9a258b4b47285f190652181db9b8850c832c0cf4d8a3302d989a7b42592e73a713927a29565565e83a9be1b0a5c9d10869fce278a0be SHA512 2920c9d4c500db36cfa60db5be70d157ed16abd729279462faef6f79e0756bd017ec91b8f857d19fdebd8a9d709b0555635700a2864cf0a84daa61cf2ca3eecd
25
26 diff --git a/sys-devel/smatch/smatch-1.60.ebuild b/sys-devel/smatch/smatch-1.60.ebuild
27 new file mode 100644
28 index 00000000000..ad8cb599056
29 --- /dev/null
30 +++ b/sys-devel/smatch/smatch-1.60.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit toolchain-funcs
38 +if [[ ${PV} == "9999" ]] ; then
39 + EGIT_REPO_URI="git://repo.or.cz/${PN}.git
40 + http://repo.or.cz/r/${PN}.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="http://repo.or.cz/w/smatch.git/snapshot/${PV}.tar.gz -> ${P}.tar.gz
44 + mirror://gentoo/${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
46 + S=${WORKDIR}/${PN}
47 +fi
48 +
49 +DESCRIPTION="static analysis tool for C"
50 +HOMEPAGE="http://smatch.sourceforge.net/"
51 +
52 +LICENSE="OSL-1.1"
53 +SLOT="0"
54 +IUSE=""
55 +
56 +RDEPEND="dev-db/sqlite"
57 +DEPEND="${RDEPEND}"
58 +
59 +S=${WORKDIR}/${P}-7a4fdad
60 +
61 +src_prepare() {
62 + default
63 +
64 + sed -i \
65 + -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
66 + Makefile || die
67 +}
68 +
69 +_emake() {
70 + # gtk/llvm/xml is used by sparse which we don't install
71 + emake \
72 + PREFIX="${EPREFIX}/usr" \
73 + V=1 \
74 + AR="$(tc-getAR)" \
75 + CC="$(tc-getCC)" \
76 + LD='$(CC)' \
77 + HAVE_GTK2=no \
78 + HAVE_LLVM=no \
79 + HAVE_LIBXML=no \
80 + "$@"
81 +}
82 +
83 +src_compile() {
84 + _emake smatch
85 +}
86 +
87 +src_test() {
88 + _emake check
89 +}
90 +
91 +src_install() {
92 + # default install target installs a lot of sparse cruft
93 + dobin smatch
94 + insinto /usr/share/smatch/smatch_data
95 + doins smatch_data/*
96 + dodoc FAQ README
97 +}