diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-12-28 08:47:36 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-12-28 08:47:36 +0000 |
commit | ec0c9cab4b337751567a9062eb492698dff74efd (patch) | |
tree | fcf8c1b30717dc188e94733118fa3917a45645b5 /dev-util/cppcheck | |
parent | Cleanup. (diff) | |
download | gentoo-2-ec0c9cab4b337751567a9062eb492698dff74efd.tar.gz gentoo-2-ec0c9cab4b337751567a9062eb492698dff74efd.tar.bz2 gentoo-2-ec0c9cab4b337751567a9062eb492698dff74efd.zip |
Version bump (bug #525954 by Christian Strahl).
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'dev-util/cppcheck')
-rw-r--r-- | dev-util/cppcheck/ChangeLog | 7 | ||||
-rw-r--r-- | dev-util/cppcheck/cppcheck-1.67.ebuild | 99 |
2 files changed, 105 insertions, 1 deletions
diff --git a/dev-util/cppcheck/ChangeLog b/dev-util/cppcheck/ChangeLog index 7d3c5db4a4bf..92f7da4a6622 100644 --- a/dev-util/cppcheck/ChangeLog +++ b/dev-util/cppcheck/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/cppcheck # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.58 2014/11/28 13:02:40 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.59 2014/12/28 08:47:36 jer Exp $ + +*cppcheck-1.67 (28 Dec 2014) + + 28 Dec 2014; Jeroen Roovers <jer@gentoo.org> +cppcheck-1.67.ebuild: + Version bump (bug #525954 by Christian Strahl). 28 Nov 2014; Pacho Ramos <pacho@gentoo.org> cppcheck-1.66.ebuild: Support python 3.4 diff --git a/dev-util/cppcheck/cppcheck-1.67.ebuild b/dev-util/cppcheck/cppcheck-1.67.ebuild new file mode 100644 index 000000000000..5454cb09f2ae --- /dev/null +++ b/dev-util/cppcheck/cppcheck-1.67.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/cppcheck-1.67.ebuild,v 1.1 2014/12/28 08:47:36 jer Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} ) + +inherit distutils-r1 eutils flag-o-matic qt4-r2 toolchain-funcs + +DESCRIPTION="static analyzer of C/C++ code" +HOMEPAGE="http://cppcheck.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="htmlreport pcre qt4" + +RDEPEND="htmlreport? ( ${PYTHON_DEPS} ) + >=dev-libs/tinyxml2-2 + qt4? ( dev-qt/qtgui:4 ) + pcre? ( dev-libs/libpcre )" +DEPEND="${RDEPEND} + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + virtual/pkgconfig" + +src_prepare() { + # Drop bundled libs, patch Makefile generator and re-run it + rm -r externals || die + epatch "${FILESDIR}"/${PN}-1.66-tinyxml2.patch + tc-export CXX + emake dmake + ./dmake || die + + epatch "${FILESDIR}"/${PN}-1.65-c++0x.patch +} + +src_configure() { + if use pcre ; then + sed -e '/HAVE_RULES=/s:=no:=yes:' \ + -i Makefile + fi + if use qt4 ; then + pushd gui + qt4-r2_src_configure + popd + 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" + + if use qt4 ; then + pushd gui + qt4-r2_src_compile + popd + fi + if use htmlreport ; then + pushd htmlreport + distutils-r1_src_compile + popd + fi +} + +src_test() { + # safe final version + mv -v ${PN}{,.final} + mv -v lib/library.o{,.final} + mv -v cli/cppcheckexecutor.o{,.final} + #trigger recompile with CFGDIR inside ${S} + emake check CFGDIR="${S}/cfg" + # restore + mv -v ${PN}{.final,} + mv -v lib/library.o{.final,} + mv -v cli/cppcheckexecutor.o{.final,} +} + +src_install() { + emake install DESTDIR="${D}" + insinto "/usr/share/${PN}/cfg" + doins cfg/*.cfg + if use qt4 ; then + dobin gui/${PN}-gui + dodoc readme_gui.txt gui/{projectfile.txt,gui.${PN}} + fi + if use htmlreport ; then + pushd htmlreport + distutils-r1_src_install + popd + find "${D}" -name "*.egg-info" -delete + fi + doman ${PN}.1 + dodoc readme.txt +} |