[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 51456fcc31f95f5cced748ae8031c21c73c7cde0 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Apr 22 17:06:54 2024 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Apr 22 17:07:35 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51456fcc dev-util/clazy: drop 1.11-r3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.11-r3.ebuild | 56 - 1 file changed, 56 deletions(-) diff --git a/dev-util/clazy/clazy-1.11-r3.ebuild b/dev-util/clazy/clazy-1.11-r3.ebuild deleted file mode 100644 index f496c456100f.. --- a/dev-util/clazy/clazy-1.11-r3.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_MAX_SLOT=16 -PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake llvm python-any-r1 - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 6373efa683c728488b20dd004794c3d28d73c28f Author: Arthur Zamarin gentoo org> AuthorDate: Sat Apr 20 17:39:26 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Apr 20 17:39:26 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6373efa6 dev-util/clazy: Stabilize 1.11-r4 arm64, #930324 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/clazy/clazy-1.11-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r4.ebuild b/dev-util/clazy/clazy-1.11-r4.ebuild index ab339ffc11e6..472e84d5ffea 100644 --- a/dev-util/clazy/clazy-1.11-r4.ebuild +++ b/dev-util/clazy/clazy-1.11-r4.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 ~arm64 x86" +KEYWORDS="amd64 arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 940d83392aa99cb752ea7ca0584f6650a10eb39e Author: Arthur Zamarin gentoo org> AuthorDate: Sat Apr 20 14:51:56 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Apr 20 14:52:08 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=940d8339 dev-util/clazy: Stabilize 1.11-r4 x86, #930324 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/clazy/clazy-1.11-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r4.ebuild b/dev-util/clazy/clazy-1.11-r4.ebuild index 91baf9e0b712..ab339ffc11e6 100644 --- a/dev-util/clazy/clazy-1.11-r4.ebuild +++ b/dev-util/clazy/clazy-1.11-r4.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: bc497ef9efcca2a5c629103d6e0752d3864b2fa8 Author: Arthur Zamarin gentoo org> AuthorDate: Sat Apr 20 14:51:49 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Apr 20 14:52:05 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc497ef9 dev-util/clazy: Stabilize 1.11-r4 amd64, #930324 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/clazy/clazy-1.11-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r4.ebuild b/dev-util/clazy/clazy-1.11-r4.ebuild index 81393e677b0e..91baf9e0b712 100644 --- a/dev-util/clazy/clazy-1.11-r4.ebuild +++ b/dev-util/clazy/clazy-1.11-r4.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 ~x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: 1ea0e9a3ed747a8d800d1a1c25abdbd03e5b8275 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Mar 4 16:06:48 2024 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Mar 4 22:17:40 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ea0e9a3 dev-util/clazy: Add yet another patch to support LLVM-17 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.11-r4.ebuild| 57 ++ dev-util/clazy/files/clazy-1.11-fix-llvm-17.patch | 38 +++ .../clazy/files/clazy-1.11-jobs-for-tests.patch| 41 3 files changed, 136 insertions(+) diff --git a/dev-util/clazy/clazy-1.11-r4.ebuild b/dev-util/clazy/clazy-1.11-r4.ebuild new file mode 100644 index ..81393e677b0e --- /dev/null +++ b/dev-util/clazy/clazy-1.11-r4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT=17 +PYTHON_COMPAT=( python3_{10..12} ) +inherit cmake llvm python-any-r1 + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://apps.kde.org/clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" +Date: Mon, 14 Aug 2023 18:16:01 +0200 +Subject: [PATCH] Fix compilation with LLVM 17.0.0 (rc2) + +Change-Id: I9d3fc86185c1e7c86145da043e1982d2979b36e9 +--- + .../manuallevel/unexpected-flag-enumerator-value.cpp | 10 ++ + 1 file changed, 10 insertions(+) + +--- a/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp b/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp +@@ -61,8 +61,13 @@ static bool isIntentionallyNotPowerOf2(E + if (val.isMask() && val.countTrailingOnes() >= MinOnesToQualifyAsMask) + return true; + ++#if LLVM_VERSION_MAJOR >= 17 ++if (val.isShiftedMask() && val.popcount() >= MinOnesToQualifyAsMask) ++return true; ++#else + if (val.isShiftedMask() && val.countPopulation() >= MinOnesToQualifyAsMask) + return true; ++#endif + + if (clazy::contains_lower(en->getName(), "mask")) + return true; +@@ -158,7 +163,11 @@ void UnexpectedFlagEnumeratorValue::Visi + + for (EnumConstantDecl* enumerator : enumerators) { + const auto = enumerator->getInitVal(); ++#if LLVM_VERSION_MAJOR >= 17 ++if (!initVal.isPowerOf2() && !initVal.isZero() && !initVal.isNegative()) { ++#else + if (!initVal.isPowerOf2() && !initVal.isNullValue() && !initVal.isNegative()) { ++#endif + if (isIntentionallyNotPowerOf2(enumerator)) + continue; + const auto value = enumerator->getInitVal().getLimitedValue(); diff --git a/dev-util/clazy/files/clazy-1.11-jobs-for-tests.patch b/dev-util/clazy/files/clazy-1.11-jobs-for-tests.patch new file mode 100644 index ..372aed3ca09a --- /dev/null +++ b/dev-util/clazy/files/clazy-1.11-jobs-for-tests.patch @@ -0,0 +1,41 @@ +From ab8993c9e10e09cb24210f76bb5e67f01bb37a9e Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Thu, 17 Nov 2022 19:09:47 +0100 +Subject: [PATCH] tests: add -j/--jobs option for run_tests.py + +This way it is possible to customize the number of parallel jobs to +spawn for the tests, instead of unconditionally using all available +CPUs. This can be helpful to run the tests without overloading the +system. + +The default is still the number of available CPUs, so there is no +behaviour change by default. +--- + tests/run_tests.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/tests/run_tests.py b/tests/run_tests.py +index bf4967d1..ea03ab4c 100755 +--- a/tests/run_tests.py b/tests/run_tests.py +@@ -443,6 +443,8 @@ parser.add_argument("--dump-ast", action='store_true', + help='Dump a unit-test AST to file') + parser.add_argument( + "--exclude", help='Comma separated list of checks to ignore') ++parser.add_argument("-j", "--jobs", type=int, default=multiprocessing.cpu_count(), ++help='Parallel jobs to run (defaults to %(default)s)') + parser.add_argument("check_names", nargs='*', + help="The name of the check whose unit-tests will be run. Defaults to running all checks.") + args = parser.parse_args() +@@ -460,7 +462,7 @@ _verbose = args.verbose + _no_standalone = args.no_standalone + _no_fixits = args.no_fixits + _only_standalone = args.only_standalone +-_num_threads = multiprocessing.cpu_count() ++_num_threads = args.jobs + _lock = threading.Lock() + _was_successful = True + _qt5_installation = find_qt_installation( +-- +2.35.1 +
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: df536988ad8cffae4b8e2168bd3f74739fe88f3b Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jul 9 10:02:25 2023 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jul 9 10:09:09 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df536988 dev-util/clazy: drop 1.11-r2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.11-r2.ebuild | 56 - 1 file changed, 56 deletions(-) diff --git a/dev-util/clazy/clazy-1.11-r2.ebuild b/dev-util/clazy/clazy-1.11-r2.ebuild deleted file mode 100644 index caf68b299f37.. --- a/dev-util/clazy/clazy-1.11-r2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_MAX_SLOT=15 -PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake llvm python-any-r1 - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 9ce48aafcc88115d4039b2e6198f509a3e68ae88 Author: Sam James gentoo org> AuthorDate: Sun Jun 18 15:45:06 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jun 18 15:45:23 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce48aaf dev-util/clazy: Stabilize 1.11-r3 x86, #908763 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.11-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r3.ebuild b/dev-util/clazy/clazy-1.11-r3.ebuild index db69d1f80940..f496c456100f 100644 --- a/dev-util/clazy/clazy-1.11-r3.ebuild +++ b/dev-util/clazy/clazy-1.11-r3.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: e263b3bfc28354dbc27797f1149985c683b8 Author: Sam James gentoo org> AuthorDate: Sun Jun 18 15:45:05 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jun 18 15:45:23 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e263 dev-util/clazy: Stabilize 1.11-r3 amd64, #908763 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.11-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r3.ebuild b/dev-util/clazy/clazy-1.11-r3.ebuild index 487577cabca8..db69d1f80940 100644 --- a/dev-util/clazy/clazy-1.11-r3.ebuild +++ b/dev-util/clazy/clazy-1.11-r3.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 ~x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 143ecb87d0cc3a1678414b88e0f2d9f5be478856 Author: Sam James gentoo org> AuthorDate: Sun Jun 18 15:13:12 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jun 18 15:13:12 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=143ecb87 dev-util/clazy: Stabilize 1.11-r3 arm64, #908763 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.11-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r3.ebuild b/dev-util/clazy/clazy-1.11-r3.ebuild index b6392f00d182..487577cabca8 100644 --- a/dev-util/clazy/clazy-1.11-r3.ebuild +++ b/dev-util/clazy/clazy-1.11-r3.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 arm64 ~x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 4972b824f29e5a8e8b70958ce0aa673b6963f196 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Mar 23 21:02:28 2023 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Mar 23 21:02:28 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4972b824 dev-util/clazy: drop 1.11-r1 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.11-r1.ebuild | 51 - 1 file changed, 51 deletions(-) diff --git a/dev-util/clazy/clazy-1.11-r1.ebuild b/dev-util/clazy/clazy-1.11-r1.ebuild deleted file mode 100644 index ef259bbc11dd.. --- a/dev-util/clazy/clazy-1.11-r1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_MAX_SLOT=14 -PYTHON_COMPAT=( python3_{9,10} ) -inherit cmake llvm python-any-r1 - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: af5e691ed99518199c3986ced6b38295e5f27d30 Author: Arthur Zamarin gentoo org> AuthorDate: Sat Dec 3 06:23:43 2022 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Dec 3 06:23:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af5e691e dev-util/clazy: Stabilize 1.11-r2 x86, #879357 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/clazy/clazy-1.11-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r2.ebuild b/dev-util/clazy/clazy-1.11-r2.ebuild index 9f6b7b144707..435886e28550 100644 --- a/dev-util/clazy/clazy-1.11-r2.ebuild +++ b/dev-util/clazy/clazy-1.11-r2.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: ce121e931a87c662d2328be7601553d8e3d94d9d Author: Jakov Smolić gentoo org> AuthorDate: Tue Nov 29 15:10:45 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Tue Nov 29 15:10:45 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce121e93 dev-util/clazy: Stabilize 1.11-r2 amd64, #879357 Signed-off-by: Jakov Smolić gentoo.org> dev-util/clazy/clazy-1.11-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r2.ebuild b/dev-util/clazy/clazy-1.11-r2.ebuild index 6a1a88535383..9f6b7b144707 100644 --- a/dev-util/clazy/clazy-1.11-r2.ebuild +++ b/dev-util/clazy/clazy-1.11-r2.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 ~x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 453a29a2ad218bc76b8e7bc9d06a7fb6df32e065 Author: Sam James gentoo org> AuthorDate: Thu Nov 17 23:05:36 2022 + Commit: Sam James gentoo org> CommitDate: Thu Nov 17 23:05:36 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=453a29a2 dev-util/clazy: Stabilize 1.11-r2 arm64, #879357 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.11-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r2.ebuild b/dev-util/clazy/clazy-1.11-r2.ebuild index 331c221f4408..6a1a88535383 100644 --- a/dev-util/clazy/clazy-1.11-r2.ebuild +++ b/dev-util/clazy/clazy-1.11-r2.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 arm64 ~x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: 6575b1a0d95279f9bbd058a4426cb7b3a396c4e2 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Oct 25 17:55:33 2022 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Oct 25 18:35:20 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6575b1a0 dev-util/clazy: Support python3_11, LLVM-15 Tests pass. Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.11-r2.ebuild| 56 ++ dev-util/clazy/files/clazy-1.11-fix-llvm-15.patch | 223 + .../clazy/files/clazy-1.11-fix-regex-detect.patch | 25 +++ 3 files changed, 304 insertions(+) diff --git a/dev-util/clazy/clazy-1.11-r2.ebuild b/dev-util/clazy/clazy-1.11-r2.ebuild new file mode 100644 index ..331c221f4408 --- /dev/null +++ b/dev-util/clazy/clazy-1.11-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT=15 +PYTHON_COMPAT=( python3_{8..11} ) +inherit cmake llvm python-any-r1 + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://apps.kde.org/clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" +Date: Tue, 6 Sep 2022 16:30:02 +0200 +Subject: [PATCH] Build fixes for LLVM/Clang 15.0.0 + +Change-Id: Icc39a0b1acffb5a6a4798b1259d8ad4e7dd47bc5 +--- + CMakeLists.txt | 6 ++ + src/PreProcessorVisitor.cpp | 2 +- + src/PreProcessorVisitor.h | 2 +- + src/SourceCompatibilityHelpers.h| 15 +++ + src/Utils.cpp | 3 ++- + src/checkbase.cpp | 4 ++-- + src/checkbase.h | 4 ++-- + src/checks/manuallevel/qt6-fwd-fixes.cpp| 2 +- + src/checks/manuallevel/qt6-fwd-fixes.h | 2 +- + src/checks/manuallevel/qt6-header-fixes.cpp | 2 +- + src/checks/manuallevel/qt6-header-fixes.h | 2 +- + 11 files changed, 33 insertions(+), 11 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3c780b0d..100135af 100644 +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -114,6 +114,10 @@ else() + set(clang_tooling_refactoring_lib clangToolingRefactor) + endif() + ++if (${LLVM_VERSION} VERSION_GREATER_EQUAL "15.0.0") ++ set(clang_support_lib clangSupport) ++endif() ++ + macro(link_to_llvm name is_standalone) + if (CLAZY_LINK_CLANG_DYLIB) + target_link_libraries(${name} clang-cpp) +@@ -131,6 +135,7 @@ macro(link_to_llvm name is_standalone) + + target_link_libraries(${name} ${clang_lib}) + endforeach() ++target_link_libraries(${name} ${clang_support_lib}) + target_link_libraries(${name} clangTooling) + target_link_libraries(${name} clangToolingCore) + target_link_libraries(${name} ${clang_tooling_refactoring_lib}) +@@ -302,6 +307,7 @@ else() + clangFrontendTool + clangRewrite + clangSerialization ++${clang_support_lib} + clangTooling + clangStaticAnalyzerCheckers + clangStaticAnalyzerCore +diff --git a/src/PreProcessorVisitor.cpp b/src/PreProcessorVisitor.cpp +index 5e63a131..5fdfe5f3 100644 +--- a/src/PreProcessorVisitor.cpp b/src/PreProcessorVisitor.cpp +@@ -185,7 +185,7 @@ void PreProcessorVisitor::MacroExpands(const Token , const MacroDef + + void PreProcessorVisitor::InclusionDirective (clang::SourceLocation, const clang::Token &, + clang::StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange, +- const clang::FileEntry *, clang::StringRef, clang::StringRef, ++ clazy::OptionalFileEntryRef, clang::StringRef, clang::StringRef, + const clang::Module *, clang::SrcMgr::CharacteristicKind) + { +if (m_ci.getPreprocessor().isInPrimaryFile() && !clazy::endsWith(FileName.str(), ".moc")) { +diff --git a/src/PreProcessorVisitor.h b/src/PreProcessorVisitor.h +index dc80ff36..1bb17a5e 100644 +--- a/src/PreProcessorVisitor.h b/src/PreProcessorVisitor.h +@@ -71,7 +71,7 @@ protected: + clang::SourceRange range, const clang::MacroArgs *) override; + void InclusionDirective (clang::SourceLocation HashLoc, const clang::Token , + clang::StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange, +- const clang::FileEntry *File, clang::StringRef SearchPath, clang::StringRef RelativePath, ++ clazy::OptionalFileEntryRef File, clang::StringRef SearchPath, clang::StringRef RelativePath, + const clang::Module *Imported, clang::SrcMgr::CharacteristicKind FileType) override; +
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: 851a6bca2b859e267983e9d5b374d06521b32cc7 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Jun 14 07:41:56 2022 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jun 14 07:43:47 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=851a6bca dev-util/clazy: Drop 1.10-r2 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest| 1 - dev-util/clazy/clazy-1.10-r2.ebuild| 57 -- dev-util/clazy/files/clazy-1.10-gcc-build.patch| 44 - .../files/clazy-1.10-llvm-earlier-than-12.patch| 20 dev-util/clazy/files/clazy-1.10-use-c++17.patch| 20 5 files changed, 142 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 73763eea9f2e..a764da1ab127 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.10.tar.xz 398920 BLAKE2B 1cdc160de21363c7dc9c93ea7e780412a4971b18e97c7ec6e06f1c7450c56e0fbbdb7592d6b92ae53e4c161f6d9abca205984f83b68646f04ea11d63e3c45fa6 SHA512 59dd8c6903bcc239dfc356804cab265597a771de3858a6add4877149e0e7875b3c9ddae9aeec889c9102fb9ec6b0125bb8a786344e47872b01ba87425ba021eb DIST clazy-1.11.tar.xz 404088 BLAKE2B 1a69fe07ef81a0efe3c9db9129083247d60943592967f705d62d3859039cec250673eecc06184f70d134cbab85708d957b0a085beff8b3e46325a69547e005b7 SHA512 6a7c162392dd30aea29669275cea814d6daccf7931b8cdb20997f9bbff5619832d5461a6d0f854ecbc4726e52b6937c4f9cb8651087ffe73676c04239a38ca2b diff --git a/dev-util/clazy/clazy-1.10-r2.ebuild b/dev-util/clazy/clazy-1.10-r2.ebuild deleted file mode 100644 index 077cb9c6224d.. --- a/dev-util/clazy/clazy-1.10-r2.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -LLVM_MAX_SLOT=13 -PYTHON_COMPAT=( python3_{8,9,10} ) -inherit cmake llvm python-any-r1 - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="https://invent.kde.org/sdk/clazy/-/commit/b74c8729b7b71528c1528579435cda7fdb5d31b4 - -From: Sergio Martins -Date: Thu, 2 Dec 2021 11:05:51 + -Subject: [PATCH] Fix build with some newer gcc complaining about deleted Lexer - a/src/SourceCompatibilityHelpers.h -+++ b/src/SourceCompatibilityHelpers.h -@@ -117,17 +117,13 @@ inline auto getBuffer(const clang::SourceManager , clang::FileID id, bool *in - } - - #if LLVM_VERSION_MAJOR >= 12 --inline clang::Lexer getLexer(clang::FileID id, llvm::Optional inputFile, -- const clang::SourceManager , const clang::LangOptions ) --{ --return clang::Lexer(id, inputFile.getValue(), sm, lo); --} -+ -+#define GET_LEXER(id, inputFile, sm, lo) \ -+clang::Lexer(id, inputFile.getValue(), sm, lo) -+ - #else --inline clang::Lexer getLexer(clang::FileID id, const llvm::MemoryBuffer *inputFile, -- const clang::SourceManager , const clang::LangOptions ) --{ --return clang::Lexer(id, inputFile, sm, lo); --} -+#define GET_LEXER(id, inputFile, sm, lo) \ -+clang::Lexer(id, inputFile.getValue(), sm, lo) - #endif - - inline bool isFinal(const clang::CXXRecordDecl *record) a/src/SuppressionManager.cpp -+++ b/src/SuppressionManager.cpp -@@ -91,7 +91,7 @@ void SuppressionManager::parseFile(FileID id, const SourceManager , const cla - return; - } - --auto lexer = clazy::getLexer(id, buffer, sm, lo); -+auto lexer = GET_LEXER(id, buffer, sm, lo); - lexer.SetCommentRetentionState(true); - - Token token; -GitLab diff --git a/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch deleted file mode 100644 index 714d196b5fd9.. --- a/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch +++ /dev/null @@ -1,20 +0,0 @@ -https://bugs.gentoo.org/829134 -https://invent.kde.org/sdk/clazy/-/commit/0ee1ed9ff1bd4cf2a49e1232696747f1898e2987.patch - -From: Allen Winter -Date: Sat, 11 Dec 2021 14:57:52 -0500 -Subject: [PATCH] src/SourceCompatibilityHelpers.h - fix compile with LLVM<12 - -fix the GET_LEXER macro for LLVM versions less than 12 a/src/SourceCompatibilityHelpers.h -+++ b/src/SourceCompatibilityHelpers.h -@@ -123,7 +123,7 @@ clang::Lexer(id, inputFile.getValue(), sm, lo) - - #else - #define GET_LEXER(id, inputFile, sm, lo) \ --clang::Lexer(id, inputFile.getValue(), sm, lo) -+clang::Lexer(id, inputFile, sm, lo) - #endif - - inline bool isFinal(const clang::CXXRecordDecl *record) -GitLab diff --git a/dev-util/clazy/files/clazy-1.10-use-c++17.patch b/dev-util/clazy/files/clazy-1.10-use-c++17.patch deleted file mode
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: ae33276c307362ff30016597c861a6afe8179a20 Author: Agostino Sarubbo gentoo org> AuthorDate: Fri May 27 06:55:30 2022 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri May 27 06:55:30 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae33276c dev-util/clazy: arm64 stable wrt bug #833842 Package-Manager: Portage-3.0.30, Repoman-3.0.3 RepoMan-Options: --include-arches="arm64" Signed-off-by: Agostino Sarubbo gentoo.org> dev-util/clazy/clazy-1.11-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r1.ebuild b/dev-util/clazy/clazy-1.11-r1.ebuild index 004320e92f56..4d457cc61b37 100644 --- a/dev-util/clazy/clazy-1.11-r1.ebuild +++ b/dev-util/clazy/clazy-1.11-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 ~arm64 x86" +KEYWORDS="amd64 arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 31b70b911f03e1d5d665a43ba61dff348f5e11ab Author: Sam James gentoo org> AuthorDate: Wed May 25 19:22:39 2022 + Commit: Sam James gentoo org> CommitDate: Wed May 25 19:22:39 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31b70b91 dev-util/clazy: Stabilize 1.11-r1 amd64, #833842 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.11-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r1.ebuild b/dev-util/clazy/clazy-1.11-r1.ebuild index 268286775581..004320e92f56 100644 --- a/dev-util/clazy/clazy-1.11-r1.ebuild +++ b/dev-util/clazy/clazy-1.11-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 x86" +KEYWORDS="amd64 ~arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 911ff013f742284c6b21ac173b01eba6c03183d9 Author: Philipp Rösner protonmail com> AuthorDate: Fri May 20 22:52:19 2022 + Commit: Sam James gentoo org> CommitDate: Sun May 22 20:45:50 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=911ff013 dev-util/clazy: stabilize 1.11-r1 for x86 Bug: https://bugs.gentoo.org/833842 Signed-off-by: Philipp Rösner protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/25581 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.11-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11-r1.ebuild b/dev-util/clazy/clazy-1.11-r1.ebuild index 3c31743e4cfe..268286775581 100644 --- a/dev-util/clazy/clazy-1.11-r1.ebuild +++ b/dev-util/clazy/clazy-1.11-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 ~arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: a33c56c8b3349b8a056c2ceb7a38399a73417dcc Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed May 18 15:17:46 2022 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed May 18 15:31:26 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a33c56c8 dev-util/clazy: Set LLVM_MAX_SLOT=14 given tests pass Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/{clazy-1.11.ebuild => clazy-1.11-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11.ebuild b/dev-util/clazy/clazy-1.11-r1.ebuild similarity index 98% rename from dev-util/clazy/clazy-1.11.ebuild rename to dev-util/clazy/clazy-1.11-r1.ebuild index 4d285abe7879..3c31743e4cfe 100644 --- a/dev-util/clazy/clazy-1.11.ebuild +++ b/dev-util/clazy/clazy-1.11-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_MAX_SLOT=13 +LLVM_MAX_SLOT=14 PYTHON_COMPAT=( python3_{8,9,10} ) inherit cmake llvm python-any-r1
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 09e634aa9ecfa9ac339179e98559f508772a8ce3 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Feb 21 11:07:34 2022 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Feb 21 12:06:16 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09e634aa dev-util/clazy: EAPI-8 bump Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.11.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.11.ebuild b/dev-util/clazy/clazy-1.11.ebuild index b69ab9ff5253..4d285abe7879 100644 --- a/dev-util/clazy/clazy-1.11.ebuild +++ b/dev-util/clazy/clazy-1.11.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 LLVM_MAX_SLOT=13 PYTHON_COMPAT=( python3_{8,9,10} )
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 9cf5750ca8e7f09a535c4390e8c0999fc5b6bad5 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Jan 21 20:02:08 2022 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Jan 22 12:05:43 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cf5750c dev-util/clazy: 1.11 version bump Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.11.ebuild | 51 2 files changed, 52 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index eae6b70fd4c9..73763eea9f2e 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.10.tar.xz 398920 BLAKE2B 1cdc160de21363c7dc9c93ea7e780412a4971b18e97c7ec6e06f1c7450c56e0fbbdb7592d6b92ae53e4c161f6d9abca205984f83b68646f04ea11d63e3c45fa6 SHA512 59dd8c6903bcc239dfc356804cab265597a771de3858a6add4877149e0e7875b3c9ddae9aeec889c9102fb9ec6b0125bb8a786344e47872b01ba87425ba021eb +DIST clazy-1.11.tar.xz 404088 BLAKE2B 1a69fe07ef81a0efe3c9db9129083247d60943592967f705d62d3859039cec250673eecc06184f70d134cbab85708d957b0a085beff8b3e46325a69547e005b7 SHA512 6a7c162392dd30aea29669275cea814d6daccf7931b8cdb20997f9bbff5619832d5461a6d0f854ecbc4726e52b6937c4f9cb8651087ffe73676c04239a38ca2b diff --git a/dev-util/clazy/clazy-1.11.ebuild b/dev-util/clazy/clazy-1.11.ebuild new file mode 100644 index ..b69ab9ff5253 --- /dev/null +++ b/dev-util/clazy/clazy-1.11.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LLVM_MAX_SLOT=13 +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit cmake llvm python-any-r1 + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://apps.kde.org/clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/files/, dev-util/clazy/
commit: f1c92c1d6530aeb22382ab74c9a2113da5617024 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Jan 19 13:53:34 2022 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Jan 19 13:53:45 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1c92c1d dev-util/clazy: Drop 1.9 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 - dev-util/clazy/clazy-1.9.ebuild | 40 - dev-util/clazy/files/clazy-1.9-llvm12.patch | 88 - dev-util/clazy/files/clazy-1.9-llvm13.patch | 31 -- 4 files changed, 160 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 1a0031b71ddc..eae6b70fd4c9 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ DIST clazy-1.10.tar.xz 398920 BLAKE2B 1cdc160de21363c7dc9c93ea7e780412a4971b18e97c7ec6e06f1c7450c56e0fbbdb7592d6b92ae53e4c161f6d9abca205984f83b68646f04ea11d63e3c45fa6 SHA512 59dd8c6903bcc239dfc356804cab265597a771de3858a6add4877149e0e7875b3c9ddae9aeec889c9102fb9ec6b0125bb8a786344e47872b01ba87425ba021eb -DIST clazy-1.9.tar.xz 394856 BLAKE2B 641ca46a31475cf7bd03ba921e390cb2712362dc97b960a519e05c47049927f805d3ef6f1c756b96d3483e8f4b75e2dc41a2419a462ed2e45cbd08c88c07f933 SHA512 2e8bec44a027366263de23c50d14192e310fd38fa2b369afb21413da9cb78da9882b2153daf1784c4c9076cc62e2867b5211c75ff9a1eabcb583e405f20f5912 diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild deleted file mode 100644 index 781b51040559.. --- a/dev-util/clazy/clazy-1.9.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/en/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="" - -RDEPEND=" - >=sys-devel/clang-5.0:= - >=sys-devel/llvm-5.0:= -" -DEPEND="${RDEPEND}" - -PATCHES=( "${FILESDIR}"/${P}-llvm{12,13}.patch ) # bug 786525 - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "sys-devel/clang") - export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" - cmake_src_configure -} diff --git a/dev-util/clazy/files/clazy-1.9-llvm12.patch b/dev-util/clazy/files/clazy-1.9-llvm12.patch deleted file mode 100644 index 3862f40ad981.. --- a/dev-util/clazy/files/clazy-1.9-llvm12.patch +++ /dev/null @@ -1,88 +0,0 @@ -From 2592a6e3393ebc75e16c91e606ad2015a16295c3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christian=20Sch=C3=A4rf?= -Date: Sat, 23 Jan 2021 15:34:10 +0100 -Subject: [PATCH] Fix build with Clang 12 - -Required due to Clang changes https://github.com/llvm/llvm-project/commit/b3eff6b7bb31e7ef059a3d238de138849839fbbd and https://github.com/llvm/llvm-project/commit/d758f79e5d381bd4f5122193a9538d89c907c812 - src/SourceCompatibilityHelpers.h | 26 ++ - src/SuppressionManager.cpp | 5 ++--- - 2 files changed, 28 insertions(+), 3 deletions(-) - -diff --git a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h -index 4db141ab..1737d5a5 100644 a/src/SourceCompatibilityHelpers.h -+++ b/src/SourceCompatibilityHelpers.h -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - #include - - #if defined(CLAZY_USES_BOOST_REGEX) -@@ -103,6 +104,31 @@ inline clang::tooling::Replacements& DiagnosticFix(clang::tooling::Diagnostic - #endif - } - -+inline auto getBuffer(const clang::SourceManager , clang::FileID id, bool *invalid) -+{ -+#if LLVM_VERSION_MAJOR >= 12 -+auto buffer = sm.getBufferOrNone(id); -+*invalid = !buffer.hasValue(); -+return buffer; -+#else -+return sm.getBuffer(id, invalid); -+#endif -+} -+ -+#if LLVM_VERSION_MAJOR >= 12 -+inline clang::Lexer getLexer(clang::FileID id, llvm::Optional inputFile, -+ const clang::SourceManager , const clang::LangOptions ) -+{ -+return clang::Lexer(id, inputFile.getValue(), sm, lo); -+} -+#else -+inline clang::Lexer getLexer(clang::FileID id, const llvm::MemoryBuffer *inputFile, -+ const clang::SourceManager , const clang::LangOptions ) -+{ -+return clang::Lexer(id, inputFile, sm, lo); -+} -+#endif -+ - } - - #endif -diff --git
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 1ca58663afdd17a2a4786899d3a0c84a36295ab8 Author: Jakov Smolić gentoo org> AuthorDate: Wed Jan 19 13:44:07 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Wed Jan 19 13:44:07 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ca58663 dev-util/clazy: Stabilize 1.10-r2 x86, #810307 Signed-off-by: Jakov Smolić gentoo.org> dev-util/clazy/clazy-1.10-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-util/clazy/clazy-1.10-r2.ebuild b/dev-util/clazy/clazy-1.10-r2.ebuild index bcb85e9d4148..077cb9c6224d 100644 --- a/dev-util/clazy/clazy-1.10-r2.ebuild +++ b/dev-util/clazy/clazy-1.10-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: 4a53b08273b86eed76a989e647aecccfb485b2d4 Author: Sam James gentoo org> AuthorDate: Tue Dec 14 08:22:09 2021 + Commit: Sam James gentoo org> CommitDate: Tue Dec 14 08:22:26 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a53b082 dev-util/clazy: fix build with LLVM < 12 Upstream commit: 0ee1ed9ff1bd4cf2a49e1232696747f1898e2987 Closes: https://bugs.gentoo.org/829134 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.10-r2.ebuild | 1 + .../files/clazy-1.10-llvm-earlier-than-12.patch | 20 2 files changed, 21 insertions(+) diff --git a/dev-util/clazy/clazy-1.10-r2.ebuild b/dev-util/clazy/clazy-1.10-r2.ebuild index f482a18606ed..bcb85e9d4148 100644 --- a/dev-util/clazy/clazy-1.10-r2.ebuild +++ b/dev-util/clazy/clazy-1.10-r2.ebuild @@ -24,6 +24,7 @@ BDEPEND="test? ( ${PYTHON_DEPS} )" PATCHES=( "${FILESDIR}"/${P}-gcc-build.patch "${FILESDIR}"/${P}-use-c++17.patch + "${FILESDIR}"/${P}-llvm-earlier-than-12.patch ) llvm_check_deps() { diff --git a/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch new file mode 100644 index ..714d196b5fd9 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/829134 +https://invent.kde.org/sdk/clazy/-/commit/0ee1ed9ff1bd4cf2a49e1232696747f1898e2987.patch + +From: Allen Winter +Date: Sat, 11 Dec 2021 14:57:52 -0500 +Subject: [PATCH] src/SourceCompatibilityHelpers.h - fix compile with LLVM<12 + +fix the GET_LEXER macro for LLVM versions less than 12 +--- a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h +@@ -123,7 +123,7 @@ clang::Lexer(id, inputFile.getValue(), sm, lo) + + #else + #define GET_LEXER(id, inputFile, sm, lo) \ +-clang::Lexer(id, inputFile.getValue(), sm, lo) ++clang::Lexer(id, inputFile, sm, lo) + #endif + + inline bool isFinal(const clang::CXXRecordDecl *record) +GitLab
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: b4878bbf92012b664886c275514cca0bf50f2897 Author: Sam James gentoo org> AuthorDate: Mon Dec 13 22:41:48 2021 + Commit: Sam James gentoo org> CommitDate: Mon Dec 13 22:41:48 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4878bbf dev-util/clazy: allow LLVM 13 Omitted by mistake. Closes: https://bugs.gentoo.org/823726 Signed-off-by: Sam James gentoo.org> dev-util/clazy/{clazy-1.10-r1.ebuild => clazy-1.10-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.10-r1.ebuild b/dev-util/clazy/clazy-1.10-r2.ebuild similarity index 98% rename from dev-util/clazy/clazy-1.10-r1.ebuild rename to dev-util/clazy/clazy-1.10-r2.ebuild index 4aa0c7104756..f482a18606ed 100644 --- a/dev-util/clazy/clazy-1.10-r1.ebuild +++ b/dev-util/clazy/clazy-1.10-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -LLVM_MAX_SLOT=12 +LLVM_MAX_SLOT=13 PYTHON_COMPAT=( python3_{8,9,10} ) inherit cmake llvm python-any-r1
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 93d01a3125e971fc1579badebe1b05b687f9343c Author: Sam James gentoo org> AuthorDate: Mon Dec 13 00:11:24 2021 + Commit: Sam James gentoo org> CommitDate: Mon Dec 13 00:11:30 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93d01a31 dev-util/clazy: Stabilize 1.10-r1 amd64, #810307 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.10-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.10-r1.ebuild b/dev-util/clazy/clazy-1.10-r1.ebuild index f6c1247cc4ed..4aa0c7104756 100644 --- a/dev-util/clazy/clazy-1.10-r1.ebuild +++ b/dev-util/clazy/clazy-1.10-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 ~x86" IUSE="test" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 53bb19912117d36da9df66dca656213347391006 Author: Sam James gentoo org> AuthorDate: Fri Dec 10 23:59:25 2021 + Commit: Sam James gentoo org> CommitDate: Mon Dec 13 00:11:30 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53bb1991 dev-util/clazy: BDEPEND on Python for tests Avoid using 'python3' directly. Still not passing for me though. Bug: https://bugs.gentoo.org/811723 Signed-off-by: Sam James gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/23246 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.10-r1.ebuild | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dev-util/clazy/clazy-1.10-r1.ebuild b/dev-util/clazy/clazy-1.10-r1.ebuild index d8369600c480..f6c1247cc4ed 100644 --- a/dev-util/clazy/clazy-1.10-r1.ebuild +++ b/dev-util/clazy/clazy-1.10-r1.ebuild @@ -4,7 +4,8 @@ EAPI=7 LLVM_MAX_SLOT=12 -inherit cmake llvm +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit cmake llvm python-any-r1 DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" HOMEPAGE="https://apps.kde.org/clazy; @@ -13,10 +14,12 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" KEYWORDS="~amd64 arm64 ~x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: af5f598a4e43dd87b224e4281b167773c3a5d74e Author: Sam James gentoo org> AuthorDate: Fri Dec 10 23:24:37 2021 + Commit: Sam James gentoo org> CommitDate: Mon Dec 13 00:11:29 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af5f598a dev-util/clazy: use llvm.eclass to declare compatibility and build patch - We need to use llvm.eclass to ensure we don't use too new of a version of LLVM and Clang. We're now using the llvm.eclass mechanisms to enforce the same versions of Clang and LLVM. - Throw in a build patch from upstream (upstream commit b74c8729b7b71528c1528579435cda7fdb5d31b4) which was necessary for me. Bug: https://bugs.gentoo.org/811723 Bug: https://bugs.gentoo.org/823726 Closes: https://bugs.gentoo.org/824986 Signed-off-by: Sam James gentoo.org> .../{clazy-1.10.ebuild => clazy-1.10-r1.ebuild}| 25 ++-- dev-util/clazy/files/clazy-1.10-gcc-build.patch| 44 ++ dev-util/clazy/files/clazy-1.10-use-c++17.patch| 20 ++ 3 files changed, 78 insertions(+), 11 deletions(-) diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10-r1.ebuild similarity index 63% rename from dev-util/clazy/clazy-1.10.ebuild rename to dev-util/clazy/clazy-1.10-r1.ebuild index 160c50c5c641..d8369600c480 100644 --- a/dev-util/clazy/clazy-1.10.ebuild +++ b/dev-util/clazy/clazy-1.10-r1.ebuild @@ -3,7 +3,8 @@ EAPI=7 -inherit cmake +LLVM_MAX_SLOT=12 +inherit cmake llvm DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" HOMEPAGE="https://apps.kde.org/clazy; @@ -14,12 +15,18 @@ SLOT="0" KEYWORDS="~amd64 arm64 ~x86" IUSE="" -RDEPEND=" - >=sys-devel/clang-8.0:= - >=sys-devel/llvm-8.0:= -" +RDEPEND="https://invent.kde.org/sdk/clazy/-/commit/b74c8729b7b71528c1528579435cda7fdb5d31b4 + +From: Sergio Martins +Date: Thu, 2 Dec 2021 11:05:51 + +Subject: [PATCH] Fix build with some newer gcc complaining about deleted Lexer + +--- a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h +@@ -117,17 +117,13 @@ inline auto getBuffer(const clang::SourceManager , clang::FileID id, bool *in + } + + #if LLVM_VERSION_MAJOR >= 12 +-inline clang::Lexer getLexer(clang::FileID id, llvm::Optional inputFile, +- const clang::SourceManager , const clang::LangOptions ) +-{ +-return clang::Lexer(id, inputFile.getValue(), sm, lo); +-} ++ ++#define GET_LEXER(id, inputFile, sm, lo) \ ++clang::Lexer(id, inputFile.getValue(), sm, lo) ++ + #else +-inline clang::Lexer getLexer(clang::FileID id, const llvm::MemoryBuffer *inputFile, +- const clang::SourceManager , const clang::LangOptions ) +-{ +-return clang::Lexer(id, inputFile, sm, lo); +-} ++#define GET_LEXER(id, inputFile, sm, lo) \ ++clang::Lexer(id, inputFile.getValue(), sm, lo) + #endif + + inline bool isFinal(const clang::CXXRecordDecl *record) +--- a/src/SuppressionManager.cpp b/src/SuppressionManager.cpp +@@ -91,7 +91,7 @@ void SuppressionManager::parseFile(FileID id, const SourceManager , const cla + return; + } + +-auto lexer = clazy::getLexer(id, buffer, sm, lo); ++auto lexer = GET_LEXER(id, buffer, sm, lo); + lexer.SetCommentRetentionState(true); + + Token token; +GitLab diff --git a/dev-util/clazy/files/clazy-1.10-use-c++17.patch b/dev-util/clazy/files/clazy-1.10-use-c++17.patch new file mode 100644 index ..73bd52aef0e4 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.10-use-c++17.patch @@ -0,0 +1,20 @@ +https://invent.kde.org/sdk/clazy/-/commit/b0d831a6716229d18f2677c5d356b37f36d4dfd6 + +From: Sergio Martins +Date: Thu, 2 Dec 2021 11:31:58 + +Subject: [PATCH] cmake: Require c++17 + +Fixes build with newer compiler which were nagging about not +finding std::filesystem +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -69,7 +69,7 @@ if(MSVC) + # disable trigger-happy warnings from Clang/LLVM headers + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244 /wd4291 /wd4800 /wd4141 /wd4146 /wd4251") + elseif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti") + endif() + + set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress") +GitLab
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: e4b46346ff1f6a87a637640677d2cfd0f0905cbe Author: Sam James gentoo org> AuthorDate: Sat Dec 11 01:17:27 2021 + Commit: Sam James gentoo org> CommitDate: Sat Dec 11 01:17:27 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b46346 Revert "dev-util/clazy: use llvm.eclass to declare compatibility" This reverts commit 15d1e9c51bee91279e79fad16777338e6aff1b8b. (Didn't mean to push yet, sorry!) Bug: https://bugs.gentoo.org/823726 Signed-off-by: Sam James gentoo.org> dev-util/clazy/{clazy-1.10-r1.ebuild => clazy-1.10.ebuild} | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dev-util/clazy/clazy-1.10-r1.ebuild b/dev-util/clazy/clazy-1.10.ebuild similarity index 83% rename from dev-util/clazy/clazy-1.10-r1.ebuild rename to dev-util/clazy/clazy-1.10.ebuild index d8be54c089d8..160c50c5c641 100644 --- a/dev-util/clazy/clazy-1.10-r1.ebuild +++ b/dev-util/clazy/clazy-1.10.ebuild @@ -3,8 +3,7 @@ EAPI=7 -LLVM_MAX_SLOT=12 -inherit cmake llvm +inherit cmake DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" HOMEPAGE="https://apps.kde.org/clazy; @@ -15,13 +14,12 @@ SLOT="0" KEYWORDS="~amd64 arm64 ~x86" IUSE="" -RDEPEND=">=sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=" +RDEPEND=" + >=sys-devel/clang-8.0:= + >=sys-devel/llvm-8.0:= +" DEPEND="${RDEPEND}" -llvm_check_deps() { - has_version "sys-devel/clang:${LLVM_SLOT}" && has_version "sys-devel/llvm:${LLVM_SLOT}" -} - src_prepare() { cmake_src_prepare
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 15d1e9c51bee91279e79fad16777338e6aff1b8b Author: Sam James gentoo org> AuthorDate: Fri Dec 10 23:24:37 2021 + Commit: Sam James gentoo org> CommitDate: Sat Dec 11 01:16:16 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d1e9c5 dev-util/clazy: use llvm.eclass to declare compatibility We need to use llvm.eclass to ensure we don't use too new of a version of LLVM and Clang. Closes: https://bugs.gentoo.org/823726 Bug: https://bugs.gentoo.org/823726 Signed-off-by: Sam James gentoo.org> dev-util/clazy/{clazy-1.10.ebuild => clazy-1.10-r1.ebuild} | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10-r1.ebuild similarity index 83% rename from dev-util/clazy/clazy-1.10.ebuild rename to dev-util/clazy/clazy-1.10-r1.ebuild index 160c50c5c641..d8be54c089d8 100644 --- a/dev-util/clazy/clazy-1.10.ebuild +++ b/dev-util/clazy/clazy-1.10-r1.ebuild @@ -3,7 +3,8 @@ EAPI=7 -inherit cmake +LLVM_MAX_SLOT=12 +inherit cmake llvm DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" HOMEPAGE="https://apps.kde.org/clazy; @@ -14,12 +15,13 @@ SLOT="0" KEYWORDS="~amd64 arm64 ~x86" IUSE="" -RDEPEND=" - >=sys-devel/clang-8.0:= - >=sys-devel/llvm-8.0:= -" +RDEPEND=">=sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=" DEPEND="${RDEPEND}" +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" && has_version "sys-devel/llvm:${LLVM_SLOT}" +} + src_prepare() { cmake_src_prepare
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: d6a0bf9437a7278215c25a7e3f65cdbb5a8608d6 Author: Sam James gentoo org> AuthorDate: Sat Oct 16 23:41:22 2021 + Commit: Sam James gentoo org> CommitDate: Sat Oct 16 23:41:57 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a0bf94 dev-util/clazy: run tests against built copy of clazy This doesn't get us all of the way there yet though, tests still fail due to Clang shenanigans with include paths(?) Bug: https://bugs.gentoo.org/811723 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.10.ebuild | 6 ++ 1 file changed, 6 insertions(+) diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10.ebuild index 7f7ef80b920..160c50c5c64 100644 --- a/dev-util/clazy/clazy-1.10.ebuild +++ b/dev-util/clazy/clazy-1.10.ebuild @@ -36,3 +36,9 @@ src_configure() { export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" cmake_src_configure } + +src_test() { + # Run tests against built copy, not installed + # bug #811723 + PATH="${BUILD_DIR}/bin:${PATH}" LD_LIBRARY_PATH="${BUILD_DIR}/lib" cmake_src_test +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: d096e08e672b70624fc0ff2b6574f8dccca2d89c Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Jul 29 18:14:55 2021 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Jul 29 18:17:42 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d096e08e dev-util/clazy: 1.10 version bump Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.10.ebuild | 38 ++ 2 files changed, 39 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 98c700ef3fc..1a0031b71dd 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ +DIST clazy-1.10.tar.xz 398920 BLAKE2B 1cdc160de21363c7dc9c93ea7e780412a4971b18e97c7ec6e06f1c7450c56e0fbbdb7592d6b92ae53e4c161f6d9abca205984f83b68646f04ea11d63e3c45fa6 SHA512 59dd8c6903bcc239dfc356804cab265597a771de3858a6add4877149e0e7875b3c9ddae9aeec889c9102fb9ec6b0125bb8a786344e47872b01ba87425ba021eb DIST clazy-1.9.tar.xz 394856 BLAKE2B 641ca46a31475cf7bd03ba921e390cb2712362dc97b960a519e05c47049927f805d3ef6f1c756b96d3483e8f4b75e2dc41a2419a462ed2e45cbd08c88c07f933 SHA512 2e8bec44a027366263de23c50d14192e310fd38fa2b369afb21413da9cb78da9882b2153daf1784c4c9076cc62e2867b5211c75ff9a1eabcb583e405f20f5912 diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10.ebuild new file mode 100644 index 000..a4846ed8082 --- /dev/null +++ b/dev-util/clazy/clazy-1.10.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://apps.kde.org/clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +RDEPEND=" + >=sys-devel/clang-8.0:= + >=sys-devel/llvm-8.0:= +" +DEPEND="${RDEPEND}" + +src_prepare() { + cmake_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version "sys-devel/clang") + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" + cmake_src_configure +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/files/, dev-util/clazy/
commit: 10d7a5b482f6282eaefdb28ceda51f2ec99056f8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat May 1 20:18:02 2021 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat May 1 21:21:56 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d7a5b4 dev-util/clazy: Fix build with LLVM-12/13 Closes: https://bugs.gentoo.org/786525 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.9.ebuild | 2 + dev-util/clazy/files/clazy-1.9-llvm12.patch | 88 + dev-util/clazy/files/clazy-1.9-llvm13.patch | 31 ++ 3 files changed, 121 insertions(+) diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild index 9062383103c..781b5104055 100644 --- a/dev-util/clazy/clazy-1.9.ebuild +++ b/dev-util/clazy/clazy-1.9.ebuild @@ -20,6 +20,8 @@ RDEPEND=" " DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}"/${P}-llvm{12,13}.patch ) # bug 786525 + src_prepare() { cmake_src_prepare diff --git a/dev-util/clazy/files/clazy-1.9-llvm12.patch b/dev-util/clazy/files/clazy-1.9-llvm12.patch new file mode 100644 index 000..3862f40ad98 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.9-llvm12.patch @@ -0,0 +1,88 @@ +From 2592a6e3393ebc75e16c91e606ad2015a16295c3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20Sch=C3=A4rf?= +Date: Sat, 23 Jan 2021 15:34:10 +0100 +Subject: [PATCH] Fix build with Clang 12 + +Required due to Clang changes https://github.com/llvm/llvm-project/commit/b3eff6b7bb31e7ef059a3d238de138849839fbbd and https://github.com/llvm/llvm-project/commit/d758f79e5d381bd4f5122193a9538d89c907c812 +--- + src/SourceCompatibilityHelpers.h | 26 ++ + src/SuppressionManager.cpp | 5 ++--- + 2 files changed, 28 insertions(+), 3 deletions(-) + +diff --git a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h +index 4db141ab..1737d5a5 100644 +--- a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + + #if defined(CLAZY_USES_BOOST_REGEX) +@@ -103,6 +104,31 @@ inline clang::tooling::Replacements& DiagnosticFix(clang::tooling::Diagnostic + #endif + } + ++inline auto getBuffer(const clang::SourceManager , clang::FileID id, bool *invalid) ++{ ++#if LLVM_VERSION_MAJOR >= 12 ++auto buffer = sm.getBufferOrNone(id); ++*invalid = !buffer.hasValue(); ++return buffer; ++#else ++return sm.getBuffer(id, invalid); ++#endif ++} ++ ++#if LLVM_VERSION_MAJOR >= 12 ++inline clang::Lexer getLexer(clang::FileID id, llvm::Optional inputFile, ++ const clang::SourceManager , const clang::LangOptions ) ++{ ++return clang::Lexer(id, inputFile.getValue(), sm, lo); ++} ++#else ++inline clang::Lexer getLexer(clang::FileID id, const llvm::MemoryBuffer *inputFile, ++ const clang::SourceManager , const clang::LangOptions ) ++{ ++return clang::Lexer(id, inputFile, sm, lo); ++} ++#endif ++ + } + + #endif +diff --git a/src/SuppressionManager.cpp b/src/SuppressionManager.cpp +index 9d774ea6..9881388d 100644 +--- a/src/SuppressionManager.cpp b/src/SuppressionManager.cpp +@@ -24,7 +24,6 @@ + #include "clazy_stl.h" + + #include +-#include + #include + #include + #include +@@ -84,7 +83,7 @@ void SuppressionManager::parseFile(FileID id, const SourceManager , const cla + Suppressions = (*it).second; + + bool invalid = false; +-auto buffer = sm.getBuffer(id, ); ++auto buffer = clazy::getBuffer(sm, id, ); + if (invalid) { + llvm::errs() << "SuppressionManager::parseFile: Invalid buffer "; + if (buffer) +@@ -92,7 +91,7 @@ void SuppressionManager::parseFile(FileID id, const SourceManager , const cla + return; + } + +-Lexer lexer(id, buffer, sm, lo); ++auto lexer = clazy::getLexer(id, buffer, sm, lo); + lexer.SetCommentRetentionState(true); + + Token token; +-- +GitLab + diff --git a/dev-util/clazy/files/clazy-1.9-llvm13.patch b/dev-util/clazy/files/clazy-1.9-llvm13.patch new file mode 100644 index 000..9bbac8f7624 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.9-llvm13.patch @@ -0,0 +1,31 @@ +From 0bf4e428c76270f4534a0a8df3cf6912157f22ab Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= +Date: Sat, 17 Apr 2021 20:57:10 +0200 +Subject: [PATCH] Fix build with LLVM 13 + +--- + src/ClazyStandaloneMain.cpp | 8 +++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/ClazyStandaloneMain.cpp b/src/ClazyStandaloneMain.cpp +index 41c4fcf9..7b4cf5d3 100644 +--- a/src/ClazyStandaloneMain.cpp b/src/ClazyStandaloneMain.cpp +@@ -158,7 +158,13 @@ llvm::IntrusiveRefCntPtr getVfsFromFile(const std::string + + int main(int argc, const char **argv) + { +-CommonOptionsParser optionsParser(argc, argv,
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 1b701dcbad316a55a623b48f570cc70d14cfdc27 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Mar 7 19:52:01 2021 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 7 19:52:46 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b701dcb dev-util/clazy: Drop 1.8 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 - dev-util/clazy/clazy-1.8.ebuild | 39 --- 2 files changed, 40 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 25cb2b700b9..98c700ef3fc 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.8.tar.xz 392328 BLAKE2B 9ece9d279b2bd7e4c15ad35d9943636a107abd47cf0ed0b20db305b1684610fb84c6f9c7f606f159f0b5a48b881506796f0addf12246f2e9929a08225fcc5c74 SHA512 c43a393721a5235ddcd653f9c322e0a215f86add3b1ce42f849677c108cd21209693c6e8f225171db88032c75596722109ee01bc53db4af90fe7652f27c1eba5 DIST clazy-1.9.tar.xz 394856 BLAKE2B 641ca46a31475cf7bd03ba921e390cb2712362dc97b960a519e05c47049927f805d3ef6f1c756b96d3483e8f4b75e2dc41a2419a462ed2e45cbd08c88c07f933 SHA512 2e8bec44a027366263de23c50d14192e310fd38fa2b369afb21413da9cb78da9882b2153daf1784c4c9076cc62e2867b5211c75ff9a1eabcb583e405f20f5912 diff --git a/dev-util/clazy/clazy-1.8.ebuild b/dev-util/clazy/clazy-1.8.ebuild deleted file mode 100644 index 9cba0ac1360..000 --- a/dev-util/clazy/clazy-1.8.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/en/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" -S="${WORKDIR}" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="" - -RDEPEND=" - >=sys-devel/clang-5.0:= - >=sys-devel/llvm-5.0:= -" -DEPEND="${RDEPEND}" - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "sys-devel/clang") - export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" - cmake_src_configure -}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: c09af474733677ff53418736af0256207b3bf247 Author: Sam James gentoo org> AuthorDate: Sun Mar 7 19:44:36 2021 + Commit: Sam James gentoo org> CommitDate: Sun Mar 7 19:44:36 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c09af474 dev-util/clazy: Stabilize 1.9 amd64, #774309 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.9.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild index bb94fb68e06..9062383103c 100644 --- a/dev-util/clazy/clazy-1.9.ebuild +++ b/dev-util/clazy/clazy-1.9.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 arm64 x86" +KEYWORDS="amd64 arm64 x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: e7c02e007c0ada887887066e2631b21ba41e010e Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Mar 6 14:39:52 2021 + Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Mar 6 14:39:52 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7c02e00 dev-util/clazy: x86 stable (bug #774309) Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann gentoo.org> dev-util/clazy/clazy-1.9.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild index ba5ad4d940f..bb94fb68e06 100644 --- a/dev-util/clazy/clazy-1.9.ebuild +++ b/dev-util/clazy/clazy-1.9.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 arm64 ~x86" +KEYWORDS="~amd64 arm64 x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 86078a09b64427bb75de1dd71a45e01dac94edeb Author: Sam James gentoo org> AuthorDate: Sat Mar 6 07:26:10 2021 + Commit: Sam James gentoo org> CommitDate: Sat Mar 6 07:26:10 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86078a09 dev-util/clazy: Stabilize 1.9 arm64, #774309 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.9.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild index e9b6e64599a..ba5ad4d940f 100644 --- a/dev-util/clazy/clazy-1.9.ebuild +++ b/dev-util/clazy/clazy-1.9.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 arm64 ~x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: efa31879fe8c63ded4dac5f836d2135eeb1303b7 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Jan 13 23:17:35 2021 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Jan 13 23:17:35 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efa31879 dev-util/clazy: 1.9 version bump See also: https://mail.kde.org/pipermail/kde-announce-apps/2021-January/005627.html Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.9.ebuild | 38 ++ 2 files changed, 39 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 6de4bbca805..25cb2b700b9 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.8.tar.xz 392328 BLAKE2B 9ece9d279b2bd7e4c15ad35d9943636a107abd47cf0ed0b20db305b1684610fb84c6f9c7f606f159f0b5a48b881506796f0addf12246f2e9929a08225fcc5c74 SHA512 c43a393721a5235ddcd653f9c322e0a215f86add3b1ce42f849677c108cd21209693c6e8f225171db88032c75596722109ee01bc53db4af90fe7652f27c1eba5 +DIST clazy-1.9.tar.xz 394856 BLAKE2B 641ca46a31475cf7bd03ba921e390cb2712362dc97b960a519e05c47049927f805d3ef6f1c756b96d3483e8f4b75e2dc41a2419a462ed2e45cbd08c88c07f933 SHA512 2e8bec44a027366263de23c50d14192e310fd38fa2b369afb21413da9cb78da9882b2153daf1784c4c9076cc62e2867b5211c75ff9a1eabcb583e405f20f5912 diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild new file mode 100644 index 000..e9b6e64599a --- /dev/null +++ b/dev-util/clazy/clazy-1.9.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://apps.kde.org/en/clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +RDEPEND=" + >=sys-devel/clang-5.0:= + >=sys-devel/llvm-5.0:= +" +DEPEND="${RDEPEND}" + +src_prepare() { + cmake_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version "sys-devel/clang") + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" + cmake_src_configure +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: a478a7675801c0a67cf3ea519ed7f752e114837f Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Jan 7 16:57:04 2021 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Jan 7 17:30:19 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a478a767 dev-util/clazy: Drop 1.7-r1 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest| 1 - dev-util/clazy/clazy-1.7-r1.ebuild | 43 --- .../clazy/files/clazy-1.7-gnuinstalldirs.patch | 82 - dev-util/clazy/files/clazy-1.7-llvm11-1.patch | 343 - dev-util/clazy/files/clazy-1.7-llvm11-2.patch | 28 -- 5 files changed, 497 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index fe8cc3259b0..6de4bbca805 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.7.tar.xz 371788 BLAKE2B 281acd0164cf76510e46883fff7269aa77e4b815d6d0ca5a54307165ff8f4355e095b82e0c41cdb0af391f4a15048a8d64b2a2a7b9dabc042b36ba1a380405cc SHA512 3dba993140f3d69aac8d9cf3fa49db990185928647193220b689773bbca70f9fd9ee7fc52022e6029b3c0c81800301a593bd79edee7e1fa6c5884782d390ced6 DIST clazy-1.8.tar.xz 392328 BLAKE2B 9ece9d279b2bd7e4c15ad35d9943636a107abd47cf0ed0b20db305b1684610fb84c6f9c7f606f159f0b5a48b881506796f0addf12246f2e9929a08225fcc5c74 SHA512 c43a393721a5235ddcd653f9c322e0a215f86add3b1ce42f849677c108cd21209693c6e8f225171db88032c75596722109ee01bc53db4af90fe7652f27c1eba5 diff --git a/dev-util/clazy/clazy-1.7-r1.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild deleted file mode 100644 index ffa163aa4fa..000 --- a/dev-util/clazy/clazy-1.7-r1.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/en/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64 arm64 x86" -IUSE="" - -RDEPEND=" - >=sys-devel/clang-5.0:= - >=sys-devel/llvm-5.0:= -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${P}-gnuinstalldirs.patch - "${FILESDIR}"/${P}-llvm11-{1,2}.patch -) - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "sys-devel/clang") - export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" - cmake_src_configure -} diff --git a/dev-util/clazy/files/clazy-1.7-gnuinstalldirs.patch b/dev-util/clazy/files/clazy-1.7-gnuinstalldirs.patch deleted file mode 100644 index c58093a2db2..000 --- a/dev-util/clazy/files/clazy-1.7-gnuinstalldirs.patch +++ /dev/null @@ -1,82 +0,0 @@ -From 111c6971cd791f336eaaa8ef142c8212a7e65a3a Mon Sep 17 00:00:00 2001 -From: Andreas Sturmlechner -Date: Tue, 30 Jun 2020 12:56:56 +0200 -Subject: [PATCH] Use more GNUInstallDirs (doc, man) - - CMakeLists.txt | 21 - - docs/man/CMakeLists.txt | 2 +- - 2 files changed, 9 insertions(+), 14 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index c55103b..2532a8d 100644 a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -15,7 +15,7 @@ endif() - - include(FeatureSummary) - include(GenerateExportHeader) --include("GNUInstallDirs") -+include(GNUInstallDirs) - - # Version setup - set(CLAZY_VERSION_MAJOR "1") -@@ -184,8 +184,6 @@ if (NOT CLAZY_BUILD_WITH_CLANG) - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - ) - -- set(SHARE_INSTALL_DIR ${CMAKE_INSTALL_DATAROOTDIR} CACHE STRING "Share directory name") -- - if(NOT WIN32) - if(APPLE) - find_program(READLINK_CMD greadlink) -@@ -200,27 +198,24 @@ if (NOT CLAZY_BUILD_WITH_CLANG) - configure_file(${CMAKE_CURRENT_LIST_DIR}/clazy.cmake ${CMAKE_BINARY_DIR}/clazy @ONLY) - install(PROGRAMS ${CMAKE_BINARY_DIR}/clazy DESTINATION bin) - else() --install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy.bat DESTINATION bin) -+install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy.bat DESTINATION ${CMAKE_INSTALL_BINDIR}) - if(MSVC) -- install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy-cl.bat DESTINATION bin) -+ install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy-cl.bat DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - endif() - - # Install the explanation README's -- set(DOC_INSTALL_DIR ${SHARE_INSTALL_DIR}/doc/clazy) -- - include(${CMAKE_CURRENT_LIST_DIR}/readmes.cmake)
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: e43caa17beb43d0a23a1c470f67819783f83b5c0 Author: Sam James gentoo org> AuthorDate: Thu Jan 7 15:04:16 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jan 7 15:04:16 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e43caa17 dev-util/clazy: Stabilize 1.8 x86, #761682 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.8.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-util/clazy/clazy-1.8.ebuild b/dev-util/clazy/clazy-1.8.ebuild index 3c4620309b4..9cba0ac1360 100644 --- a/dev-util/clazy/clazy-1.8.ebuild +++ b/dev-util/clazy/clazy-1.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ S="${WORKDIR}" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 856cbb0b81cbfe315ebecf0e9e42345f04c633dc Author: Sam James gentoo org> AuthorDate: Tue Dec 29 07:56:10 2020 + Commit: Sam James gentoo org> CommitDate: Tue Dec 29 07:56:34 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=856cbb0b dev-util/clazy: Stabilize 1.8 amd64, #761682 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.8.ebuild b/dev-util/clazy/clazy-1.8.ebuild index c3f70aa2456..3c4620309b4 100644 --- a/dev-util/clazy/clazy-1.8.ebuild +++ b/dev-util/clazy/clazy-1.8.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 arm64 ~x86" +KEYWORDS="amd64 arm64 ~x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 4a55ca408a49d4b1c7799d3e013dbdcd99b62bb0 Author: Sam James gentoo org> AuthorDate: Sun Dec 27 04:12:24 2020 + Commit: Sam James gentoo org> CommitDate: Sun Dec 27 04:12:24 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a55ca40 dev-util/clazy: Stabilize 1.8 arm64, #761682 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.8.ebuild b/dev-util/clazy/clazy-1.8.ebuild index fdc21c991d4..c3f70aa2456 100644 --- a/dev-util/clazy/clazy-1.8.ebuild +++ b/dev-util/clazy/clazy-1.8.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 arm64 ~x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: a86f636775b63ea48860352f94546c69020c6788 Author: Mikle Kolyada gentoo org> AuthorDate: Wed Nov 25 16:25:31 2020 + Commit: Mikle Kolyada gentoo org> CommitDate: Wed Nov 25 16:37:47 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a86f6367 dev-util/clazy: Stabilize 1.7-r1 arm64, #753242 Signed-off-by: Mikle Kolyada gentoo.org> dev-util/clazy/clazy-1.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7-r1.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild index bb0660abe96..ffa163aa4fa 100644 --- a/dev-util/clazy/clazy-1.7-r1.ebuild +++ b/dev-util/clazy/clazy-1.7-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 ~arm64 x86" +KEYWORDS="amd64 arm64 x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: fc942426ff818432089f950d7817049d766c6365 Author: Mikle Kolyada gentoo org> AuthorDate: Wed Nov 25 16:21:24 2020 + Commit: Mikle Kolyada gentoo org> CommitDate: Wed Nov 25 16:22:54 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc942426 dev-util/clazy: Stabilize 1.7-r1 x86, #753242 Signed-off-by: Mikle Kolyada gentoo.org> dev-util/clazy/clazy-1.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7-r1.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild index db6385b555d..bb0660abe96 100644 --- a/dev-util/clazy/clazy-1.7-r1.ebuild +++ b/dev-util/clazy/clazy-1.7-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 19822e377c22af3ca8f9411b6adab78c3ee0a53f Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Nov 24 00:06:43 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Nov 24 00:26:02 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19822e37 dev-util/clazy: 1.8 version bump Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.8.ebuild | 39 +++ 2 files changed, 40 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 286b8ca39df..fe8cc3259b0 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.7.tar.xz 371788 BLAKE2B 281acd0164cf76510e46883fff7269aa77e4b815d6d0ca5a54307165ff8f4355e095b82e0c41cdb0af391f4a15048a8d64b2a2a7b9dabc042b36ba1a380405cc SHA512 3dba993140f3d69aac8d9cf3fa49db990185928647193220b689773bbca70f9fd9ee7fc52022e6029b3c0c81800301a593bd79edee7e1fa6c5884782d390ced6 +DIST clazy-1.8.tar.xz 392328 BLAKE2B 9ece9d279b2bd7e4c15ad35d9943636a107abd47cf0ed0b20db305b1684610fb84c6f9c7f606f159f0b5a48b881506796f0addf12246f2e9929a08225fcc5c74 SHA512 c43a393721a5235ddcd653f9c322e0a215f86add3b1ce42f849677c108cd21209693c6e8f225171db88032c75596722109ee01bc53db4af90fe7652f27c1eba5 diff --git a/dev-util/clazy/clazy-1.8.ebuild b/dev-util/clazy/clazy-1.8.ebuild new file mode 100644 index 000..fdc21c991d4 --- /dev/null +++ b/dev-util/clazy/clazy-1.8.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://apps.kde.org/en/clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" +S="${WORKDIR}" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +RDEPEND=" + >=sys-devel/clang-5.0:= + >=sys-devel/llvm-5.0:= +" +DEPEND="${RDEPEND}" + +src_prepare() { + cmake_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version "sys-devel/clang") + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" + cmake_src_configure +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 1a5d03765f47a1eb23760e3b564616faa7e92990 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Nov 20 19:03:41 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Nov 20 20:39:46 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a5d0376 dev-util/clazy: 1.7-r1 amd64 stable Since llvm-11 was stabilised we need to stabilise this independently. Bug: https://bugs.gentoo.org/749876 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7-r1.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild index 099f3b851ad..db6385b555d 100644 --- a/dev-util/clazy/clazy-1.7-r1.ebuild +++ b/dev-util/clazy/clazy-1.7-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 ~x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: a1f0fb50d3fd83a087798f324c198b765aaafef1 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Nov 20 19:04:04 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Nov 20 20:39:46 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1f0fb50 dev-util/clazy: Drop 1.7 (r0) Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.7.ebuild | 40 1 file changed, 40 deletions(-) diff --git a/dev-util/clazy/clazy-1.7.ebuild b/dev-util/clazy/clazy-1.7.ebuild deleted file mode 100644 index a364a426b70..000 --- a/dev-util/clazy/clazy-1.7.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://apps.kde.org/en/clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64" -IUSE="" - -RDEPEND=" - >=sys-devel/clang-5.0:= - >=sys-devel/llvm-5.0:= -" -DEPEND="${RDEPEND}" - -PATCHES=( "${FILESDIR}/${P}-gnuinstalldirs.patch" ) - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "sys-devel/clang") - export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" - cmake_src_configure -}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: b2a823a88d3d53859a0c48962e371318cafffdaf Author: Sam James gentoo org> AuthorDate: Fri Nov 6 14:55:01 2020 + Commit: Sam James gentoo org> CommitDate: Fri Nov 6 14:55:01 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2a823a8 dev-util/clazy: Keyword 1.7-r1 x86, #751337 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7-r1.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild index f4b41ec4a2c..099f3b851ad 100644 --- a/dev-util/clazy/clazy-1.7-r1.ebuild +++ b/dev-util/clazy/clazy-1.7-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="~amd64 ~arm64 ~x86" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 249696b203e2cd3a2dceea8e16ee89d67385983f Author: Sam James gentoo org> AuthorDate: Wed Oct 28 22:40:49 2020 + Commit: Sam James gentoo org> CommitDate: Wed Oct 28 22:40:49 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=249696b2 dev-util/clazy: arm64 keyworded (bug #751337) Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7-r1.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild index cc5ae5d8eb1..f4b41ec4a2c 100644 --- a/dev-util/clazy/clazy-1.7-r1.ebuild +++ b/dev-util/clazy/clazy-1.7-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/files/, dev-util/clazy/
commit: 3cf0b312d76f313c80a28d1c7d112e03e303d3a2 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Oct 26 10:21:23 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Oct 26 13:55:45 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cf0b312 dev-util/clazy: Fix build with LLVM-11 Fix HOMEPAGE Closes: https://bugs.gentoo.org/749876 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> .../{clazy-1.7.ebuild => clazy-1.7-r1.ebuild} | 9 +- dev-util/clazy/clazy-1.7.ebuild| 2 +- dev-util/clazy/files/clazy-1.7-llvm11-1.patch | 343 + dev-util/clazy/files/clazy-1.7-llvm11-2.patch | 28 ++ 4 files changed, 378 insertions(+), 4 deletions(-) diff --git a/dev-util/clazy/clazy-1.7.ebuild b/dev-util/clazy/clazy-1.7-r1.ebuild similarity index 85% copy from dev-util/clazy/clazy-1.7.ebuild copy to dev-util/clazy/clazy-1.7-r1.ebuild index 14f32246c9c..cc5ae5d8eb1 100644 --- a/dev-util/clazy/clazy-1.7.ebuild +++ b/dev-util/clazy/clazy-1.7-r1.ebuild @@ -6,12 +6,12 @@ EAPI=7 inherit cmake DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://kde.org/applications/development/org.kde.clazy; +HOMEPAGE="https://apps.kde.org/en/clazy; SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="amd64" +KEYWORDS="~amd64" IUSE="" RDEPEND=" @@ -20,7 +20,10 @@ RDEPEND=" " DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}/${P}-gnuinstalldirs.patch" ) +PATCHES=( + "${FILESDIR}"/${P}-gnuinstalldirs.patch + "${FILESDIR}"/${P}-llvm11-{1,2}.patch +) src_prepare() { cmake_src_prepare diff --git a/dev-util/clazy/clazy-1.7.ebuild b/dev-util/clazy/clazy-1.7.ebuild index 14f32246c9c..a364a426b70 100644 --- a/dev-util/clazy/clazy-1.7.ebuild +++ b/dev-util/clazy/clazy-1.7.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit cmake DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://kde.org/applications/development/org.kde.clazy; +HOMEPAGE="https://apps.kde.org/en/clazy; SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" diff --git a/dev-util/clazy/files/clazy-1.7-llvm11-1.patch b/dev-util/clazy/files/clazy-1.7-llvm11-1.patch new file mode 100644 index 000..7b25b340a5c --- /dev/null +++ b/dev-util/clazy/files/clazy-1.7-llvm11-1.patch @@ -0,0 +1,343 @@ +From 30d6a2b64f5a05722fdc5d8e3754dbf13425cd62 Mon Sep 17 00:00:00 2001 +From: Egor Gabov +Date: Thu, 4 Jun 2020 17:10:21 +0300 +Subject: [PATCH] updated for compatibility with LLVM 10 + +In LLVM 10 llvm::StringRef operator std::string() is marked as explicit. +In this commit all implicit conversion from llvm::StringRef to +std::string are changed by explicit. +Also included header file clang/Basic/FileManager.h in src/MiniDumper +because without this header, class clang::FileEntry in incomplete class +--- + src/FixItExporter.cpp | 5 +++-- + src/MiniAstDumper.cpp | 1 + + src/Utils.cpp | 2 +- + src/checkbase.cpp | 2 +- + src/checks/detachingbase.cpp | 2 +- + src/checks/level0/qenums.cpp | 2 +- + src/checks/level0/qt-macros.cpp | 4 ++-- + src/checks/level0/unused-non-trivial-variable.cpp | 2 +- + src/checks/level1/detaching-temporary.cpp | 2 +- + src/checks/level1/non-pod-global-static.cpp | 2 +- + src/checks/level1/qproperty-without-notify.cpp| 2 +- + src/checks/level2/missing-typeinfo.cpp| 2 +- + src/checks/level2/old-style-connect.cpp | 6 +++--- + src/checks/level2/rule-of-three.cpp | 2 +- + src/checks/manuallevel/ifndef-define-typo.cpp | 6 +++--- + src/checks/manuallevel/qproperty-type-mismatch.cpp| 2 +- + src/checks/manuallevel/qrequiredresult-candidates.cpp | 2 +- + src/checks/manuallevel/qt-keywords.cpp| 4 ++-- + src/checks/manuallevel/reserve-candidates.cpp | 3 ++- + 19 files changed, 28 insertions(+), 25 deletions(-) + +diff --git a/src/FixItExporter.cpp b/src/FixItExporter.cpp +index f3af2e5..44240cf 100644 +--- a/src/FixItExporter.cpp b/src/FixItExporter.cpp +@@ -68,7 +68,7 @@ void FixItExporter::BeginSourceFile(const LangOptions , const Preproces + + const auto id = SourceMgr.getMainFileID(); + const auto entry = SourceMgr.getFileEntryForID(id); +-getTuDiag().MainSourceFile = entry->getName(); ++getTuDiag().MainSourceFile = static_cast(entry->getName()); + } + + bool FixItExporter::IncludeInDiagnosticCounts() const +@@ -89,7 +89,8 @@ tooling::Diagnostic FixItExporter::ConvertDiagnostic(const Diagnostic ) + // TODO: This returns an empty string:
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/files/, dev-util/clazy/
commit: ea47abb8ad9f6e4df7b0f30baa4b00760355841e Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Aug 21 19:56:55 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Aug 22 16:05:48 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea47abb8 dev-util/clazy: Drop 1.6-r1 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest| 1 - dev-util/clazy/clazy-1.6-r1.ebuild | 53 -- dev-util/clazy/files/clazy-1.6-clang-cpp.patch | 60 - dev-util/clazy/files/clazy-1.6-llvm-10.patch | 75 -- 4 files changed, 189 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index f5bcd93ff3b..286b8ca39df 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.6.tar.xz 364292 BLAKE2B 01da58e34d5a7cb1e812d10264cebe15e90369589535e07f2c9f4520971f2e95b2c70494e99e34f7077957ec1bf01352fa6a72a64f0572e8a5db422267ab727a SHA512 dc7cb9590bbc40a2ac51abe305b6520ebc1ff7128ff21b4f6111d18f14eb8c2ab66d907636a18c7508143b708e70ba69f9d6fad88ffce12dec981a9bdd0edcc0 DIST clazy-1.7.tar.xz 371788 BLAKE2B 281acd0164cf76510e46883fff7269aa77e4b815d6d0ca5a54307165ff8f4355e095b82e0c41cdb0af391f4a15048a8d64b2a2a7b9dabc042b36ba1a380405cc SHA512 3dba993140f3d69aac8d9cf3fa49db990185928647193220b689773bbca70f9fd9ee7fc52022e6029b3c0c81800301a593bd79edee7e1fa6c5884782d390ced6 diff --git a/dev-util/clazy/clazy-1.6-r1.ebuild b/dev-util/clazy/clazy-1.6-r1.ebuild deleted file mode 100644 index 7db5c3d6366..000 --- a/dev-util/clazy/clazy-1.6-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://kde.org/applications/development/org.kde.clazy; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64" -IUSE="" - -RDEPEND=" - >=sys-devel/llvm-3.8:= -" -DEPEND="${RDEPEND}" - -DOCS=( README.md ) - -PATCHES=( - "${FILESDIR}/${P}-llvm-10.patch" - "${FILESDIR}/${P}-clang-cpp.patch" -) - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "sys-devel/clang") - export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" - cmake_src_configure -} - -src_install() { - cmake_src_install - mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die - rmdir "${D}"/usr/share/doc/clazy || die -} diff --git a/dev-util/clazy/files/clazy-1.6-clang-cpp.patch b/dev-util/clazy/files/clazy-1.6-clang-cpp.patch deleted file mode 100644 index 16b9af00ce3..000 --- a/dev-util/clazy/files/clazy-1.6-clang-cpp.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 0e295e5a926496f5a5d46ea4feb1b285b084f5e0 Mon Sep 17 00:00:00 2001 -From: Christophe Giboudeaux -Date: Mon, 11 Nov 2019 10:31:49 +0100 -Subject: Check if clazy should be linked to clang-cpp - -Summary: -According to [1], clang can now provide a single shared library instead of split -ones. - -We have to check if this library exists and link to it if available. - -[1] https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html#build-system-changes - -Reviewers: smartins, kde-buildsystem - -Reviewed By: smartins - -Differential Revision: https://phabricator.kde.org/D25163 - CMakeLists.txt| 11 --- - cmake/FindClang.cmake | 1 + - 2 files changed, 9 insertions(+), 3 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index b7301ed..ce1f887 100644 a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -125,9 +125,14 @@ macro(link_to_llvm name is_standalone) - if(WIN32) - target_link_libraries(${name} version.lib) - endif() --target_link_libraries(${name} clangTooling) --target_link_libraries(${name} clangToolingCore) --target_link_libraries(${name} ${clang_tooling_refactoring_lib}) -+# clang >= 9.0 can provide a single shared library instead of split ones -+if(CLANG_CLANG-CPP_LIB) -+target_link_libraries(${name} clang-cpp) -+else() -+target_link_libraries(${name} clangTooling) -+target_link_libraries(${name} clangToolingCore) -+target_link_libraries(${name}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 465d14901caf39976323ee800061790c059151e5 Author: Agostino Sarubbo gentoo org> AuthorDate: Fri Aug 21 18:19:05 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri Aug 21 18:19:05 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=465d1490 dev-util/clazy: amd64 stable wrt bug #738386 Package-Manager: Portage-2.3.103, Repoman-2.3.23 RepoMan-Options: --include-arches="amd64" Signed-off-by: Agostino Sarubbo gentoo.org> dev-util/clazy/clazy-1.7.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7.ebuild b/dev-util/clazy/clazy-1.7.ebuild index 6d9e004a768..14f32246c9c 100644 --- a/dev-util/clazy/clazy-1.7.ebuild +++ b/dev-util/clazy/clazy-1.7.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 26c3e86a8cf9138351cd81ec622fe3cea8951884 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Jun 30 15:54:35 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jun 30 15:54:48 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26c3e86a dev-util/clazy: Remove TrailingEmptyLine Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.7.ebuild | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.7.ebuild b/dev-util/clazy/clazy-1.7.ebuild index d2e60deaa67..6d9e004a768 100644 --- a/dev-util/clazy/clazy-1.7.ebuild +++ b/dev-util/clazy/clazy-1.7.ebuild @@ -38,4 +38,3 @@ src_configure() { export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" cmake_src_configure } -
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: a6de9965d65b29942c78a8406ad57684aef0941b Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Jun 30 10:37:38 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jun 30 12:13:35 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6de9965 dev-util/clazy: 1.7 version bump Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest| 1 + dev-util/clazy/clazy-1.7.ebuild| 41 +++ .../clazy/files/clazy-1.7-gnuinstalldirs.patch | 82 ++ 3 files changed, 124 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 85c2cfdf47b..f5bcd93ff3b 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.6.tar.xz 364292 BLAKE2B 01da58e34d5a7cb1e812d10264cebe15e90369589535e07f2c9f4520971f2e95b2c70494e99e34f7077957ec1bf01352fa6a72a64f0572e8a5db422267ab727a SHA512 dc7cb9590bbc40a2ac51abe305b6520ebc1ff7128ff21b4f6111d18f14eb8c2ab66d907636a18c7508143b708e70ba69f9d6fad88ffce12dec981a9bdd0edcc0 +DIST clazy-1.7.tar.xz 371788 BLAKE2B 281acd0164cf76510e46883fff7269aa77e4b815d6d0ca5a54307165ff8f4355e095b82e0c41cdb0af391f4a15048a8d64b2a2a7b9dabc042b36ba1a380405cc SHA512 3dba993140f3d69aac8d9cf3fa49db990185928647193220b689773bbca70f9fd9ee7fc52022e6029b3c0c81800301a593bd79edee7e1fa6c5884782d390ced6 diff --git a/dev-util/clazy/clazy-1.7.ebuild b/dev-util/clazy/clazy-1.7.ebuild new file mode 100644 index 000..d2e60deaa67 --- /dev/null +++ b/dev-util/clazy/clazy-1.7.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://kde.org/applications/development/org.kde.clazy; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + >=sys-devel/clang-5.0:= + >=sys-devel/llvm-5.0:= +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${P}-gnuinstalldirs.patch" ) + +src_prepare() { + cmake_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version "sys-devel/clang") + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" + cmake_src_configure +} + diff --git a/dev-util/clazy/files/clazy-1.7-gnuinstalldirs.patch b/dev-util/clazy/files/clazy-1.7-gnuinstalldirs.patch new file mode 100644 index 000..c58093a2db2 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.7-gnuinstalldirs.patch @@ -0,0 +1,82 @@ +From 111c6971cd791f336eaaa8ef142c8212a7e65a3a Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Tue, 30 Jun 2020 12:56:56 +0200 +Subject: [PATCH] Use more GNUInstallDirs (doc, man) + +--- + CMakeLists.txt | 21 - + docs/man/CMakeLists.txt | 2 +- + 2 files changed, 9 insertions(+), 14 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c55103b..2532a8d 100644 +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -15,7 +15,7 @@ endif() + + include(FeatureSummary) + include(GenerateExportHeader) +-include("GNUInstallDirs") ++include(GNUInstallDirs) + + # Version setup + set(CLAZY_VERSION_MAJOR "1") +@@ -184,8 +184,6 @@ if (NOT CLAZY_BUILD_WITH_CLANG) + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + +- set(SHARE_INSTALL_DIR ${CMAKE_INSTALL_DATAROOTDIR} CACHE STRING "Share directory name") +- + if(NOT WIN32) + if(APPLE) + find_program(READLINK_CMD greadlink) +@@ -200,27 +198,24 @@ if (NOT CLAZY_BUILD_WITH_CLANG) + configure_file(${CMAKE_CURRENT_LIST_DIR}/clazy.cmake ${CMAKE_BINARY_DIR}/clazy @ONLY) + install(PROGRAMS ${CMAKE_BINARY_DIR}/clazy DESTINATION bin) + else() +-install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy.bat DESTINATION bin) ++install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy.bat DESTINATION ${CMAKE_INSTALL_BINDIR}) + if(MSVC) +- install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy-cl.bat DESTINATION bin) ++ install(PROGRAMS ${CMAKE_CURRENT_LIST_DIR}/clazy-cl.bat DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif() + endif() + + # Install the explanation README's +- set(DOC_INSTALL_DIR ${SHARE_INSTALL_DIR}/doc/clazy) +- + include(${CMAKE_CURRENT_LIST_DIR}/readmes.cmake) + +- install(FILES ${README_LEVEL0_FILES} DESTINATION ${DOC_INSTALL_DIR}/level0) +- install(FILES ${README_LEVEL1_FILES} DESTINATION ${DOC_INSTALL_DIR}/level1) +-
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 77456589462d87e2d98a3084b2b4015a23004fdd Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat May 16 18:47:15 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat May 16 18:48:22 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77456589 dev-util/clazy: Set proper HOMEPAGE now that it has one Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.6-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.6-r1.ebuild b/dev-util/clazy/clazy-1.6-r1.ebuild index e463f585e40..7db5c3d6366 100644 --- a/dev-util/clazy/clazy-1.6-r1.ebuild +++ b/dev-util/clazy/clazy-1.6-r1.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit cmake DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; +HOMEPAGE="https://kde.org/applications/development/org.kde.clazy; SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+"
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 4e30ceffa16a5a5282f10dce17cc7892363f6df5 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun May 10 10:47:00 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun May 10 11:31:18 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e30ceff dev-util/clazy: Drop 1.5-r1 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest| 1 - dev-util/clazy/clazy-1.5-r1.ebuild | 49 -- 2 files changed, 50 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 3a2f8b7277a..85c2cfdf47b 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.5.tar.xz 352344 BLAKE2B 0f7200900f1a8bcad3020cf98522e3ac9ba01dddc9b2200f08a8a86102e4389af7a4a86e1832ee4c0e750267948a908627032385a01af94d8d0ae5f438114b9e SHA512 863cb9609d02a2260b61bc6cb3e6d8a84975d3b4e4f1c94a82e8c600d95a28483c323f47ac39c39ecef24d0f51871b358055868c63a49b136cf8ee3060df5a52 DIST clazy-1.6.tar.xz 364292 BLAKE2B 01da58e34d5a7cb1e812d10264cebe15e90369589535e07f2c9f4520971f2e95b2c70494e99e34f7077957ec1bf01352fa6a72a64f0572e8a5db422267ab727a SHA512 dc7cb9590bbc40a2ac51abe305b6520ebc1ff7128ff21b4f6111d18f14eb8c2ab66d907636a18c7508143b708e70ba69f9d6fad88ffce12dec981a9bdd0edcc0 diff --git a/dev-util/clazy/clazy-1.5-r1.ebuild b/dev-util/clazy/clazy-1.5-r1.ebuild deleted file mode 100644 index cc5cf804601..000 --- a/dev-util/clazy/clazy-1.5-r1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64" -IUSE="" - -RDEPEND=" - =sys-devel/llvm-3.8:= -" -DEPEND="${RDEPEND}" - -DOCS=( README.md ) - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 44326245570e7209e1ac076b5329f9615feca4a2 Author: Mikle Kolyada gentoo org> AuthorDate: Sun May 10 09:14:21 2020 + Commit: Mikle Kolyada gentoo org> CommitDate: Sun May 10 09:15:41 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44326245 dev-util/clazy: amd64 stable wrt bug #720178 Package-Manager: Portage-2.3.99, Repoman-2.3.22 RepoMan-Options: --include-arches="amd64" Signed-off-by: Mikle Kolyada gentoo.org> dev-util/clazy/clazy-1.6-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.6-r1.ebuild b/dev-util/clazy/clazy-1.6-r1.ebuild index 2627d7b7bec..e463f585e40 100644 --- a/dev-util/clazy/clazy-1.6-r1.ebuild +++ b/dev-util/clazy/clazy-1.6-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 04270ad86dc06de208ac6dd4c534b0e98048ee2b Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Apr 9 23:01:13 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Apr 9 23:01:33 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04270ad8 dev-util/clazy: Drop 1.6 (r0) Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.6.ebuild | 49 - 1 file changed, 49 deletions(-) diff --git a/dev-util/clazy/clazy-1.6.ebuild b/dev-util/clazy/clazy-1.6.ebuild deleted file mode 100644 index 47f5433d9f0..000 --- a/dev-util/clazy/clazy-1.6.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND=" - =sys-devel/llvm-3.8:= -" -DEPEND="${RDEPEND}" - -DOCS=( README.md ) - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -} - -src_configure() { - # this package requires both llvm and clang of the same version. - # clang pulls in the equivalent llvm version, but not vice versa. - # so, we must find llvm based on the installed clang version. - # bug #681568 - local clang_version=$(best_version "
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/files/, dev-util/clazy/
commit: 014cfb8ff4491f6122312b8f2ba11eda28427af5 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Apr 9 15:58:13 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Apr 9 21:36:24 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=014cfb8f dev-util/clazy: Fix build with >=sys-devel/clang-10 Closes: https://bugs.gentoo.org/711642 Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.6-r1.ebuild | 50 +++ dev-util/clazy/files/clazy-1.6-llvm-10.patch | 75 2 files changed, 125 insertions(+) diff --git a/dev-util/clazy/clazy-1.6-r1.ebuild b/dev-util/clazy/clazy-1.6-r1.ebuild new file mode 100644 index 000..075782027ed --- /dev/null +++ b/dev-util/clazy/clazy-1.6-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + >=sys-devel/llvm-3.8:= +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +PATCHES=( "${FILESDIR}/${P}-llvm-10.patch" ) + +src_prepare() { + cmake_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version "sys-devel/clang") + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" + cmake_src_configure +} + +src_install() { + cmake_src_install + mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die + rmdir "${D}"/usr/share/doc/clazy || die +} diff --git a/dev-util/clazy/files/clazy-1.6-llvm-10.patch b/dev-util/clazy/files/clazy-1.6-llvm-10.patch new file mode 100644 index 000..f00695f5211 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.6-llvm-10.patch @@ -0,0 +1,75 @@ +From df41bd29433937111edca3654a7beb11ec765029 Mon Sep 17 00:00:00 2001 +From: Johannes Ziegenbalg +Date: Fri, 27 Mar 2020 14:18:32 +0100 +Subject: Fix build issues using llvm 10.0.0 + +--- + CMakeLists.txt| 2 +- + src/ClazyStandaloneMain.cpp | 10 ++ + src/checks/level0/qstring-ref.cpp | 4 + 3 files changed, 15 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f1463cf..a30813f 100644 +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -53,7 +53,7 @@ if(MSVC) + # disable trigger-happy warnings from Clang/LLVM headers + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244 /wd4291 /wd4800 /wd4141 /wd4146 /wd4251") + elseif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti") + endif() + + set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress") +diff --git a/src/ClazyStandaloneMain.cpp b/src/ClazyStandaloneMain.cpp +index aada189..6baae32 100644 +--- a/src/ClazyStandaloneMain.cpp b/src/ClazyStandaloneMain.cpp +@@ -93,7 +93,11 @@ public: + { + } + ++#if LLVM_VERSION_MAJOR >= 10 ++std::unique_ptr create() override ++#else + FrontendAction *create() override ++#endif + { + ClazyContext::ClazyOptions options = ClazyContext::ClazyOption_None; + +@@ -116,9 +120,15 @@ public: + options |= ClazyContext::ClazyOption_IgnoreIncludedFiles; + + // TODO: We need to agregate the fixes with previous run ++#if LLVM_VERSION_MAJOR >= 10 ++return std::make_unique(s_checks.getValue(), s_headerFilter.getValue(), ++ s_ignoreDirs.getValue(), s_exportFixes.getValue(), ++ m_paths, options); ++#else + return new ClazyStandaloneASTAction(s_checks.getValue(), s_headerFilter.getValue(), +
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/
commit: 4a37476f9a524d498204ba6242ac358de3041653 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Apr 9 18:57:20 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Apr 9 21:36:24 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a37476f dev-util/clazy: Allow to link against single clang-cpp lib Bug: https://bugs.gentoo.org/711642 Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.6-r1.ebuild | 5 ++- dev-util/clazy/files/clazy-1.6-clang-cpp.patch | 60 ++ 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.6-r1.ebuild b/dev-util/clazy/clazy-1.6-r1.ebuild index 075782027ed..2627d7b7bec 100644 --- a/dev-util/clazy/clazy-1.6-r1.ebuild +++ b/dev-util/clazy/clazy-1.6-r1.ebuild @@ -21,7 +21,10 @@ DEPEND="${RDEPEND}" DOCS=( README.md ) -PATCHES=( "${FILESDIR}/${P}-llvm-10.patch" ) +PATCHES=( + "${FILESDIR}/${P}-llvm-10.patch" + "${FILESDIR}/${P}-clang-cpp.patch" +) src_prepare() { cmake_src_prepare diff --git a/dev-util/clazy/files/clazy-1.6-clang-cpp.patch b/dev-util/clazy/files/clazy-1.6-clang-cpp.patch new file mode 100644 index 000..16b9af00ce3 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.6-clang-cpp.patch @@ -0,0 +1,60 @@ +From 0e295e5a926496f5a5d46ea4feb1b285b084f5e0 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Mon, 11 Nov 2019 10:31:49 +0100 +Subject: Check if clazy should be linked to clang-cpp + +Summary: +According to [1], clang can now provide a single shared library instead of split +ones. + +We have to check if this library exists and link to it if available. + +[1] https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html#build-system-changes + +Reviewers: smartins, kde-buildsystem + +Reviewed By: smartins + +Differential Revision: https://phabricator.kde.org/D25163 +--- + CMakeLists.txt| 11 --- + cmake/FindClang.cmake | 1 + + 2 files changed, 9 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b7301ed..ce1f887 100644 +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -125,9 +125,14 @@ macro(link_to_llvm name is_standalone) + if(WIN32) + target_link_libraries(${name} version.lib) + endif() +-target_link_libraries(${name} clangTooling) +-target_link_libraries(${name} clangToolingCore) +-target_link_libraries(${name} ${clang_tooling_refactoring_lib}) ++# clang >= 9.0 can provide a single shared library instead of split ones ++if(CLANG_CLANG-CPP_LIB) ++target_link_libraries(${name} clang-cpp) ++else() ++target_link_libraries(${name} clangTooling) ++target_link_libraries(${name} clangToolingCore) ++target_link_libraries(${name} ${clang_tooling_refactoring_lib}) ++endif() + endmacro() + + macro(add_clang_plugin name) +diff --git a/cmake/FindClang.cmake b/cmake/FindClang.cmake +index 542172e..50e0829 100644 +--- a/cmake/FindClang.cmake b/cmake/FindClang.cmake +@@ -62,6 +62,7 @@ if (LLVM_FOUND AND LLVM_LIBRARY_DIRS) + # note: On Windows there's 'libclang.dll' instead of 'clang.dll' -> search for 'libclang', too + find_library(CLANG_LIBCLANG_LIB NAMES clang libclang HINTS ${LLVM_LIBRARY_DIRS}) # LibClang: high-level C interface + ++ FIND_AND_ADD_CLANG_LIB(clang-cpp) + FIND_AND_ADD_CLANG_LIB(clangFrontend) + FIND_AND_ADD_CLANG_LIB(clangDriver) + FIND_AND_ADD_CLANG_LIB(clangCodeGen) +-- +cgit v1.1 +
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 2b61a2e275f18c26e2342c0ebd5fd4a08eaf8aa6 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Mar 25 21:55:51 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Mar 26 12:38:32 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b61a2e2 dev-util/clazy: 1.6 version bump Closes: https://bugs.gentoo.org/714044 Package-Manager: Portage-2.3.96, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.6.ebuild | 49 + 2 files changed, 50 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index f331d9565a1..3a2f8b7277a 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.5.tar.xz 352344 BLAKE2B 0f7200900f1a8bcad3020cf98522e3ac9ba01dddc9b2200f08a8a86102e4389af7a4a86e1832ee4c0e750267948a908627032385a01af94d8d0ae5f438114b9e SHA512 863cb9609d02a2260b61bc6cb3e6d8a84975d3b4e4f1c94a82e8c600d95a28483c323f47ac39c39ecef24d0f51871b358055868c63a49b136cf8ee3060df5a52 +DIST clazy-1.6.tar.xz 364292 BLAKE2B 01da58e34d5a7cb1e812d10264cebe15e90369589535e07f2c9f4520971f2e95b2c70494e99e34f7077957ec1bf01352fa6a72a64f0572e8a5db422267ab727a SHA512 dc7cb9590bbc40a2ac51abe305b6520ebc1ff7128ff21b4f6111d18f14eb8c2ab66d907636a18c7508143b708e70ba69f9d6fad88ffce12dec981a9bdd0edcc0 diff --git a/dev-util/clazy/clazy-1.6.ebuild b/dev-util/clazy/clazy-1.6.ebuild new file mode 100644 index 000..47f5433d9f0 --- /dev/null +++ b/dev-util/clazy/clazy-1.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + =sys-devel/llvm-3.8:= +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +src_prepare() { + cmake_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version "
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 5cb559a36eba410291a47a9dad4642b39987a49a Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Mar 22 21:42:43 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 22 21:42:43 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cb559a3 dev-util/clazy: 1.5-r1 amd64 stable Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.5-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.5-r1.ebuild b/dev-util/clazy/clazy-1.5-r1.ebuild index 47f5433d9f0..cc5cf804601 100644 --- a/dev-util/clazy/clazy-1.5-r1.ebuild +++ b/dev-util/clazy/clazy-1.5-r1.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 8fffa3795c5a8d321d91c0090751fc2893cc0e41 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Mar 22 21:42:58 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 22 21:42:58 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fffa379 dev-util/clazy: Drop 1.5 (r0) Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.5.ebuild | 39 --- 1 file changed, 39 deletions(-) diff --git a/dev-util/clazy/clazy-1.5.ebuild b/dev-util/clazy/clazy-1.5.ebuild deleted file mode 100644 index ba0428212c7..000 --- a/dev-util/clazy/clazy-1.5.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="amd64" -IUSE="" - -RDEPEND=" - sys-devel/clang:= - >=sys-devel/llvm-3.8:= -" -DEPEND="${RDEPEND}" - -DOCS=( README.md ) - -src_prepare() { - cmake_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -} - -src_install() { - cmake_src_install - mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die - rmdir "${D}"/usr/share/doc/clazy || die -}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 2e14430d234cf9e4da6856cafaec46fec1dc3fb0 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Mar 22 19:15:40 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 22 20:40:43 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e14430d dev-util/clazy: Pin to https://bugs.gentoo.org/711642 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/clazy-1.5-r1.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-util/clazy/clazy-1.5-r1.ebuild b/dev-util/clazy/clazy-1.5-r1.ebuild index d3f38a652bb..47f5433d9f0 100644 --- a/dev-util/clazy/clazy-1.5-r1.ebuild +++ b/dev-util/clazy/clazy-1.5-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,7 @@ KEYWORDS="~amd64" IUSE="" RDEPEND=" - sys-devel/clang:= + =sys-devel/llvm-3.8:= " DEPEND="${RDEPEND}" @@ -37,7 +37,7 @@ src_configure() { # clang pulls in the equivalent llvm version, but not vice versa. # so, we must find llvm based on the installed clang version. # bug #681568 - local clang_version=$(best_version sys-devel/clang) + local clang_version=$(best_version "
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 8b83c3a45583c3d30088552598c05904a23a57f1 Author: Michael Palimaka gentoo org> AuthorDate: Sun Mar 31 09:51:07 2019 + Commit: Michael Palimaka gentoo org> CommitDate: Sun Mar 31 09:51:20 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b83c3a4 dev-util/clazy: remove stray character Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Michael Palimaka gentoo.org> dev-util/clazy/clazy-1.5-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.5-r1.ebuild b/dev-util/clazy/clazy-1.5-r1.ebuild index 47e98ab9709..f5cd867cd90 100644 --- a/dev-util/clazy/clazy-1.5-r1.ebuild +++ b/dev-util/clazy/clazy-1.5-r1.ebuild @@ -38,7 +38,7 @@ src_configure() { # so, we must find llvm based on the installed clang version. # bug #681568 local clang_version=$(best_version sys-devel/clang) - export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})s" + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})" cmake-utils_src_configure }
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: bd4ac0dc54146264f00d132707fac794340a5e2d Author: Michael Palimaka gentoo org> AuthorDate: Sun Mar 31 09:49:14 2019 + Commit: Michael Palimaka gentoo org> CommitDate: Sun Mar 31 09:49:30 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd4ac0dc dev-util/clazy: fix build with mismatched clang/llvm versions Closes: https://bugs.gentoo.org/681568 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Michael Palimaka gentoo.org> dev-util/clazy/clazy-1.5-r1.ebuild | 49 ++ 1 file changed, 49 insertions(+) diff --git a/dev-util/clazy/clazy-1.5-r1.ebuild b/dev-util/clazy/clazy-1.5-r1.ebuild new file mode 100644 index 000..47e98ab9709 --- /dev/null +++ b/dev-util/clazy/clazy-1.5-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + sys-devel/clang:= + >=sys-devel/llvm-3.8:= +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +src_prepare() { + cmake-utils_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +} + +src_configure() { + # this package requires both llvm and clang of the same version. + # clang pulls in the equivalent llvm version, but not vice versa. + # so, we must find llvm based on the installed clang version. + # bug #681568 + local clang_version=$(best_version sys-devel/clang) + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})s" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die + rmdir "${D}"/usr/share/doc/clazy || die +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 2f964524dd563f1be80901b09ffed33e83126480 Author: Mikle Kolyada gentoo org> AuthorDate: Fri Mar 22 10:16:59 2019 + Commit: Mikle Kolyada gentoo org> CommitDate: Fri Mar 22 10:17:26 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f964524 dev-util/clazy: amd64 stable wrt bug #679996 Signed-off-by: Mikle Kolyada gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 RepoMan-Options: --include-arches="amd64" dev-util/clazy/clazy-1.5.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-util/clazy/clazy-1.5.ebuild b/dev-util/clazy/clazy-1.5.ebuild index d5bead0c2f2..7bf24b0ba07 100644 --- a/dev-util/clazy/clazy-1.5.ebuild +++ b/dev-util/clazy/clazy-1.5.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" LICENSE="LGPL-2+" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 7c3adbe560f7b304af93a007f76af914dd0212c8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Mar 10 23:16:49 2019 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 10 23:57:29 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c3adbe5 dev-util/clazy: Drop 1.4 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 - dev-util/clazy/clazy-1.4.ebuild | 39 --- 2 files changed, 40 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 92cd0d77837..f331d9565a1 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.4.tar.xz 339104 BLAKE2B 7740e85c8377f0757a545750d6d35d9b8b7207795a4b49f291a8c07a76e63e167fbd772f8689a1c83d66065a9a166f5dafa68a61923e46c17d6b6b4d74838106 SHA512 6458213a8db03c57dd5c80ecaa9403ce3fafb977e6f7433da728327af81ca52255b95aaceebfd90a43682c19ee63d4751bf23f6dbf343c59d616048f262c9e26 DIST clazy-1.5.tar.xz 352344 BLAKE2B 0f7200900f1a8bcad3020cf98522e3ac9ba01dddc9b2200f08a8a86102e4389af7a4a86e1832ee4c0e750267948a908627032385a01af94d8d0ae5f438114b9e SHA512 863cb9609d02a2260b61bc6cb3e6d8a84975d3b4e4f1c94a82e8c600d95a28483c323f47ac39c39ecef24d0f51871b358055868c63a49b136cf8ee3060df5a52 diff --git a/dev-util/clazy/clazy-1.4.ebuild b/dev-util/clazy/clazy-1.4.ebuild deleted file mode 100644 index a0fe3e5bc80..000 --- a/dev-util/clazy/clazy-1.4.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND=" - sys-devel/clang:= - >=sys-devel/llvm-3.8:= -" -DEPEND="${RDEPEND}" - -DOCS=( README.md ) - -src_prepare() { - cmake-utils_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -} - -src_install() { - cmake-utils_src_install - mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die - rmdir "${D}"/usr/share/doc/clazy || die -}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 05e384ad8fd26b0b951782e676f23a7459d4279e Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Feb 1 20:22:36 2019 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Feb 1 20:42:20 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e384ad dev-util/clazy: 1.5 version bump Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.5.ebuild | 39 +++ 2 files changed, 40 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 01ab54c0f10..92cd0d77837 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.4.tar.xz 339104 BLAKE2B 7740e85c8377f0757a545750d6d35d9b8b7207795a4b49f291a8c07a76e63e167fbd772f8689a1c83d66065a9a166f5dafa68a61923e46c17d6b6b4d74838106 SHA512 6458213a8db03c57dd5c80ecaa9403ce3fafb977e6f7433da728327af81ca52255b95aaceebfd90a43682c19ee63d4751bf23f6dbf343c59d616048f262c9e26 +DIST clazy-1.5.tar.xz 352344 BLAKE2B 0f7200900f1a8bcad3020cf98522e3ac9ba01dddc9b2200f08a8a86102e4389af7a4a86e1832ee4c0e750267948a908627032385a01af94d8d0ae5f438114b9e SHA512 863cb9609d02a2260b61bc6cb3e6d8a84975d3b4e4f1c94a82e8c600d95a28483c323f47ac39c39ecef24d0f51871b358055868c63a49b136cf8ee3060df5a52 diff --git a/dev-util/clazy/clazy-1.5.ebuild b/dev-util/clazy/clazy-1.5.ebuild new file mode 100644 index 000..d5bead0c2f2 --- /dev/null +++ b/dev-util/clazy/clazy-1.5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://cgit.kde.org/clazy.git/tree/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + sys-devel/clang:= + >=sys-devel/llvm-3.8:= +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +src_prepare() { + cmake-utils_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +} + +src_install() { + cmake-utils_src_install + mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die + rmdir "${D}"/usr/share/doc/clazy || die +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 26d603af225faba1b3149e66fa0ac475f9d71771 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Oct 1 20:53:13 2018 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Oct 1 20:54:45 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26d603af dev-util/clazy: Drop 1.3 Signed-off-by: Andreas Sturmlechner gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11 dev-util/clazy/Manifest | 1 - dev-util/clazy/clazy-1.3.ebuild | 35 --- 2 files changed, 36 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 965631a3868..01ab54c0f10 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ -DIST clazy-1.3.tar.xz 159860 BLAKE2B 3860a7f0e2e518fda210e7a4c0de7ea21d52ed5f0e280e1f12dedea2b639dde994621e55b55766e65b9575c275e8ca55c8f6556d1223aee0d642fff2814810bc SHA512 71b69fd28e507f44c5ddc5be8e79fa1511398691cbd8aae920c77171720c6e3e2f308db478e604285a2686aaca0026ff0472547eff98d77c0d4f83c72727563e DIST clazy-1.4.tar.xz 339104 BLAKE2B 7740e85c8377f0757a545750d6d35d9b8b7207795a4b49f291a8c07a76e63e167fbd772f8689a1c83d66065a9a166f5dafa68a61923e46c17d6b6b4d74838106 SHA512 6458213a8db03c57dd5c80ecaa9403ce3fafb977e6f7433da728327af81ca52255b95aaceebfd90a43682c19ee63d4751bf23f6dbf343c59d616048f262c9e26 diff --git a/dev-util/clazy/clazy-1.3.ebuild b/dev-util/clazy/clazy-1.3.ebuild deleted file mode 100644 index fc60842b73c..000 --- a/dev-util/clazy/clazy-1.3.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md; -SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND=" - sys-devel/clang:= - >=sys-devel/llvm-3.8:= -" -DEPEND="${RDEPEND} - app-arch/unzip -" - -DOCS=( README.md ) - -src_prepare() { - cmake-utils_src_prepare - - sed -e '/install(FILES README.md COPYING-LGPL2.txt DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: e9b32645b62dff38e0eba0ee324490aae19b6ac8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Oct 1 20:26:54 2018 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Oct 1 20:54:44 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b32645 dev-util/clazy: 1.4 version bump Signed-off-by: Andreas Sturmlechner gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11 dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.4.ebuild | 39 +++ 2 files changed, 40 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index d5b54461f86..965631a3868 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ DIST clazy-1.3.tar.xz 159860 BLAKE2B 3860a7f0e2e518fda210e7a4c0de7ea21d52ed5f0e280e1f12dedea2b639dde994621e55b55766e65b9575c275e8ca55c8f6556d1223aee0d642fff2814810bc SHA512 71b69fd28e507f44c5ddc5be8e79fa1511398691cbd8aae920c77171720c6e3e2f308db478e604285a2686aaca0026ff0472547eff98d77c0d4f83c72727563e +DIST clazy-1.4.tar.xz 339104 BLAKE2B 7740e85c8377f0757a545750d6d35d9b8b7207795a4b49f291a8c07a76e63e167fbd772f8689a1c83d66065a9a166f5dafa68a61923e46c17d6b6b4d74838106 SHA512 6458213a8db03c57dd5c80ecaa9403ce3fafb977e6f7433da728327af81ca52255b95aaceebfd90a43682c19ee63d4751bf23f6dbf343c59d616048f262c9e26 diff --git a/dev-util/clazy/clazy-1.4.ebuild b/dev-util/clazy/clazy-1.4.ebuild new file mode 100644 index 000..a0fe3e5bc80 --- /dev/null +++ b/dev-util/clazy/clazy-1.4.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + sys-devel/clang:= + >=sys-devel/llvm-3.8:= +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +src_prepare() { + cmake-utils_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +} + +src_install() { + cmake-utils_src_install + mv "${D}"/usr/share/doc/clazy/* "${D}"/usr/share/doc/${PF} || die + rmdir "${D}"/usr/share/doc/clazy || die +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 87a35780492cd4217c4d4af89cdf6321d4f47518 Author: Michał Górny gentoo org> AuthorDate: Sat Mar 31 09:46:31 2018 + Commit: Michał Górny gentoo org> CommitDate: Wed Apr 11 16:19:44 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87a35780 dev-util/clazy: Drop old dev-util/clazy/Manifest | 1 - dev-util/clazy/clazy-1.2.ebuild | 34 -- 2 files changed, 35 deletions(-) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index b873c05fc1c..d5b54461f86 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1,2 +1 @@ DIST clazy-1.3.tar.xz 159860 BLAKE2B 3860a7f0e2e518fda210e7a4c0de7ea21d52ed5f0e280e1f12dedea2b639dde994621e55b55766e65b9575c275e8ca55c8f6556d1223aee0d642fff2814810bc SHA512 71b69fd28e507f44c5ddc5be8e79fa1511398691cbd8aae920c77171720c6e3e2f308db478e604285a2686aaca0026ff0472547eff98d77c0d4f83c72727563e -DIST clazy_v1.2-src.zip 462520 BLAKE2B dbcd5b3be85f23b2bb1a8b130307223f2ccca4b04cd6b291a5ffb07fcbc9cd29c105016a5421c14af2ad41ff4a6e12c207628c34ee183749558e6bec96500b52 SHA512 53f6b0fb8d8f289e19cac591f7a612d1cefcc518cc192c9f7674cf836338d8822c5c266a260ecb34456011cb98603e69c5cffd73a08d0a6aa5d0b10ca96d768d diff --git a/dev-util/clazy/clazy-1.2.ebuild b/dev-util/clazy/clazy-1.2.ebuild deleted file mode 100644 index f477e69978b..000 --- a/dev-util/clazy/clazy-1.2.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" -HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md; -SRC_URI="mirror://kde/stable/${PN}/${PV}/${PN}_v${PV}-src.zip" - -LICENSE="LGPL-2+" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND=" - >=sys-devel/llvm-3.8:0[clang] -" -DEPEND="${RDEPEND} - app-arch/unzip -" - -DOCS=( README.md ) - -src_prepare() { - default - - sed -e '/install(FILES README.md COPYING-LGPL2.txt DESTINATION/d' \ - -i CMakeLists.txt || die - - sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ - -i docs/man/CMakeLists.txt || die -}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 2c7c6b001c14ed6446891cff8e412bbd8e1a1a69 Author: Michael Palimaka gentoo org> AuthorDate: Thu Jan 11 07:16:33 2018 + Commit: Michael Palimaka gentoo org> CommitDate: Thu Jan 11 07:30:32 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c7c6b00 dev-util/clazy: version bump 1.3 Package-Manager: Portage-2.3.14, Repoman-2.3.6 dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.3.ebuild | 35 +++ 2 files changed, 36 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest index 0e5a804675d..b873c05fc1c 100644 --- a/dev-util/clazy/Manifest +++ b/dev-util/clazy/Manifest @@ -1 +1,2 @@ +DIST clazy-1.3.tar.xz 159860 BLAKE2B 3860a7f0e2e518fda210e7a4c0de7ea21d52ed5f0e280e1f12dedea2b639dde994621e55b55766e65b9575c275e8ca55c8f6556d1223aee0d642fff2814810bc SHA512 71b69fd28e507f44c5ddc5be8e79fa1511398691cbd8aae920c77171720c6e3e2f308db478e604285a2686aaca0026ff0472547eff98d77c0d4f83c72727563e DIST clazy_v1.2-src.zip 462520 BLAKE2B dbcd5b3be85f23b2bb1a8b130307223f2ccca4b04cd6b291a5ffb07fcbc9cd29c105016a5421c14af2ad41ff4a6e12c207628c34ee183749558e6bec96500b52 SHA512 53f6b0fb8d8f289e19cac591f7a612d1cefcc518cc192c9f7674cf836338d8822c5c266a260ecb34456011cb98603e69c5cffd73a08d0a6aa5d0b10ca96d768d diff --git a/dev-util/clazy/clazy-1.3.ebuild b/dev-util/clazy/clazy-1.3.ebuild new file mode 100644 index 000..fc60842b73c --- /dev/null +++ b/dev-util/clazy/clazy-1.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + sys-devel/clang:= + >=sys-devel/llvm-3.8:= +" +DEPEND="${RDEPEND} + app-arch/unzip +" + +DOCS=( README.md ) + +src_prepare() { + cmake-utils_src_prepare + + sed -e '/install(FILES README.md COPYING-LGPL2.txt DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +}
[gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
commit: 69ab387e6bdfff19ddccf51a58ea8bf3d751098f Author: Michael Palimaka gentoo org> AuthorDate: Sat Jul 29 03:32:03 2017 + Commit: Michael Palimaka gentoo org> CommitDate: Sat Jul 29 03:32:26 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69ab387e dev-util/clazy: new package Package-Manager: Portage-2.3.6, Repoman-2.3.3 dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.2.ebuild | 34 ++ dev-util/clazy/metadata.xml | 8 3 files changed, 43 insertions(+) diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest new file mode 100644 index 000..9f0a0cbe969 --- /dev/null +++ b/dev-util/clazy/Manifest @@ -0,0 +1 @@ +DIST clazy_v1.2-src.zip 462520 SHA256 6fe7871d1ebeb7562f70e51cf424303b7f21dec3fa490ca7420a9a8485c0f898 SHA512 53f6b0fb8d8f289e19cac591f7a612d1cefcc518cc192c9f7674cf836338d8822c5c266a260ecb34456011cb98603e69c5cffd73a08d0a6aa5d0b10ca96d768d WHIRLPOOL d4ff13f91aad694e281996e50e7eb310f2b98c5d0ec838df2e17022a12c702693226020458845327bf2dc1e9cca0710942698d4c8806322265ab98d8e63538f5 diff --git a/dev-util/clazy/clazy-1.2.ebuild b/dev-util/clazy/clazy-1.2.ebuild new file mode 100644 index 000..f477e69978b --- /dev/null +++ b/dev-util/clazy/clazy-1.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" +HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md; +SRC_URI="mirror://kde/stable/${PN}/${PV}/${PN}_v${PV}-src.zip" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + >=sys-devel/llvm-3.8:0[clang] +" +DEPEND="${RDEPEND} + app-arch/unzip +" + +DOCS=( README.md ) + +src_prepare() { + default + + sed -e '/install(FILES README.md COPYING-LGPL2.txt DESTINATION/d' \ + -i CMakeLists.txt || die + + sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \ + -i docs/man/CMakeLists.txt || die +} diff --git a/dev-util/clazy/metadata.xml b/dev-util/clazy/metadata.xml new file mode 100644 index 000..2fdbf33d963 --- /dev/null +++ b/dev-util/clazy/metadata.xml @@ -0,0 +1,8 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + k...@gentoo.org + Gentoo KDE Project + +