1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Uriparser is a strictly RFC 3986 compliant URI parsing library in C"
9 HOMEPAGE="https://uriparser.github.io/"
10 SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
15 IUSE="doc qt5 test unicode"
18 DEPEND="virtual/pkgconfig
19 doc? ( >=app-doc/doxygen-1.5.8
20 qt5? ( dev-qt/qthelp:5 ) )
21 test? ( >=dev-cpp/gtest-1.8.1 )"
23 REQUIRED_USE="test? ( unicode )"
24 RESTRICT="!test? ( test )"
26 DOCS=( AUTHORS ChangeLog THANKS )
29 "${FILESDIR}"/${P}-tests.patch
34 -DBUILD_SHARED_LIBS=ON
35 -DURIPARSER_BUILD_CHAR=ON
36 -DURIPARSER_BUILD_DOCS=$(usex doc ON OFF)
37 -DURIPARSER_BUILD_TESTS=$(usex test ON OFF)
38 -DURIPARSER_BUILD_TOOLS=ON
39 -DURIPARSER_BUILD_WCHAR_T=$(usex unicode ON OFF)
41 cmake-utils_src_configure
45 cmake-utils_src_install
47 if use doc && use qt5; then
48 dodoc "${BUILD_DIR}"/doc/*.qch
49 docompress -x /usr/share/doc/${PF}/${P}.qch