diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-09-10 21:01:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-09-10 21:01:44 +0100 |
commit | 9a4c3588c75d2dd5d7e29c219f2f9ad14a2e85c9 (patch) | |
tree | 193e31337487848a2e6bec92bad7fb71debcbfc1 | |
parent | Bump ofcs2-tools v1.8.8 (diff) | |
download | portage-9a4c3588c75d2dd5d7e29c219f2f9ad14a2e85c9.tar.bz2 portage-9a4c3588c75d2dd5d7e29c219f2f9ad14a2e85c9.tar.xz portage-9a4c3588c75d2dd5d7e29c219f2f9ad14a2e85c9.zip |
Bump cppcheck 2.12.0
-rw-r--r-- | dev-util/cppcheck/Manifest | 2 | ||||
-rw-r--r-- | dev-util/cppcheck/cppcheck-2.12.0.ebuild | 120 |
2 files changed, 122 insertions, 0 deletions
diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest index f75b2ce..4942849 100644 --- a/dev-util/cppcheck/Manifest +++ b/dev-util/cppcheck/Manifest @@ -1,3 +1,5 @@ DIST cppcheck-2.10.tar.gz 3442586 BLAKE2B 8eb409751d2ba470dd000b48b11be62497d9cb21d2640861b9e6f118848918a117a9f4d7155f5157578b9d0a1e24b049a0f80e905343c72c7aaefa40abef49f7 SHA512 1c737736a34f0c3412d43c95f07e47c10f64feb6d94bc4dde8a2468a3b3839468b31cfe94af30200fdd326e345ba6f4647c67e43705958885e24f8582abb9785 +DIST cppcheck-2.12.0.tar.gz 3579683 BLAKE2B 87a0abc662e33bf01c0018201dd9e28c2d54ed07b15f37ac1b1e5df5c8ccf1beafe54a363d9ae4d13a4eb1e7ac2a8f28fc0292e5be3bf00bde8c8d593ba579e0 SHA512 0352094443477f772944b4dd6a989e6df1dfcf332aa19b7610dad8c9f5371f4a49d4ca14fdcd9cdaf5579ba5a5fc8f25c2b2e0380b72380ea8fcfde1e51f50d5 EBUILD cppcheck-2.10.ebuild 2364 BLAKE2B 7ddc54c238e6f9db652d15090a21d639c06cc6f804da8db3d2c98d8066168e4d967962230b95405eb63547f2c069e9fdfdea05adef31b8e6ee7e49c08d041d1f SHA512 67344c96b62ef2434c3b5f5f75d8f72499104fe48530ae71016a89553fde5199da3e730e0e632f18afa706ee86b2021c95ccb8a23e595f81d952c70d07c16ddf +EBUILD cppcheck-2.12.0.ebuild 2364 BLAKE2B 7ddc54c238e6f9db652d15090a21d639c06cc6f804da8db3d2c98d8066168e4d967962230b95405eb63547f2c069e9fdfdea05adef31b8e6ee7e49c08d041d1f SHA512 67344c96b62ef2434c3b5f5f75d8f72499104fe48530ae71016a89553fde5199da3e730e0e632f18afa706ee86b2021c95ccb8a23e595f81d952c70d07c16ddf MISC metadata.xml 546 BLAKE2B d42258e8aad43867bf7b8d86f4688d76a70cfe285e203eb1938adb2b5167f2cb51e110ba5eb51954ebaf50a05d5d01605d577ff7b9528a1220f3ce0d69790984 SHA512 df3a8b62b1a8f1fcd8e4e78d3e44f20dc71fdf985251a5b1d7fbcc7fc2cdbc12428e3a7fe191640678cab7a046010578149f4176285ec1ca1538839cdf5a2070 diff --git a/dev-util/cppcheck/cppcheck-2.12.0.ebuild b/dev-util/cppcheck/cppcheck-2.12.0.ebuild new file mode 100644 index 0000000..d600a65 --- /dev/null +++ b/dev-util/cppcheck/cppcheck-2.12.0.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2023 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_{9..11} ) +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 ~loong ~ppc64 ~riscv 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 +} |