diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-26 11:42:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-26 11:42:28 +0000 |
commit | 89c6c06b8c42107dd231687a1012354e7d3039fc (patch) | |
tree | dad94f4da8a6694f3cb99f7048be2f9cf5f78f97 /dev-util/cppcheck/cppcheck-9999.ebuild | |
parent | 796cae72cf9ed18ba01256ac1f83a686a2a76036 (diff) |
gentoo resync : 26.11.2017
Diffstat (limited to 'dev-util/cppcheck/cppcheck-9999.ebuild')
-rw-r--r-- | dev-util/cppcheck/cppcheck-9999.ebuild | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/dev-util/cppcheck/cppcheck-9999.ebuild b/dev-util/cppcheck/cppcheck-9999.ebuild index 529f5e6fadc3..4ed390f176fb 100644 --- a/dev-util/cppcheck/cppcheck-9999.ebuild +++ b/dev-util/cppcheck/cppcheck-9999.ebuild @@ -1,11 +1,11 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 PYTHON_COMPAT=( python{2_7,3_4,3_5} ) -inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic git-r3 +inherit distutils-r1 flag-o-matic qmake-utils toolchain-funcs git-r3 DESCRIPTION="static analyzer of C/C++ code" HOMEPAGE="http://cppcheck.sourceforge.net" @@ -14,28 +14,35 @@ EGIT_REPO_URI="https://github.com/danmar/cppcheck.git" LICENSE="GPL-3" SLOT="0" KEYWORDS="" -IUSE="htmlreport pcre qt4" +IUSE="htmlreport pcre qt5" -RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] ) +RDEPEND=" >=dev-libs/tinyxml2-2 - qt4? ( dev-qt/qtgui:4 ) - pcre? ( dev-libs/libpcre )" + htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] ) + pcre? ( dev-libs/libpcre ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + ) +" DEPEND="${RDEPEND} app-text/docbook-xsl-stylesheets dev-libs/libxslt - virtual/pkgconfig" + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-1.75-tinyxml2.patch ) src_prepare() { + default append-cxxflags -std=c++0x # Drop bundled libs, patch Makefile generator and re-run it rm -r externals/tinyxml || die - epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch tc-export CXX emake dmake ./dmake || die - - epatch_user } src_configure() { @@ -43,11 +50,6 @@ src_configure() { sed -e '/HAVE_RULES=/s:=no:=yes:' \ -i Makefile fi - if use qt4 ; then - pushd gui - qt4-r2_src_configure - popd - fi } src_compile() { @@ -56,9 +58,10 @@ src_compile() { CFGDIR="${EROOT}usr/share/${PN}/cfg" \ DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" - if use qt4 ; then + if use qt5 ; then pushd gui - qt4-r2_src_compile + eqmake5 + emake popd fi if use htmlreport ; then @@ -87,7 +90,7 @@ src_install() { insinto "/usr/share/${PN}/cfg" doins cfg/*.cfg - if use qt4 ; then + if use qt5 ; then dobin gui/${PN}-gui dodoc gui/{projectfile.txt,gui.${PN}} fi |