summaryrefslogtreecommitdiff
blob: b40e392a3c2df548ce0361b9ceb4055e2379f09c (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake-utils

DESCRIPTION="Run Time Type Reflection - library adding reflection to C++"
HOMEPAGE="https://www.rttr.org/"
SRC_URI="https://github.com/rttrorg/${PN}/releases/download/v${PV}/${P}-src.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

PATCHES=(
	"${FILESDIR}/${P}-cmake.patch"
	"${FILESDIR}/${P}-permission.patch"
	"${FILESDIR}/${P}-tests.patch"
	"${FILESDIR}/${P}-werror.patch"
)

src_configure() {
	local mycmakeargs=(
		-DBUILD_DOCUMENTATION=off #broken
	)

	cmake-utils_src_configure
}

src_test() {
	"${S}"/bin/unit_tests || die
}