/[gentoo-x86]/sci-libs/libccd/libccd-2.0.ebuild
Gentoo

Contents of /sci-libs/libccd/libccd-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 24 08:01:04 2014 UTC (5 years, 7 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
keyword ~arm

Signed-off-by: aballier@gentoo.org
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libccd/libccd-2.0.ebuild,v 1.1 2014/10/23 16:03:46 aballier Exp $
4
5 EAPI=5
6
7 SCM=""
8 if [ "${PV#9999}" != "${PV}" ] ; then
9 SCM="git-r3"
10 EGIT_REPO_URI="http://github.com/danfis/libccd"
11 fi
12
13 inherit ${SCM} cmake-utils toolchain-funcs
14
15 if [ "${PV#9999}" != "${PV}" ] ; then
16 KEYWORDS=""
17 SRC_URI=""
18 else
19 KEYWORDS="~amd64 ~arm"
20 SRC_URI="http://libccd.danfis.cz/files/${P}.tar.gz"
21 fi
22
23 DESCRIPTION="Library for collision detection between two convex shapes"
24 HOMEPAGE="http://libccd.danfis.cz/"
25 LICENSE="BSD"
26 SLOT="0"
27 IUSE="double doc"
28
29 RDEPEND=""
30 DEPEND="${RDEPEND}
31 doc? ( dev-python/sphinx )"
32 DOCS=( README )
33
34 src_configure() {
35 local mycmakeargs=(
36 "-DCCD_DOUBLE=$(usex double TRUE FALSE)"
37 )
38 cmake-utils_src_configure
39 }
40
41 src_compile() {
42 cmake-utils_src_compile
43 if use doc ; then
44 cd "${S}/doc"
45 emake SPHINXBUILD=sphinx-build html
46 fi
47 }
48
49 src_test() {
50 cd src/testsuites
51 tc-export CC
52 LDFLAGS="-L${BUILD_DIR} ${LDFLAGS}" \
53 LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" \
54 emake check
55 }
56
57 src_install() {
58 cmake-utils_src_install
59 use doc && dohtml -r "${S}/doc/_build/html/"*
60 }

  ViewVC Help
Powered by ViewVC 1.1.20