1 |
commit: 77f63475d8ab174a29107809ac1be1203717333c |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 17 22:34:02 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 17 22:34:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77f63475 |
7 |
|
8 |
dev-util/cppcheck: Remove old versions. |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-util/cppcheck/Manifest | 2 - |
13 |
dev-util/cppcheck/cppcheck-1.72.ebuild | 105 --------------------- |
14 |
dev-util/cppcheck/cppcheck-1.75.ebuild | 104 -------------------- |
15 |
.../cppcheck/files/cppcheck-1.72-tinyxml2.patch | 66 ------------- |
16 |
4 files changed, 277 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest |
19 |
index 3d83dd57558..32c7ec74e29 100644 |
20 |
--- a/dev-util/cppcheck/Manifest |
21 |
+++ b/dev-util/cppcheck/Manifest |
22 |
@@ -1,4 +1,2 @@ |
23 |
-DIST cppcheck-1.72.tar.bz2 1125775 SHA256 9460b184ff2d8dd15344f3e2f42f634c86e4dd3303e1e9b3f13dc67536aab420 SHA512 13b2348c97a3777feaad579f8620f18d90f6f934f92f5db712c7190af1f40042527500aefa4c8ccd348f7691b1c0d5f32115085c9385dec55460d5ba0804a410 WHIRLPOOL 790514f4b5b9c539a30daa691d268c6c5f1077743cde1af8834248eb4213224275e9f72cea46f3b378119a3d0944d7e8d63270c0cd47517c7f382c683a1938fe |
24 |
-DIST cppcheck-1.75.tar.bz2 1152511 SHA256 57c70043c1330ed915cbd1a17ecc5408f2637a05062970508e990b1ba28760a0 SHA512 74116a7a2cd1c8c9a06c81f3f4de3de281f24ee30692729de5506dc7572ed694e55c32d1ad72196a9b95005e9f8d749bd82655323f8ff56051997c2ffc4ed57f WHIRLPOOL a42979e35041d382b1df755b0cdfb4c51951388d2b097856fa08b3ca6b39bdd99a13809a8b514b1fc0502ac0183a08e0f1ed742100e38a14ee2f7337ddda1f01 |
25 |
DIST cppcheck-1.77.tar.bz2 1188453 SHA256 1980ffe5c9c24bb6dea24514d42be3aa49d6ba7cc26c448b3543611fe8ba2619 SHA512 df8dddf7758c342d45b3393246e07eaa11a53dca19e8a0d09de04f12ea6232538941328d9ca9ac52eb425871fd1c49d55c77e6e38b40772b6f856fd1e9e99779 WHIRLPOOL 9f7842eba0f53a999993dbd23d09c10e5bd3dcca5ecbb0689e4ded8c7529d84fd939a57ce9cd267cdd21b2d79aeb6c07d672983ccb52be0fcc0b28ca80a31b59 |
26 |
DIST cppcheck-1.78.tar.bz2 1201959 SHA256 e42696f7d6321b98cb479ad9728d051effe543b26aca8102428f60b9850786b1 SHA512 598556e9d657a3a77ff889cb6647291160017f7f9322326771416ff59d44126ce47c39767657b863cdb8a1b46d7c83bb337ec2fe0574500b37e99c33377b5dd8 WHIRLPOOL 2087ad837353d01bca828af940c427909a3e556e97e46d1822e0f2f527619c87b15d1a7f647992dd46eb3a2ef1eb4fb86344db31d7a01fb6f8a9070dfeecef96 |
27 |
|
28 |
diff --git a/dev-util/cppcheck/cppcheck-1.72.ebuild b/dev-util/cppcheck/cppcheck-1.72.ebuild |
29 |
deleted file mode 100644 |
30 |
index 0f4dcbf95d9..00000000000 |
31 |
--- a/dev-util/cppcheck/cppcheck-1.72.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,105 +0,0 @@ |
34 |
-# Copyright 1999-2015 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=5 |
38 |
- |
39 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
40 |
- |
41 |
-inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic |
42 |
- |
43 |
-DESCRIPTION="static analyzer of C/C++ code" |
44 |
-HOMEPAGE="http://cppcheck.sourceforge.net" |
45 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
46 |
- |
47 |
-LICENSE="GPL-3" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="amd64 ~arm x86" |
50 |
-IUSE="htmlreport pcre qt4" |
51 |
- |
52 |
-RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] ) |
53 |
- >=dev-libs/tinyxml2-2 |
54 |
- <dev-libs/tinyxml2-4 |
55 |
- qt4? ( dev-qt/qtgui:4 ) |
56 |
- pcre? ( dev-libs/libpcre )" |
57 |
-DEPEND="${RDEPEND} |
58 |
- app-text/docbook-xsl-stylesheets |
59 |
- dev-libs/libxslt |
60 |
- virtual/pkgconfig" |
61 |
- |
62 |
-src_prepare() { |
63 |
- append-cxxflags -std=c++0x |
64 |
- |
65 |
- # Drop bundled libs, patch Makefile generator and re-run it |
66 |
- rm -r externals || die |
67 |
- epatch "${FILESDIR}"/${PN}-1.72-tinyxml2.patch |
68 |
- tc-export CXX |
69 |
- emake dmake |
70 |
- ./dmake || die |
71 |
- |
72 |
- epatch_user |
73 |
-} |
74 |
- |
75 |
-src_configure() { |
76 |
- if use pcre ; then |
77 |
- sed -e '/HAVE_RULES=/s:=no:=yes:' \ |
78 |
- -i Makefile |
79 |
- fi |
80 |
- if use qt4 ; then |
81 |
- pushd gui |
82 |
- qt4-r2_src_configure |
83 |
- popd |
84 |
- fi |
85 |
-} |
86 |
- |
87 |
-src_compile() { |
88 |
- export LIBS="$(pkg-config --libs tinyxml2)" |
89 |
- emake ${PN} man \ |
90 |
- CFGDIR="${EROOT}usr/share/${PN}/cfg" \ |
91 |
- DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" |
92 |
- |
93 |
- if use qt4 ; then |
94 |
- pushd gui |
95 |
- qt4-r2_src_compile |
96 |
- popd |
97 |
- fi |
98 |
- if use htmlreport ; then |
99 |
- pushd htmlreport |
100 |
- distutils-r1_src_compile |
101 |
- popd |
102 |
- fi |
103 |
-} |
104 |
- |
105 |
-src_test() { |
106 |
- # safe final version |
107 |
- mv -v ${PN}{,.final} |
108 |
- mv -v lib/library.o{,.final} |
109 |
- mv -v cli/cppcheckexecutor.o{,.final} |
110 |
- #trigger recompile with CFGDIR inside ${S} |
111 |
- emake check CFGDIR="${S}/cfg" |
112 |
- # restore |
113 |
- mv -v ${PN}{.final,} |
114 |
- mv -v lib/library.o{.final,} |
115 |
- mv -v cli/cppcheckexecutor.o{.final,} |
116 |
-} |
117 |
- |
118 |
-src_install() { |
119 |
- # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760 |
120 |
- emake install DESTDIR="${ED}" |
121 |
- |
122 |
- insinto "/usr/share/${PN}/cfg" |
123 |
- doins cfg/*.cfg |
124 |
- if use qt4 ; then |
125 |
- dobin gui/${PN}-gui |
126 |
- dodoc gui/{projectfile.txt,gui.${PN}} |
127 |
- fi |
128 |
- if use htmlreport ; then |
129 |
- pushd htmlreport |
130 |
- distutils-r1_src_install |
131 |
- popd |
132 |
- find "${D}" -name "*.egg-info" -delete |
133 |
- else |
134 |
- rm "${ED}/usr/bin/cppcheck-htmlreport" || die |
135 |
- fi |
136 |
- doman ${PN}.1 |
137 |
- dodoc -r triage |
138 |
-} |
139 |
|
140 |
diff --git a/dev-util/cppcheck/cppcheck-1.75.ebuild b/dev-util/cppcheck/cppcheck-1.75.ebuild |
141 |
deleted file mode 100644 |
142 |
index ab82e77f822..00000000000 |
143 |
--- a/dev-util/cppcheck/cppcheck-1.75.ebuild |
144 |
+++ /dev/null |
145 |
@@ -1,104 +0,0 @@ |
146 |
-# Copyright 1999-2016 Gentoo Foundation |
147 |
-# Distributed under the terms of the GNU General Public License v2 |
148 |
- |
149 |
-EAPI=5 |
150 |
- |
151 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
152 |
- |
153 |
-inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic |
154 |
- |
155 |
-DESCRIPTION="static analyzer of C/C++ code" |
156 |
-HOMEPAGE="http://cppcheck.sourceforge.net" |
157 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
158 |
- |
159 |
-LICENSE="GPL-3" |
160 |
-SLOT="0" |
161 |
-KEYWORDS="~amd64 ~arm ~x86" |
162 |
-IUSE="htmlreport pcre qt4" |
163 |
- |
164 |
-RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] ) |
165 |
- >=dev-libs/tinyxml2-2 |
166 |
- qt4? ( dev-qt/qtgui:4 ) |
167 |
- pcre? ( dev-libs/libpcre )" |
168 |
-DEPEND="${RDEPEND} |
169 |
- app-text/docbook-xsl-stylesheets |
170 |
- dev-libs/libxslt |
171 |
- virtual/pkgconfig" |
172 |
- |
173 |
-src_prepare() { |
174 |
- append-cxxflags -std=c++0x |
175 |
- |
176 |
- # Drop bundled libs, patch Makefile generator and re-run it |
177 |
- rm -r externals/tinyxml || die |
178 |
- epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch |
179 |
- tc-export CXX |
180 |
- emake dmake |
181 |
- ./dmake || die |
182 |
- |
183 |
- epatch_user |
184 |
-} |
185 |
- |
186 |
-src_configure() { |
187 |
- if use pcre ; then |
188 |
- sed -e '/HAVE_RULES=/s:=no:=yes:' \ |
189 |
- -i Makefile |
190 |
- fi |
191 |
- if use qt4 ; then |
192 |
- pushd gui |
193 |
- qt4-r2_src_configure |
194 |
- popd |
195 |
- fi |
196 |
-} |
197 |
- |
198 |
-src_compile() { |
199 |
- export LIBS="$(pkg-config --libs tinyxml2)" |
200 |
- emake ${PN} man \ |
201 |
- CFGDIR="${EROOT}usr/share/${PN}/cfg" \ |
202 |
- DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" |
203 |
- |
204 |
- if use qt4 ; then |
205 |
- pushd gui |
206 |
- qt4-r2_src_compile |
207 |
- popd |
208 |
- fi |
209 |
- if use htmlreport ; then |
210 |
- pushd htmlreport |
211 |
- distutils-r1_src_compile |
212 |
- popd |
213 |
- fi |
214 |
-} |
215 |
- |
216 |
-src_test() { |
217 |
- # safe final version |
218 |
- mv -v ${PN}{,.final} |
219 |
- mv -v lib/library.o{,.final} |
220 |
- mv -v cli/cppcheckexecutor.o{,.final} |
221 |
- #trigger recompile with CFGDIR inside ${S} |
222 |
- emake check CFGDIR="${S}/cfg" |
223 |
- # restore |
224 |
- mv -v ${PN}{.final,} |
225 |
- mv -v lib/library.o{.final,} |
226 |
- mv -v cli/cppcheckexecutor.o{.final,} |
227 |
-} |
228 |
- |
229 |
-src_install() { |
230 |
- # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760 |
231 |
- emake install DESTDIR="${ED}" |
232 |
- |
233 |
- insinto "/usr/share/${PN}/cfg" |
234 |
- doins cfg/*.cfg |
235 |
- if use qt4 ; then |
236 |
- dobin gui/${PN}-gui |
237 |
- dodoc gui/{projectfile.txt,gui.${PN}} |
238 |
- fi |
239 |
- if use htmlreport ; then |
240 |
- pushd htmlreport |
241 |
- distutils-r1_src_install |
242 |
- popd |
243 |
- find "${D}" -name "*.egg-info" -delete |
244 |
- else |
245 |
- rm "${ED}/usr/bin/cppcheck-htmlreport" || die |
246 |
- fi |
247 |
- doman ${PN}.1 |
248 |
- dodoc -r triage |
249 |
-} |
250 |
|
251 |
diff --git a/dev-util/cppcheck/files/cppcheck-1.72-tinyxml2.patch b/dev-util/cppcheck/files/cppcheck-1.72-tinyxml2.patch |
252 |
deleted file mode 100644 |
253 |
index 478f1feed16..00000000000 |
254 |
--- a/dev-util/cppcheck/files/cppcheck-1.72-tinyxml2.patch |
255 |
+++ /dev/null |
256 |
@@ -1,66 +0,0 @@ |
257 |
---- cppcheck-1.71/gui/gui.pro |
258 |
-+++ cppcheck-1.71/gui/gui.pro |
259 |
-@@ -14,7 +14,7 @@ |
260 |
- LIBS += -l../bin/cppcheck-core |
261 |
- DEFINES += CPPCHECKLIB_IMPORT |
262 |
- } |
263 |
--LIBS += -L$$PWD/../externals |
264 |
-+LIBS += `pkg-config --libs tinyxml2` |
265 |
- |
266 |
- DESTDIR = . |
267 |
- RCC_DIR = temp |
268 |
---- cppcheck-1.72/tools/dmake.cpp |
269 |
-+++ cppcheck-1.72/tools/dmake.cpp |
270 |
-@@ -174,7 +174,6 @@ |
271 |
- } |
272 |
- |
273 |
- std::vector<std::string> externalfiles; |
274 |
-- getCppFiles(externalfiles, "externals/", true); |
275 |
- |
276 |
- |
277 |
- // QMAKE - lib/lib.pri |
278 |
-@@ -183,8 +182,7 @@ |
279 |
- if (fout1.is_open()) { |
280 |
- fout1 << "# no manual edits - this file is autogenerated by dmake\n\n"; |
281 |
- fout1 << "include($$PWD/pcrerules.pri)\n"; |
282 |
-- fout1 << "include($$PWD/../externals/tinyxml/tinyxml.pri)\n"; |
283 |
-- fout1 << "INCLUDEPATH += $$PWD $$PWD/../externals/tinyxml\n"; |
284 |
-+ fout1 << "INCLUDEPATH += $$PWD\n"; |
285 |
- fout1 << "HEADERS += $${PWD}/check.h \\\n"; |
286 |
- for (unsigned int i = 0; i < libfiles.size(); ++i) { |
287 |
- std::string fname(libfiles[i].substr(4)); |
288 |
-@@ -210,7 +208,6 @@ |
289 |
- std::ofstream fout1("test/testfiles.pri"); |
290 |
- if (fout1.is_open()) { |
291 |
- fout1 << "# no manual edits - this file is autogenerated by dmake\n\n"; |
292 |
-- fout1 << "INCLUDEPATH += ../externals/tinyxml\n"; |
293 |
- fout1 << "\n\nSOURCES += "; |
294 |
- for (unsigned int i = 0; i < testfiles.size(); ++i) { |
295 |
- const std::string filename(testfiles[i].substr(5)); |
296 |
-@@ -375,9 +372,9 @@ |
297 |
- << "endif\n\n"; |
298 |
- |
299 |
- makeConditionalVariable(fout, "PREFIX", "/usr"); |
300 |
-- makeConditionalVariable(fout, "INCLUDE_FOR_LIB", "-Ilib -Iexternals/tinyxml"); |
301 |
-- makeConditionalVariable(fout, "INCLUDE_FOR_CLI", "-Ilib -Iexternals/tinyxml"); |
302 |
-- makeConditionalVariable(fout, "INCLUDE_FOR_TEST", "-Ilib -Icli -Iexternals/tinyxml"); |
303 |
-+ makeConditionalVariable(fout, "INCLUDE_FOR_LIB", "-Ilib"); |
304 |
-+ makeConditionalVariable(fout, "INCLUDE_FOR_CLI", "-Ilib"); |
305 |
-+ makeConditionalVariable(fout, "INCLUDE_FOR_TEST", "-Ilib -Icli"); |
306 |
- |
307 |
- fout << "BIN=$(DESTDIR)$(PREFIX)/bin\n\n"; |
308 |
- fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n"; |
309 |
-@@ -418,10 +415,10 @@ |
310 |
- fout << "\t$(CXX) $(CXXFLAGS) -o dmake tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o -Ilib $(LDFLAGS)\n\n"; |
311 |
- fout << "run-dmake: dmake\n"; |
312 |
- fout << "\t./dmake\n\n"; |
313 |
-- fout << "reduce:\ttools/reduce.o externals/tinyxml/tinyxml2.o $(LIBOBJ)\n"; |
314 |
-- fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -g -o reduce tools/reduce.o -Ilib -Iexternals/tinyxml $(LIBOBJ) $(LIBS) externals/tinyxml/tinyxml2.o $(LDFLAGS) $(RDYNAMIC)\n\n"; |
315 |
-+ fout << "reduce:\ttools/reduce.o $(LIBOBJ)\n"; |
316 |
-+ fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o reduce tools/reduce.o -Ilib $(LIBOBJ) $(LIBS) $(LDFLAGS) $(RDYNAMIC)\n\n"; |
317 |
- fout << "clean:\n"; |
318 |
-- fout << "\trm -f build/*.o lib/*.o cli/*.o test/*.o tools/*.o externals/tinyxml/*.o testrunner reduce dmake cppcheck cppcheck.1\n\n"; |
319 |
-+ fout << "\trm -f build/*.o lib/*.o cli/*.o test/*.o tools/*.o testrunner reduce dmake cppcheck cppcheck.1\n\n"; |
320 |
- fout << "man:\tman/cppcheck.1\n\n"; |
321 |
- fout << "man/cppcheck.1:\t$(MAN_SOURCE)\n\n"; |
322 |
- fout << "\t$(XP) $(DB2MAN) $(MAN_SOURCE)\n\n"; |