Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/cppcheck: ChangeLog cppcheck-1.48.ebuild
Date: Wed, 27 Apr 2011 21:19:13
Message-Id: 20110427211902.C75CC20054@flycatcher.gentoo.org
1 xmw 11/04/27 21:19:02
2
3 Modified: ChangeLog
4 Added: cppcheck-1.48.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.9.42/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.24 dev-util/cppcheck/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?rev=1.24&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?rev=1.24&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?r1=1.23&r2=1.24
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v
20 retrieving revision 1.23
21 retrieving revision 1.24
22 diff -u -r1.23 -r1.24
23 --- ChangeLog 5 Mar 2011 00:42:56 -0000 1.23
24 +++ ChangeLog 27 Apr 2011 21:19:02 -0000 1.24
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/cppcheck
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.23 2011/03/05 00:42:56 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.24 2011/04/27 21:19:02 xmw Exp $
30 +
31 +*cppcheck-1.48 (27 Apr 2011)
32 +
33 + 27 Apr 2011; Michael Weber <xmw@g.o> +cppcheck-1.48.ebuild:
34 + Version bump (thanks to Jaak Ristioja for the report, bug 365047)
35
36 *cppcheck-1.47 (05 Mar 2011)
37
38
39
40
41 1.1 dev-util/cppcheck/cppcheck-1.48.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/cppcheck-1.48.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/cppcheck-1.48.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cppcheck-1.48.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/cppcheck-1.48.ebuild,v 1.1 2011/04/27 21:19:02 xmw Exp $
51
52 EAPI="3"
53 PYTHON_DEPEND="htmlreport? 2"
54
55 inherit distutils eutils qt4-r2 toolchain-funcs
56
57 DESCRIPTION="static analyzer of C/C++ code"
58 HOMEPAGE="http://apps.sourceforge.net/trac/cppcheck/"
59 SRC_URI="mirror://sourceforge/cppcheck/${P}.tar.bz2"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="htmlreport qt4"
65
66 DEPEND="htmlreport? ( dev-python/pygments )
67 qt4? ( x11-libs/qt-gui:4
68 x11-libs/qt-assistant:4 )"
69 RDEPEND="${DEPEND}"
70
71 DISTUTILS_SETUP_FILES=("htmlreport|setup.py")
72
73 pkg_setup() {
74 if use htmlreport ; then
75 python_set_active_version 2
76 python_pkg_setup
77 fi
78 }
79
80 src_prepare() {
81 if use htmlreport ; then
82 pushd htmlreport
83 python_convert_shebangs -r 2 .
84 distutils_src_prepare
85 popd
86 fi
87 }
88
89 src_configure() {
90 tc-export CXX
91 if use qt4 ; then
92 pushd gui
93 qt4-r2_src_configure
94 popd
95 fi
96 }
97
98 src_compile() {
99 emake || die
100 if use qt4 ; then
101 pushd gui
102 qt4-r2_src_compile
103 popd
104 fi
105 use htmlreport && distutils_src_compile
106 }
107
108 src_install() {
109 emake install DESTDIR="${D}" || die
110 dodoc readme.txt || die
111 if use qt4 ; then
112 dobin gui/${PN}-gui || die
113 dodoc readme_gui.txt gui/{projectfile.txt,gui.cppcheck} || die
114 fi
115 use htmlreport && distutils_src_install
116 }
117
118 pkg_postinst() {
119 use htmlreport && distutils_pkg_postinst
120 }
121
122 pkg_postrm() {
123 use htmlreport && distutils_pkg_postrm
124 }