diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-29 22:47:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-29 22:47:16 +0100 |
commit | 8993ea73a9714d22178ba6ada8c04be83cd71ec7 (patch) | |
tree | eec3cc3c457b3e760f6ca631fd51e0c004705e88 /dev-util/cppcheck | |
parent | ae838334efa4ecfd172331e8f5ae4eea8c5dd876 (diff) |
gentoo auto-resync : 29:08:2022 - 22:47:16
Diffstat (limited to 'dev-util/cppcheck')
-rw-r--r-- | dev-util/cppcheck/Manifest | 2 | ||||
-rw-r--r-- | dev-util/cppcheck/cppcheck-2.9.ebuild | 120 |
2 files changed, 122 insertions, 0 deletions
diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest index 0ab02a2b2310..a9a98b2b5ff5 100644 --- a/dev-util/cppcheck/Manifest +++ b/dev-util/cppcheck/Manifest @@ -1,8 +1,10 @@ DIST cppcheck-2.6.3.tar.gz 3880340 BLAKE2B ef83538a0aa867dd0c0bd6165b41921335256ed0372a4990ad85151ab5e87a79bde7958be43887f07a4bbf372b9992339b75ddeae7ed8ea767b83c028dfc56db SHA512 e59b4b4659c2b4fa2c16dcb548f7ee3027555dddc289ef8b54fe186af0396b6f7caa23d91bf1142ece62908b56fe9f5ba013191817322815681994093310fb37 DIST cppcheck-2.8.1.tar.gz 3921391 BLAKE2B d61c4a8a3e88441f0a65090eddacaa34bda91ba50ce92e79c122525524368ade49d24f13f343a5a856a3014e904495e87db2d774146e871af1738d55f1a52728 SHA512 ff5a9955498101a2d061a431d0f8ed42267627b3cd029302871ee781a0e4039aa531dd47c2d44d1f3952b5e5bd3b65c9b32a10a9b1922ef466f440f8c4417e28 DIST cppcheck-2.8.2.tar.gz 3921806 BLAKE2B b48a3f4163fec491d8a7f9eb4957a140cd33b852d1778974c383ca5148aa252cee412b4616cbf49b622ee5b4ccddcb1aa60b217284f2c01c020df606a1e4fe5b SHA512 595645cede2d1b801127747cf19c66ebc73a97c4c3f5c9af1fbf865a995f9b7ab4027a16d73cf2aa638e51569be275a26b92909d548ddb40e185978a247fb5cd +DIST cppcheck-2.9.tar.gz 3916529 BLAKE2B 5d75328e1fcd389376630502ad7427d3473392a9467e8731e6cd7c2c6349efccc05eddd7eca4cb361930661d2383a8d316e33bd3609b9333a710153d199e326d SHA512 69204a7ceac087470201482894e6422b99d0849f08641e80b2e341c9d164a1d2095e3a08a1fba2e9fa681783d07fe7277b30ea0cc0bf582431b5d13ab2f58c1f EBUILD cppcheck-2.6.3.ebuild 2001 BLAKE2B 6229fe97e051df083a748c36d2bc606060763d9a678008c87ebcb523acc24d76a822d14e2eee7dc81d9d6e1cb10940f6a684be8fec93b01f81e49a1dcf898763 SHA512 6203a4611ce362e6e115f97c19865a24d0bc9e019e739bd01fb211b4b7457ac6a0720ff5d2b28a4accf2297767659b80e5f0d617551baea81a0ba730b6ef8869 EBUILD cppcheck-2.8.1-r1.ebuild 2331 BLAKE2B 118b1e89d952c265d2abc0387a19dfe8cf6799fef9c6582b76310812beb8722c488113f65bc1bf9923f3549d456d9b72ecaeaffe5d74f6117cbfc8646ada4611 SHA512 bd5fb5127989493b025a1d651e70213e8e80ae9d0c6b6c96155b803a7bc36db1a3d2b16f6e2b126fa07cde715a9e4998e5f6084aca7cff74a38bb5067304b281 EBUILD cppcheck-2.8.1.ebuild 1949 BLAKE2B 7ddf762a66c157345bcf4c78bacde9544e6de357591efceb4a47b505c19dbe54b43a3b11bd7d8e0f0d7d38773c6ede9af580c64e5e2541d4c3643c133e7baa0d SHA512 5c3da10d069a6ac582ea92b6b5a37f651e8c3ee961969d85ad0d79608b859e6e6238c295c42d920a0ba25d69fd8bbfd5ada9099a6855a38ad1ae5d9fe0d7496e EBUILD cppcheck-2.8.2.ebuild 2331 BLAKE2B 118b1e89d952c265d2abc0387a19dfe8cf6799fef9c6582b76310812beb8722c488113f65bc1bf9923f3549d456d9b72ecaeaffe5d74f6117cbfc8646ada4611 SHA512 bd5fb5127989493b025a1d651e70213e8e80ae9d0c6b6c96155b803a7bc36db1a3d2b16f6e2b126fa07cde715a9e4998e5f6084aca7cff74a38bb5067304b281 +EBUILD cppcheck-2.9.ebuild 2354 BLAKE2B 38e810f53d89e1f4771bcaf60a9479402b1f1f62dbf571935ebaca1d802fdc5ef7633b47391dea3bbc55c2a3fe54d629d55270b94051114a7012ff9560ab8922 SHA512 1f5fc1d58bfdc3438bc25bd29ca47c5d8f4838a80ceb993b6373d6ebec9448ce1253734fe00b933e34002590e184ab221e79895d1bafdc0237d3762f155eb267 MISC metadata.xml 491 BLAKE2B 614ff2cfa86224be3c758dc12d61d6bd7b6609652eee3917a97fe0ee54accee769d0c5227458e38152083d1b8f555bda2f3d23cd918eda59bd28b7c24ae07dd3 SHA512 3f4519bcce00dd2d9a05c05959db1a961d44fb899bf083600d9ba4a3af24fd9e52da4a8a6127fc1597103fe10427eeb2dcee5e227307cb564fe3fd14b33f3a07 diff --git a/dev-util/cppcheck/cppcheck-2.9.ebuild b/dev-util/cppcheck/cppcheck-2.9.ebuild new file mode 100644 index 000000000000..0ab87ba97840 --- /dev/null +++ b/dev-util/cppcheck/cppcheck-2.9.ebuild @@ -0,0 +1,120 @@ +# 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:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + virtual/pkgconfig + htmlreport? ( ${DISTUTILS_DEPS} ) + 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 +} |