summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-19 21:22:33 +0100
committerSam James <sam@gentoo.org>2021-04-19 21:54:02 +0100
commitd7d89deaf9b02b250e7b730156032d88ae4a074f (patch)
treef49c650b528316415cca9eddad18d34bd715dc7f /dev-games/ode/ode-0.12.ebuild
parentgames-misc/lolcat: drop 90.8.8-r1, 100.0.1 (diff)
downloadgentoo-d7d89deaf9b02b250e7b730156032d88ae4a074f.tar.gz
gentoo-d7d89deaf9b02b250e7b730156032d88ae4a074f.tar.bz2
gentoo-d7d89deaf9b02b250e7b730156032d88ae4a074f.zip
dev-games/ode: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-games/ode/ode-0.12.ebuild')
-rw-r--r--dev-games/ode/ode-0.12.ebuild45
1 files changed, 29 insertions, 16 deletions
diff --git a/dev-games/ode/ode-0.12.ebuild b/dev-games/ode/ode-0.12.ebuild
index a1b352d94fa3..c5e93ccbf22c 100644
--- a/dev-games/ode/ode-0.12.ebuild
+++ b/dev-games/ode/ode-0.12.ebuild
@@ -1,8 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit ltprune
+EAPI=7
DESCRIPTION="Open Dynamics Engine SDK"
HOMEPAGE="http://ode.org/"
@@ -13,13 +12,19 @@ SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="debug doc double-precision examples gyroscopic static-libs"
-RDEPEND="examples? (
+RDEPEND="
+ examples? (
virtual/opengl
- )"
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )"
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-doc/doxygen )"
+
+DOCS=( CHANGELOG.txt README.txt )
src_prepare() {
+ default
+
sed -i \
-e "s:\$.*/drawstuff/textures:/usr/share/doc/${PF}/examples:" \
drawstuff/src/Makefile.in \
@@ -41,30 +46,38 @@ src_configure() {
src_compile() {
emake
+
if use doc ; then
- cd ode/doc
+ cd ode/doc || die
doxygen Doxyfile || die
fi
}
src_install() {
- DOCS="CHANGELOG.txt README.txt" \
- default
- prune_libtool_files
+ default
+
+ find "${ED}" -name '*.la' -delete || die
+
if use doc ; then
- dohtml docs/*
+ docinto html
+ dodoc docs/*
fi
- if use examples; then
- cd ode/demo
+
+ if use examples ; then
+ cd ode/demo || die
+
exeinto /usr/share/doc/${PF}/examples
+
local f
for f in *.c* ; do
doexe .libs/${f%.*}
done
- cd ../..
+
+ cd ../.. || die
+
doexe drawstuff/dstest/dstest
- insinto /usr/share/doc/${PF}/examples
- doins ode/demo/*.{c,cpp,h} \
+ docinto examples
+ dodoc ode/demo/*.{c,cpp,h} \
drawstuff/textures/*.ppm \
drawstuff/dstest/dstest.cpp \
drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp}