diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-11 07:29:23 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-11 07:29:23 +0100 |
commit | fbe1e64cf651fcf73e25d2d3115003bf59e231cd (patch) | |
tree | 5077c9b46dc8e389d2fc7dc7c77c819425e6203b /dev-util/cppcheck | |
parent | b46b9834b3fbf80b22ccc12e95f660512cd0fa75 (diff) |
gentoo auto-resync : 11:07:2022 - 07:29:23
Diffstat (limited to 'dev-util/cppcheck')
-rw-r--r-- | dev-util/cppcheck/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cppcheck/cppcheck-2.8.1-r1.ebuild | 118 |
2 files changed, 119 insertions, 0 deletions
diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest index 2228c4b5c3d4..b79e8f0b8383 100644 --- a/dev-util/cppcheck/Manifest +++ b/dev-util/cppcheck/Manifest @@ -1,5 +1,6 @@ DIST cppcheck-2.6.3.tar.gz 3880340 BLAKE2B ef83538a0aa867dd0c0bd6165b41921335256ed0372a4990ad85151ab5e87a79bde7958be43887f07a4bbf372b9992339b75ddeae7ed8ea767b83c028dfc56db SHA512 e59b4b4659c2b4fa2c16dcb548f7ee3027555dddc289ef8b54fe186af0396b6f7caa23d91bf1142ece62908b56fe9f5ba013191817322815681994093310fb37 DIST cppcheck-2.8.1.tar.gz 3921391 BLAKE2B d61c4a8a3e88441f0a65090eddacaa34bda91ba50ce92e79c122525524368ade49d24f13f343a5a856a3014e904495e87db2d774146e871af1738d55f1a52728 SHA512 ff5a9955498101a2d061a431d0f8ed42267627b3cd029302871ee781a0e4039aa531dd47c2d44d1f3952b5e5bd3b65c9b32a10a9b1922ef466f440f8c4417e28 EBUILD cppcheck-2.6.3.ebuild 2001 BLAKE2B 6229fe97e051df083a748c36d2bc606060763d9a678008c87ebcb523acc24d76a822d14e2eee7dc81d9d6e1cb10940f6a684be8fec93b01f81e49a1dcf898763 SHA512 6203a4611ce362e6e115f97c19865a24d0bc9e019e739bd01fb211b4b7457ac6a0720ff5d2b28a4accf2297767659b80e5f0d617551baea81a0ba730b6ef8869 +EBUILD cppcheck-2.8.1-r1.ebuild 2296 BLAKE2B ee4c59964cd4b6cb3b5ff46df45a4664591358bdd2b3f20f394568db62669076f711d68d3b97869b86f0171a68de74c4b5958e77e5affcf04f6d1887da57e3fa SHA512 0296ba58ba5fa1d7df9e293039515d5494884b95581ea8dafb110cfbea0970a58f496e041b5c74522d951de177a110866371c625039dcd0139bcf52e86ccf063 EBUILD cppcheck-2.8.1.ebuild 1949 BLAKE2B 7ddf762a66c157345bcf4c78bacde9544e6de357591efceb4a47b505c19dbe54b43a3b11bd7d8e0f0d7d38773c6ede9af580c64e5e2541d4c3643c133e7baa0d SHA512 5c3da10d069a6ac582ea92b6b5a37f651e8c3ee961969d85ad0d79608b859e6e6238c295c42d920a0ba25d69fd8bbfd5ada9099a6855a38ad1ae5d9fe0d7496e MISC metadata.xml 491 BLAKE2B 614ff2cfa86224be3c758dc12d61d6bd7b6609652eee3917a97fe0ee54accee769d0c5227458e38152083d1b8f555bda2f3d23cd918eda59bd28b7c24ae07dd3 SHA512 3f4519bcce00dd2d9a05c05959db1a961d44fb899bf083600d9ba4a3af24fd9e52da4a8a6127fc1597103fe10427eeb2dcee5e227307cb564fe3fd14b33f3a07 diff --git a/dev-util/cppcheck/cppcheck-2.8.1-r1.ebuild b/dev-util/cppcheck/cppcheck-2.8.1-r1.ebuild new file mode 100644 index 000000000000..9ef2ad93ab6c --- /dev/null +++ b/dev-util/cppcheck/cppcheck-2.8.1-r1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Python is used both for htmlreport (USE flag) but also for various +# helper scripts in /usr/share/cppcheck. +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 cmake + +DESCRIPTION="Static analyzer of C/C++ code" +HOMEPAGE="https://github.com/danmar/cppcheck" +SRC_URI="https://github.com/danmar/cppcheck/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc ~x86" +IUSE="htmlreport pcre qt5 test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/tinyxml2:= + htmlreport? ( + $(python_gen_cond_dep ' + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + ') + ) + pcre? ( dev-libs/libpcre ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qthelp + dev-qt/qtprintsupport:5 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + virtual/pkgconfig + qt5? ( dev-qt/linguist-tools:5 ) + test? ( + htmlreport? ( + $(python_gen_cond_dep 'dev-python/unittest-or-fail[${PYTHON_USEDEP}]') + ) + ) +" + +src_prepare() { + cmake_src_prepare + + distutils-r1_src_prepare +} + +python_prepare_all() { + distutils-r1_python_prepare_all + + rm htmlreport/test_htmlreport.py || die +} + +src_configure() { + local mycmakeargs=( + -DHAVE_RULES="$(usex pcre)" + -DBUILD_GUI="$(usex qt5)" + -DFILESDIR="${EPREFIX}/usr/share/${PN}/" + -DENABLE_OSS_FUZZ=OFF + -DUSE_BUNDLED_TINYXML2=OFF + -DBUILD_TESTS="$(usex test)" + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use htmlreport ; then + pushd htmlreport || die + distutils-r1_src_compile + popd || die + fi +} + +python_install() { + if use htmlreport ; then + pushd htmlreport || die + distutils-r1_python_install + popd || die + fi +} + +python_install_all() { + distutils-r1_python_install_all + + python_fix_shebang "${ED}"/usr/share/cppcheck/* +} + +src_install() { + cmake_src_install + + insinto /usr/share/${PN}/cfg + doins cfg/*.cfg + + if use qt5 ; then + dobin "${WORKDIR}/${P}_build/bin/${PN}-gui" + dodoc gui/{projectfile.txt,gui.${PN}} + fi + + distutils-r1_src_install + + dodoc -r tools/triage +} |