diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-14 00:17:35 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-14 00:17:35 +0100 |
commit | efa31879fe8c63ded4dac5f836d2135eeb1303b7 (patch) | |
tree | 8ca4a65640b0a46d178eeb17334d0a4365a46d2e /dev-util/clazy/clazy-1.9.ebuild | |
parent | net-proxy/shadowsocks-libev: drop old (diff) | |
download | gentoo-efa31879fe8c63ded4dac5f836d2135eeb1303b7.tar.gz gentoo-efa31879fe8c63ded4dac5f836d2135eeb1303b7.tar.bz2 gentoo-efa31879fe8c63ded4dac5f836d2135eeb1303b7.zip |
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 <asturm@gentoo.org>
Diffstat (limited to 'dev-util/clazy/clazy-1.9.ebuild')
-rw-r--r-- | dev-util/clazy/clazy-1.9.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-util/clazy/clazy-1.9.ebuild b/dev-util/clazy/clazy-1.9.ebuild new file mode 100644 index 000000000000..e9b6e64599a7 --- /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 +} |