1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="YAML parser and emitter in C++"
10 HOMEPAGE="https://github.com/jbeder/yaml-cpp"
11 SRC_URI="https://github.com/jbeder/${PN}/archive/${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
19 # RESTRICT="!test? ( test )"
22 DEPEND="test? ( dev-cpp/gtest )"
24 S="${WORKDIR}/${PN}-${P}"
26 PATCHES=( "${FILESDIR}/${P}-abi-breakage.patch" )
30 -e 's:INCLUDE_INSTALL_ROOT_DIR:INCLUDE_INSTALL_DIR:g' \
31 yaml-cpp.pc.cmake || die
38 -DBUILD_SHARED_LIBS=ON
39 -DYAML_BUILD_SHARED_LIBS=ON
40 -DYAML_CPP_BUILD_TOOLS=OFF # Don't have install rule
41 -DYAML_CPP_BUILD_TESTS=$(usex test)
44 cmake-multilib_src_configure