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.46.1.ebuild |
Date: | Sat, 01 Jan 2011 15:12:52 |
Message-Id: | 20110101151242.A855C20054@flycatcher.gentoo.org |
1 | xmw 11/01/01 15:12:42 |
2 | |
3 | Modified: ChangeLog |
4 | Added: cppcheck-1.46.1.ebuild |
5 | Log: |
6 | Version bump (bug 349284) |
7 | |
8 | (Portage version: 2.1.9.25/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.20 dev-util/cppcheck/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?rev=1.20&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?rev=1.20&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?r1=1.19&r2=1.20 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v |
20 | retrieving revision 1.19 |
21 | retrieving revision 1.20 |
22 | diff -u -r1.19 -r1.20 |
23 | --- ChangeLog 11 Nov 2010 12:07:38 -0000 1.19 |
24 | +++ ChangeLog 1 Jan 2011 15:12:42 -0000 1.20 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for dev-util/cppcheck |
27 | -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.19 2010/11/11 12:07:38 xmw Exp $ |
29 | +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.20 2011/01/01 15:12:42 xmw Exp $ |
31 | + |
32 | +*cppcheck-1.46.1 (01 Jan 2011) |
33 | + |
34 | + 01 Jan 2011; Michael Weber <xmw@g.o> +cppcheck-1.46.1.ebuild: |
35 | + Version bump (thanks to Andrey Hippo <ahippo@××××××.ru> for the report on bug |
36 | + 349284) |
37 | |
38 | *cppcheck-1.45-r1 (11 Nov 2010) |
39 | |
40 | |
41 | |
42 | |
43 | 1.1 dev-util/cppcheck/cppcheck-1.46.1.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/cppcheck-1.46.1.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/cppcheck-1.46.1.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: cppcheck-1.46.1.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2011 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/cppcheck-1.46.1.ebuild,v 1.1 2011/01/01 15:12:42 xmw Exp $ |
53 | |
54 | EAPI=2 |
55 | |
56 | PYTHON_DEPEND="htmlreport? 2" |
57 | |
58 | inherit distutils eutils python toolchain-funcs qt4-r2 |
59 | |
60 | DESCRIPTION="static analyzer of C/C++ code" |
61 | HOMEPAGE="http://apps.sourceforge.net/trac/cppcheck/" |
62 | SRC_URI="mirror://sourceforge/cppcheck/${P}.tar.bz2" |
63 | |
64 | LICENSE="GPL-3" |
65 | SLOT="0" |
66 | KEYWORDS="~amd64 ~x86" |
67 | IUSE="htmlreport qt4" |
68 | |
69 | DEPEND="htmlreport? ( dev-python/pygments ) |
70 | qt4? ( x11-libs/qt-gui:4 |
71 | x11-libs/qt-assistant:4 )" |
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 | if use htmlreport ; then |
106 | pushd htmlreport |
107 | distutils_src_compile |
108 | popd |
109 | fi |
110 | } |
111 | |
112 | src_install() { |
113 | emake install DESTDIR="${D}" || die |
114 | dodoc readme.txt || die |
115 | if use qt4 ; then |
116 | dobin gui/${PN}-gui || die |
117 | dodoc readme_gui.txt gui/{projectfile.txt,gui.cppcheck} || die |
118 | fi |
119 | if use htmlreport ; then |
120 | pushd htmlreport |
121 | distutils_src_install |
122 | popd |
123 | fi |
124 | } |