diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
commit | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch) | |
tree | e48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-util/cppcheck/cppcheck-9999.ebuild | |
parent | d87262dd706fec50cd150aab3e93883b6337466d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/cppcheck/cppcheck-9999.ebuild')
-rw-r--r-- | dev-util/cppcheck/cppcheck-9999.ebuild | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/dev-util/cppcheck/cppcheck-9999.ebuild b/dev-util/cppcheck/cppcheck-9999.ebuild deleted file mode 100644 index 2ef2f6f37cad..000000000000 --- a/dev-util/cppcheck/cppcheck-9999.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) - -inherit distutils-r1 flag-o-matic qmake-utils toolchain-funcs git-r3 - -DESCRIPTION="static analyzer of C/C++ code" -HOMEPAGE="http://cppcheck.sourceforge.net" -EGIT_REPO_URI="https://github.com/danmar/cppcheck.git" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="" -IUSE="htmlreport pcre qt5" - -RDEPEND=" - >=dev-libs/tinyxml2-2 - 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 -" - -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 - tc-export CXX - emake dmake - ./dmake || die -} - -src_configure() { - if use pcre ; then - sed -e '/HAVE_RULES=/s:=no:=yes:' \ - -i Makefile - 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 qt5 ; then - pushd gui - eqmake5 - emake - 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() { - # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760 - emake install DESTDIR="${ED}" - - insinto "/usr/share/${PN}/cfg" - doins cfg/*.cfg - if use qt5 ; then - dobin gui/${PN}-gui - dodoc gui/{projectfile.txt,gui.${PN}} - fi - if use htmlreport ; then - pushd htmlreport - distutils-r1_src_install - popd - find "${D}" -name "*.egg-info" -delete - else - rm "${ED}/usr/bin/cppcheck-htmlreport" || die - fi - doman ${PN}.1 - dodoc -r triage -} |