1 # Copyright 2015-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ "${PV}" == "9999" ]]; then
11 EGIT_REPO_URI="https://github.com/nemtrif/utfcpp"
15 DESCRIPTION="UTF-8 C++ library"
16 HOMEPAGE="https://github.com/nemtrif/utfcpp"
17 if [[ "${PV}" == "9999" ]]; then
20 SRC_URI="https://github.com/nemtrif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
25 KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86"
27 RESTRICT="!test? ( test )"
30 DEPEND="test? ( dev-cpp/gtest )"
34 sed -e "/add_subdirectory(extern\/gtest)/d" -i CMakeLists.txt || die
35 sed -e "s/gtest_main/gtest &/" -i tests/CMakeLists.txt || die
37 cmake-utils_src_prepare
43 -DUTF8_TESTS=$(usex test ON OFF)
46 cmake-utils_src_configure