From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1058866-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 173D3138334 for <garchives@archives.gentoo.org>; Sun, 25 Nov 2018 15:04:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1DC8E0A91; Sun, 25 Nov 2018 15:04:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F766E0A91 for <gentoo-commits@lists.gentoo.org>; Sun, 25 Nov 2018 15:04:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95200335D5A for <gentoo-commits@lists.gentoo.org>; Sun, 25 Nov 2018 15:04:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C9B44B2 for <gentoo-commits@lists.gentoo.org>; Sun, 25 Nov 2018 15:04:28 +0000 (UTC) From: "Jeroen Roovers" <jer@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org> Message-ID: <1543158265.22d131878d6d360ed9f73fd88520011af8a0d967.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cppcheck/files/, dev-util/cppcheck/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/cppcheck/Manifest dev-util/cppcheck/cppcheck-1.85.ebuild dev-util/cppcheck/cppcheck-9999.ebuild dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch dev-util/cppcheck/files/cppcheck-1.85-ldflags.patch X-VCS-Directories: dev-util/cppcheck/ dev-util/cppcheck/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 22d131878d6d360ed9f73fd88520011af8a0d967 X-VCS-Branch: master Date: Sun, 25 Nov 2018 15:04:28 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 47f07525-ea89-4b84-893e-ae0486aff0f7 X-Archives-Hash: 09539da22368c4e3fb0f45166c2892ef commit: 22d131878d6d360ed9f73fd88520011af8a0d967 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> AuthorDate: Sun Nov 25 15:04:04 2018 +0000 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> CommitDate: Sun Nov 25 15:04:25 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22d13187 dev-util/cppcheck: Version 1.85 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> dev-util/cppcheck/Manifest | 1 + .../{cppcheck-9999.ebuild => cppcheck-1.85.ebuild} | 42 ++++++++++++---------- dev-util/cppcheck/cppcheck-9999.ebuild | 40 ++++++++++++--------- .../cppcheck/files/cppcheck-1.75-tinyxml2.patch | 14 ++++---- .../cppcheck/files/cppcheck-1.85-ldflags.patch | 24 +++++++++++++ 5 files changed, 79 insertions(+), 42 deletions(-) diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest index af044e6035f..8a3615a6844 100644 --- a/dev-util/cppcheck/Manifest +++ b/dev-util/cppcheck/Manifest @@ -1,2 +1,3 @@ DIST cppcheck-1.81.tar.bz2 1514741 BLAKE2B 2f23dfe4bdb26e203411f0bf9bc569303a4d59f96911b32a8a5f9cc9a6a7fa75e5d87c328cb0bf8cc46bd8f38747a4663c33243b8385355cc5630e1fcf6c891f SHA512 22e7b63c35e71b2784065faca06aec8c286e3173f182ac10995073cc3d61fd0bfaf353c51ad9207d3bd2c6134ab1a3990a37668709505b657c2816d561f8af92 DIST cppcheck-1.84.tar.gz 2051244 BLAKE2B 8e4b4c71da969addec6d1cb2919c39625054797ae730c85555695e872f87295c20e4564db2eadf536a762ca018882285d5d329f9a5789608e14ef17f1069753d SHA512 7f971f9097db6d2fee7483634afc697bddff499a7b09c4be0bfdc3f8e502d47202a8d4f4fc1a330d0fb1d34a7772065b96419b4b4f4f1467b997e62459304526 +DIST cppcheck-1.85.tar.gz 2150637 BLAKE2B 73a1d4e1fb0770103c8163f35b9e710a5863561df66e46e319b9246ed14e3c5d4d73511db6e70275de4f4510866d7e1888b0fd6b49e5b01fc4f08d081119b36c SHA512 cc984c751d87150839782e96b3762dbf918d9e3687562eabaff6473e48e3254995dd3bffe8605842f867d7ad76845ca2248a53bbd54b5c367281db8a1c1c7fad diff --git a/dev-util/cppcheck/cppcheck-9999.ebuild b/dev-util/cppcheck/cppcheck-1.85.ebuild similarity index 75% copy from dev-util/cppcheck/cppcheck-9999.ebuild copy to dev-util/cppcheck/cppcheck-1.85.ebuild index 38d6d57ecc2..87931e60c7b 100644 --- a/dev-util/cppcheck/cppcheck-9999.ebuild +++ b/dev-util/cppcheck/cppcheck-1.85.ebuild @@ -1,19 +1,17 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 - +EAPI=7 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) - -inherit distutils-r1 flag-o-matic qmake-utils toolchain-funcs git-r3 +inherit distutils-r1 qmake-utils toolchain-funcs DESCRIPTION="Static analyzer of C/C++ code" HOMEPAGE="http://cppcheck.sourceforge.net" -EGIT_REPO_URI="https://github.com/danmar/cppcheck.git" +SRC_URI="https://github.com/danmar/cppcheck/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3+" SLOT="0" -KEYWORDS="" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc ~x86" IUSE="htmlreport pcre qt5" RDEPEND=" @@ -31,39 +29,47 @@ DEPEND="${RDEPEND} dev-libs/libxslt virtual/pkgconfig " - -PATCHES=( "${FILESDIR}"/${PN}-1.75-tinyxml2.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-1.75-tinyxml2.patch + "${FILESDIR}"/${PN}-1.85-ldflags.patch +) src_prepare() { default - append-cxxflags -std=c++0x - # Drop bundled libs, patch Makefile generator and re-run it rm -r externals/tinyxml || die - tc-export CXX - emake dmake - ./dmake || die } src_configure() { + tc-export CXX PKG_CONFIG + export LIBS="$(${PKG_CONFIG} --libs tinyxml2)" + + emake dmake + ./dmake || die + if use pcre ; then sed -e '/HAVE_RULES=/s:=no:=yes:' \ -i Makefile || die fi + + if use qt5 ; then + pushd gui || die + eqmake5 + popd || die + fi } src_compile() { - export LIBS="$(pkg-config --libs tinyxml2)" emake ${PN} man \ - CFGDIR="${EROOT}usr/share/${PN}/cfg" \ - DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" + CFGDIR="${EROOT}/usr/share/${PN}/cfg" \ + DB2MAN="${EROOT}/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" if use qt5 ; then pushd gui || die - eqmake5 emake popd || die fi + if use htmlreport ; then pushd htmlreport || die distutils-r1_src_compile diff --git a/dev-util/cppcheck/cppcheck-9999.ebuild b/dev-util/cppcheck/cppcheck-9999.ebuild index 38d6d57ecc2..9d9977873aa 100644 --- a/dev-util/cppcheck/cppcheck-9999.ebuild +++ b/dev-util/cppcheck/cppcheck-9999.ebuild @@ -1,15 +1,13 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 - +EAPI=7 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) - -inherit distutils-r1 flag-o-matic qmake-utils toolchain-funcs git-r3 +inherit distutils-r1 git-r3 qmake-utils toolchain-funcs DESCRIPTION="Static analyzer of C/C++ code" HOMEPAGE="http://cppcheck.sourceforge.net" -EGIT_REPO_URI="https://github.com/danmar/cppcheck.git" +EGIT_REPO_URI="https://github.com/danmar/cppcheck" LICENSE="GPL-3+" SLOT="0" @@ -31,39 +29,47 @@ DEPEND="${RDEPEND} dev-libs/libxslt virtual/pkgconfig " - -PATCHES=( "${FILESDIR}"/${PN}-1.75-tinyxml2.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-1.75-tinyxml2.patch + "${FILESDIR}"/${PN}-1.85-ldflags.patch +) src_prepare() { default - append-cxxflags -std=c++0x - # Drop bundled libs, patch Makefile generator and re-run it rm -r externals/tinyxml || die - tc-export CXX - emake dmake - ./dmake || die } src_configure() { + tc-export CXX PKG_CONFIG + export LIBS="$(${PKG_CONFIG} --libs tinyxml2)" + + emake dmake + ./dmake || die + if use pcre ; then sed -e '/HAVE_RULES=/s:=no:=yes:' \ -i Makefile || die fi + + if use qt5 ; then + pushd gui || die + eqmake5 + popd || die + fi } src_compile() { - export LIBS="$(pkg-config --libs tinyxml2)" emake ${PN} man \ - CFGDIR="${EROOT}usr/share/${PN}/cfg" \ - DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" + CFGDIR="${EROOT}/usr/share/${PN}/cfg" \ + DB2MAN="${EROOT}/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" if use qt5 ; then pushd gui || die - eqmake5 emake popd || die fi + if use htmlreport ; then pushd htmlreport || die distutils-r1_src_compile diff --git a/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch b/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch index 9d855846659..67e4ac65a41 100644 --- a/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch +++ b/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch @@ -1,15 +1,15 @@ ---- cppcheck-9999/gui/gui.pro -+++ cppcheck-9999/gui/gui.pro +--- a/gui/gui.pro ++++ b/gui/gui.pro @@ -19,6 +19,7 @@ DEFINES += CPPCHECKLIB_IMPORT } LIBS += -L$$PWD/../externals -+LIBS += `pkg-config --libs tinyxml2` ++LIBS += $(shell $(PKG_CONFIG) --libs tinyxml2) DESTDIR = . RCC_DIR = temp ---- cppcheck-9999/tools/dmake.cpp -+++ cppcheck-9999/tools/dmake.cpp +--- a/tools/dmake.cpp ++++ b/tools/dmake.cpp @@ -123,7 +123,6 @@ std::vector<std::string> extfiles; @@ -39,8 +39,8 @@ fout << "BIN=$(DESTDIR)$(PREFIX)/bin\n\n"; fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n"; ---- cppcheck-9999/externals/externals.pri -+++ cppcheck-9999/externals/externals.pri +--- a/externals/externals.pri ++++ b/externals/externals.pri @@ -1,8 +1,5 @@ -INCLUDEPATH += $${PWD}/simplecpp \ - $${PWD}/tinyxml diff --git a/dev-util/cppcheck/files/cppcheck-1.85-ldflags.patch b/dev-util/cppcheck/files/cppcheck-1.85-ldflags.patch new file mode 100644 index 00000000000..84e89282712 --- /dev/null +++ b/dev-util/cppcheck/files/cppcheck-1.85-ldflags.patch @@ -0,0 +1,24 @@ +--- a/tools/dmake.cpp ++++ b/tools/dmake.cpp +@@ -363,10 +363,10 @@ + fout << ".PHONY: run-dmake tags\n\n"; + fout << "\n###### Targets\n\n"; + fout << "cppcheck: $(LIBOBJ) $(CLIOBJ) $(EXTOBJ)\n"; +- fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS) $(RDYNAMIC)\n\n"; ++ fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(RDYNAMIC) $(LIBS)\n\n"; + fout << "all:\tcppcheck testrunner\n\n"; + fout << "testrunner: $(TESTOBJ) $(LIBOBJ) $(EXTOBJ) cli/threadexecutor.o cli/cmdlineparser.o cli/cppcheckexecutor.o cli/filelister.o\n"; +- fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS) $(RDYNAMIC)\n\n"; ++ fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(RDYNAMIC) $(LIBS)\n\n"; + fout << "test:\tall\n"; + fout << "\t./testrunner\n\n"; + fout << "check:\tall\n"; +@@ -380,7 +380,7 @@ + fout << "generate_cfg_tests: tools/generate_cfg_tests.o $(EXTOBJ)\n"; + fout << "\tg++ -Iexternals/tinyxml -o generate_cfg_tests tools/generate_cfg_tests.o $(EXTOBJ)\n"; + fout << "reduce:\ttools/reduce.o $(LIBOBJ) $(EXTOBJ)\n"; +- fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS) $(RDYNAMIC)\n\n"; ++ fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(RDYNAMIC) $(LIBS)\n\n"; + fout << "clean:\n"; + fout << "\trm -f build/*.o lib/*.o cli/*.o test/*.o tools/*.o externals/*/*.o testrunner reduce dmake cppcheck cppcheck.1\n\n"; + fout << "man:\tman/cppcheck.1\n\n";