blob: 7bf24b0ba071a07817a68f9d91257dc07e71c057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
}
|