1 |
commit: 87d997b2911320d50eefb69f1a8e2b67b71a8f30 |
2 |
Author: Jens Lindenmeier <gentoo <AT> lindenmeier <DOT> com> |
3 |
AuthorDate: Wed Nov 22 19:47:35 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 22 22:00:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d997b2 |
7 |
|
8 |
dev-util/cppcheck: 1.81 version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/627380 |
11 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
12 |
|
13 |
dev-util/cppcheck/Manifest | 1 + |
14 |
dev-util/cppcheck/cppcheck-1.81.ebuild | 100 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 101 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest |
18 |
index f4445de6e83..7eebd8df022 100644 |
19 |
--- a/dev-util/cppcheck/Manifest |
20 |
+++ b/dev-util/cppcheck/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST cppcheck-1.77.tar.bz2 1188453 SHA256 1980ffe5c9c24bb6dea24514d42be3aa49d6ba7cc26c448b3543611fe8ba2619 SHA512 df8dddf7758c342d45b3393246e07eaa11a53dca19e8a0d09de04f12ea6232538941328d9ca9ac52eb425871fd1c49d55c77e6e38b40772b6f856fd1e9e99779 WHIRLPOOL 9f7842eba0f53a999993dbd23d09c10e5bd3dcca5ecbb0689e4ded8c7529d84fd939a57ce9cd267cdd21b2d79aeb6c07d672983ccb52be0fcc0b28ca80a31b59 |
23 |
DIST cppcheck-1.78.tar.bz2 1201959 SHA256 e42696f7d6321b98cb479ad9728d051effe543b26aca8102428f60b9850786b1 SHA512 598556e9d657a3a77ff889cb6647291160017f7f9322326771416ff59d44126ce47c39767657b863cdb8a1b46d7c83bb337ec2fe0574500b37e99c33377b5dd8 WHIRLPOOL 2087ad837353d01bca828af940c427909a3e556e97e46d1822e0f2f527619c87b15d1a7f647992dd46eb3a2ef1eb4fb86344db31d7a01fb6f8a9070dfeecef96 |
24 |
DIST cppcheck-1.79.tar.bz2 1206623 SHA256 2b85b693de54f15048f1841e7aef74574f99da6270d2182baba78514fa27f06d SHA512 766649b685d60b057752a49eda46f5bb42681c01c32169e83f85ea6f5d3302b572a2d484c1cee1380fd304489d5a32f83eb59a72ceefb1b787031e84bf3a2676 WHIRLPOOL dee33b68c8b924a68b90cbabcd9da6489003fb9f4fc0e2f5d411c82404c666b0c034ca33cc8e4043e4b1d18622158d1dd3de3b8ebd83d52ee01cd3513a39ad26 |
25 |
+DIST cppcheck-1.81.tar.bz2 1514741 BLAKE2B 2f23dfe4bdb26e203411f0bf9bc569303a4d59f96911b32a8a5f9cc9a6a7fa75e5d87c328cb0bf8cc46bd8f38747a4663c33243b8385355cc5630e1fcf6c891f SHA512 22e7b63c35e71b2784065faca06aec8c286e3173f182ac10995073cc3d61fd0bfaf353c51ad9207d3bd2c6134ab1a3990a37668709505b657c2816d561f8af92 |
26 |
|
27 |
diff --git a/dev-util/cppcheck/cppcheck-1.81.ebuild b/dev-util/cppcheck/cppcheck-1.81.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..2cc7f0445c1 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/cppcheck/cppcheck-1.81.ebuild |
32 |
@@ -0,0 +1,100 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
39 |
+ |
40 |
+inherit distutils-r1 eutils flag-o-matic qmake-utils toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="static analyzer of C/C++ code" |
43 |
+HOMEPAGE="http://cppcheck.sourceforge.net" |
44 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86" |
49 |
+IUSE="htmlreport pcre qt5" |
50 |
+ |
51 |
+RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] ) |
52 |
+ >=dev-libs/tinyxml2-2 |
53 |
+ qt5? ( dev-qt/qtgui:5 ) |
54 |
+ pcre? ( dev-libs/libpcre )" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ app-text/docbook-xsl-stylesheets |
57 |
+ dev-libs/libxslt |
58 |
+ virtual/pkgconfig" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ append-cxxflags -std=c++0x |
62 |
+ |
63 |
+ # Drop bundled libs, patch Makefile generator and re-run it |
64 |
+ rm -r externals/tinyxml || die |
65 |
+ epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch |
66 |
+ tc-export CXX |
67 |
+ emake dmake |
68 |
+ ./dmake || die |
69 |
+ |
70 |
+ default |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ if use pcre ; then |
75 |
+ sed -e '/HAVE_RULES=/s:=no:=yes:' \ |
76 |
+ -i Makefile |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ export LIBS="$(pkg-config --libs tinyxml2)" |
82 |
+ emake ${PN} man \ |
83 |
+ CFGDIR="${EROOT}usr/share/${PN}/cfg" \ |
84 |
+ DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" |
85 |
+ |
86 |
+ if use qt5 ; then |
87 |
+ pushd gui |
88 |
+ eqmake5 |
89 |
+ emake |
90 |
+ popd |
91 |
+ fi |
92 |
+ if use htmlreport ; then |
93 |
+ pushd htmlreport |
94 |
+ distutils-r1_src_compile |
95 |
+ popd |
96 |
+ fi |
97 |
+} |
98 |
+ |
99 |
+src_test() { |
100 |
+ # safe final version |
101 |
+ mv -v ${PN}{,.final} |
102 |
+ mv -v lib/library.o{,.final} |
103 |
+ mv -v cli/cppcheckexecutor.o{,.final} |
104 |
+ #trigger recompile with CFGDIR inside ${S} |
105 |
+ emake check CFGDIR="${S}/cfg" |
106 |
+ # restore |
107 |
+ mv -v ${PN}{.final,} |
108 |
+ mv -v lib/library.o{.final,} |
109 |
+ mv -v cli/cppcheckexecutor.o{.final,} |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760 |
114 |
+ emake install DESTDIR="${ED}" |
115 |
+ |
116 |
+ insinto "/usr/share/${PN}/cfg" |
117 |
+ doins cfg/*.cfg |
118 |
+ if use qt5 ; then |
119 |
+ dobin gui/${PN}-gui |
120 |
+ dodoc gui/{projectfile.txt,gui.${PN}} |
121 |
+ fi |
122 |
+ if use htmlreport ; then |
123 |
+ pushd htmlreport |
124 |
+ distutils-r1_src_install |
125 |
+ popd |
126 |
+ find "${D}" -name "*.egg-info" -delete |
127 |
+ else |
128 |
+ rm "${ED}/usr/bin/cppcheck-htmlreport" || die |
129 |
+ fi |
130 |
+ doman ${PN}.1 |
131 |
+ dodoc -r triage |
132 |
+} |