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