diff options
author | Patrick Lauer <patrick@gentoo.org> | 2010-05-03 17:33:52 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2010-05-03 17:33:52 +0000 |
commit | a86b2e748a7b7cb4fe356a4084a9d5cea12c95c9 (patch) | |
tree | 7dee96379dc97d3ce5022fda61fc2c23d2d7cae1 /dev-util/cppcheck | |
parent | Leave to maintainer-needed, without bugs (diff) | |
download | gentoo-2-a86b2e748a7b7cb4fe356a4084a9d5cea12c95c9.tar.gz gentoo-2-a86b2e748a7b7cb4fe356a4084a9d5cea12c95c9.tar.bz2 gentoo-2-a86b2e748a7b7cb4fe356a4084a9d5cea12c95c9.zip |
Adding qt4 gui, thanks to Benjamin Bannier for the ebuild mods. Fixes #316857
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/cppcheck')
-rw-r--r-- | dev-util/cppcheck/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/cppcheck/cppcheck-1.41-r1.ebuild | 52 |
2 files changed, 59 insertions, 1 deletions
diff --git a/dev-util/cppcheck/ChangeLog b/dev-util/cppcheck/ChangeLog index d94d73b8d1d0..0b57f534f4f4 100644 --- a/dev-util/cppcheck/ChangeLog +++ b/dev-util/cppcheck/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/cppcheck # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.12 2010/03/07 17:11:24 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.13 2010/05/03 17:33:51 patrick Exp $ + +*cppcheck-1.41-r1 (03 May 2010) + + 03 May 2010; Patrick Lauer <patrick@gentoo.org> +cppcheck-1.41-r1.ebuild: + Adding qt4 gui, thanks to Benjamin Bannier for the ebuild mods. Fixes + #316857 07 Mar 2010; Patrick Lauer <patrick@gentoo.org> metadata.xml: Add self to metadata so this package doesn't get forgotten diff --git a/dev-util/cppcheck/cppcheck-1.41-r1.ebuild b/dev-util/cppcheck/cppcheck-1.41-r1.ebuild new file mode 100644 index 000000000000..60809f244559 --- /dev/null +++ b/dev-util/cppcheck/cppcheck-1.41-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/cppcheck-1.41-r1.ebuild,v 1.1 2010/05/03 17:33:52 patrick Exp $ + +EAPI=2 +inherit eutils toolchain-funcs qt4-r2 + +DESCRIPTION="static analyzer of C/C++ code" +HOMEPAGE="http://apps.sourceforge.net/trac/cppcheck/" +SRC_URI="mirror://sourceforge/cppcheck/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="qt4" + +DEPEND="qt4? ( x11-libs/qt-gui:4 )" + +src_prepare() { + sed -i \ + -e '/^CXXFLAGS/d' \ + -e '/^CXX=/d' \ + Makefile \ + || die + tc-export CXX +} + +src_configure() { + if use qt4; then + pushd gui + eqmake4 gui.pro + popd + fi +} + +src_compile() { + emake || die "make failed" + if use qt4; then + pushd gui + emake || die "make gui failed" + popd + fi +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc readme.txt + if use qt4; then + newbin gui/gui cppcheck-gui + dodoc readme_gui.txt gui/projectfile.txt gui/gui.cppcheck + fi +} |