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