summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-12-17 16:51:29 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2015-12-17 19:39:27 -0500
commit3fad9c8148caa42a06ad68662cc8178839003ded (patch)
tree46a93db155495db0c52349b62120bf91b795a32c /dev-games/ode
parentclean old (diff)
downloadgentoo-3fad9c8148caa42a06ad68662cc8178839003ded.tar.gz
gentoo-3fad9c8148caa42a06ad68662cc8178839003ded.tar.bz2
gentoo-3fad9c8148caa42a06ad68662cc8178839003ded.zip
version bump
Package-Manager: portage-2.2.24
Diffstat (limited to 'dev-games/ode')
-rw-r--r--dev-games/ode/Manifest1
-rw-r--r--dev-games/ode/ode-0.13.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-games/ode/Manifest b/dev-games/ode/Manifest
index c6f2d2d13312..6cceaaadda1e 100644
--- a/dev-games/ode/Manifest
+++ b/dev-games/ode/Manifest
@@ -1,2 +1,3 @@
DIST ode-0.11.1.tar.bz2 1720088 SHA256 877884a86a3d53f3c5f2e35fbd8a3dc23c20249f0636c76f6ef41f6bf57a03a1 SHA512 1e015231f4d01c68e7539144d197031cca23d4b58ea53733184a826ce23388956c428a53385254e7eed2c5d3fc28224a688eb13be7ea648bd78e186c8f203d37 WHIRLPOOL a77c4a61b1dd551911e87a2233f279ac5e6cdea9abf1704574f2a42ab683a426b7fc2a8e9b422f80ca379532b7d755cf7d28f1a47948dd80444cff8c7796cd32
DIST ode-0.12.tar.bz2 1816246 SHA256 65c5315a42c725d2da01ea2c1b045583d54e0d1a95e3f7c062e5ba3769f5c350 SHA512 303ffda8afcb89a87d09c44393f590f5646f10e8959ca06746121859ad2407709cd711ab185fed4817a9f74c9ca4ee13d1698a28577211bf65dbaad1141f6fc0 WHIRLPOOL def7dfd7bb9f78db9c593bb99eb635da9868dd05362817ca344e583ca157da87c3e6932b9912684bc3deed2aff9eeb409d57fd9eb388e2f195f9c83b5cccabc4
+DIST ode-0.13.tar.bz2 2008288 SHA256 34ce3e236e313bf109a0cb5546d2fca462aed99f29a42e62bc1463b803c31ef9 SHA512 d30c5228e10df5784802ceaea08353a3fd1088450b2ba69ad1da840b8aad2224484e5642145820621e105e08aa6da6f3e9957780d4c3b047647558b1abc32780 WHIRLPOOL ab7283fb0c957c0bac334150c4dc4d342a200fb1bfdeb26cbd8da13f0a8699bc9664af7a0cb9d0211d7484dc56a4608b8b4a60e81cf1008b5feff534733dbdb4
diff --git a/dev-games/ode/ode-0.13.ebuild b/dev-games/ode/ode-0.13.ebuild
new file mode 100644
index 000000000000..b123af80ca8a
--- /dev/null
+++ b/dev-games/ode/ode-0.13.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Open Dynamics Engine SDK"
+HOMEPAGE="http://ode.org/"
+SRC_URI="mirror://sourceforge/opende/${P}.tar.bz2"
+
+LICENSE="|| ( LGPL-2.1+ BSD )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="debug doc double-precision examples gyroscopic static-libs"
+
+RDEPEND="examples? (
+ virtual/glu
+ virtual/opengl )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+MY_EXAMPLES_DIR=/usr/share/doc/${PF}/examples
+
+src_prepare() {
+ sed -i \
+ -e "s:\$.*/drawstuff/textures:${MY_EXAMPLES_DIR}:" \
+ drawstuff/src/Makefile.in \
+ ode/demo/Makefile.in || die
+}
+
+src_configure() {
+ # use bash (bug #335760)
+ CONFIG_SHELL=/bin/bash \
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug asserts) \
+ $(use_enable double-precision) \
+ $(use_enable examples demos) \
+ $(use_enable gyroscopic) \
+ $(use_with examples drawstuff X11)
+}
+
+src_compile() {
+ emake
+ if use doc ; then
+ cd ode/doc
+ doxygen Doxyfile || die
+ fi
+}
+
+src_install() {
+ DOCS="CHANGELOG.txt README.txt" \
+ default
+ prune_libtool_files
+ if use doc ; then
+ dohtml docs/*
+ fi
+ if use examples; then
+ docompress -x "${MY_EXAMPLES_DIR}"
+ doexe drawstuff/dstest/dstest
+ insinto "${MY_EXAMPLES_DIR}"
+ doins ode/demo/*.{c,cpp,h} \
+ drawstuff/textures/*.ppm \
+ drawstuff/dstest/dstest.cpp \
+ drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp}
+ cd ode/demo
+ exeinto "${MY_EXAMPLES_DIR}"
+ local f
+ for f in *.c* ; do
+ doexe .libs/${f%.*}
+ done
+ fi
+}