diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /dev-util/clazy/clazy-1.5-r1.ebuild | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'dev-util/clazy/clazy-1.5-r1.ebuild')
-rw-r--r-- | dev-util/clazy/clazy-1.5-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
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 000000000000..f5cd867cd909 --- /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-})" + 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 +} |