xmw         14/10/10 13:04:51

  Modified:             ChangeLog
  Added:                cppcheck-1.66.ebuild
  Log:
  Version bump (bug 520242), fix test (bug 511438).
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with 
key 62EEF090)

Revision  Changes    Path
1.56                 dev-util/cppcheck/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?rev=1.56&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?rev=1.56&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/ChangeLog?r1=1.55&r2=1.56

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- ChangeLog   10 Oct 2014 06:31:14 -0000      1.55
+++ ChangeLog   10 Oct 2014 13:04:51 -0000      1.56
@@ -1,6 +1,12 @@
 # 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.55 
2014/10/10 06:31:14 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.56 
2014/10/10 13:04:51 xmw Exp $
+
+*cppcheck-1.66 (10 Oct 2014)
+
+  10 Oct 2014; Michael Weber <x...@gentoo.org> +cppcheck-1.66.ebuild,
+  +files/cppcheck-1.66-tinyxml2.patch:
+  Version bump (bug 520242), fix test (bug 511438).
 
   10 Oct 2014; Jeroen Roovers <j...@gentoo.org> cppcheck-1.65-r1.ebuild,
   -files/cppcheck-1.64-tinyxml2.patch, -files/cppcheck-1.65-r1-tinyxml2.patch,



1.1                  dev-util/cppcheck/cppcheck-1.66.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/cppcheck-1.66.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cppcheck/cppcheck-1.66.ebuild?rev=1.1&content-type=text/plain

Index: cppcheck-1.66.ebuild
===================================================================
# 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.66.ebuild,v 1.1 
2014/10/10 13:04:51 xmw Exp $

EAPI=5

PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )

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}"/${P}-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
}




Reply via email to