1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 if [ "${PV#9999}" != "${PV}" ] ; then
9 EGIT_REPO_URI="https://github.com/danfis/libccd"
12 inherit ${SCM} cmake-utils toolchain-funcs
14 if [ "${PV#9999}" != "${PV}" ] ; then
18 KEYWORDS="~amd64 ~arm"
19 SRC_URI="http://libccd.danfis.cz/files/${P}.tar.gz"
22 DESCRIPTION="Library for collision detection between two convex shapes"
23 HOMEPAGE="http://libccd.danfis.cz/"
30 doc? ( dev-python/sphinx )"
35 "-DCCD_DOUBLE=$(usex double TRUE FALSE)"
37 cmake-utils_src_configure
41 cmake-utils_src_compile
44 emake SPHINXBUILD=sphinx-build html
51 LDFLAGS="-L${BUILD_DIR} ${LDFLAGS}" \
52 LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" \
57 cmake-utils_src_install
58 use doc && dohtml -r "${S}/doc/_build/html/"*