summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <tristan@gentoo.org>2008-09-03 18:57:17 +0000
committerTristan Heaven <tristan@gentoo.org>2008-09-03 18:57:17 +0000
commite058da6c46606e2ec6aa8af9fdb622aa55a09fee (patch)
treedb93af08cdf5cc7282a21ddb83fb85d265aa0994 /dev-games/ode
parentInitial import. Standalone version of luatex patched to use poppler. Not very... (diff)
downloadhistorical-e058da6c46606e2ec6aa8af9fdb622aa55a09fee.tar.gz
historical-e058da6c46606e2ec6aa8af9fdb622aa55a09fee.tar.bz2
historical-e058da6c46606e2ec6aa8af9fdb622aa55a09fee.zip
Add doc and examples USE flags
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.3 x86_64
Diffstat (limited to 'dev-games/ode')
-rw-r--r--dev-games/ode/ChangeLog5
-rw-r--r--dev-games/ode/Manifest10
-rw-r--r--dev-games/ode/ode-0.10.1.ebuild48
3 files changed, 52 insertions, 11 deletions
diff --git a/dev-games/ode/ChangeLog b/dev-games/ode/ChangeLog
index 5b32ad242596..a4df29674f91 100644
--- a/dev-games/ode/ChangeLog
+++ b/dev-games/ode/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-games/ode
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.48 2008/09/03 16:56:28 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.49 2008/09/03 18:57:17 nyhm Exp $
+
+ 03 Sep 2008; Tristan Heaven <nyhm@gentoo.org> ode-0.10.1.ebuild:
+ Add doc and examples USE flags
*ode-0.10.1 (03 Sep 2008)
diff --git a/dev-games/ode/Manifest b/dev-games/ode/Manifest
index 85e3e7ff901b..f833e864d689 100644
--- a/dev-games/ode/Manifest
+++ b/dev-games/ode/Manifest
@@ -9,15 +9,15 @@ AUX ode-0.9-x-flags.patch 562 RMD160 47447b2f4bfcb2a3b179cba55c8b470f1d55fc0f SH
DIST ode-0.10.1.tar.bz2 1485871 RMD160 ed80f3511609389e494e003d55a429f5fa142ba7 SHA1 2099b96567d6264def7bbd42b524260bf15d7f25 SHA256 9636b246ec2d40411babedcb8d2cb5dbc96b4cc65fab7701992b6f7c6a9da72e
DIST ode-src-0.8.zip 2005445 RMD160 43a299a61a5ce6ed757eefc2855cd05fe6ae2024 SHA1 8e8a956ecebfc9e1f5f76b4e0083147581d85abe SHA256 07d751fc92ca4c739d4e76e2fc01cda19374d126bd65a789529dd727d1ec3edb
DIST ode-src-0.9.zip 2052825 RMD160 e999fef770d664a57ffb2f71bf5351fbd84d5b17 SHA1 3b39ce085c2dc77c3fad7abaa382ffc20d3780e5 SHA256 460d0851b743b1f144ef2a8259004d6774504c95d08e9357a96a296111496feb
-EBUILD ode-0.10.1.ebuild 853 RMD160 a7fc5bad9c42dd709e4a1cf7018908dbe738ddd4 SHA1 9934226d6e5f0f9b94b7a60fa0393285a499261f SHA256 6132ea3cd247d4d336e8309edecfff506a2686e4365f35631da9e349f7aece14
+EBUILD ode-0.10.1.ebuild 1759 RMD160 226c178492db09ed4ba4298bde7225e3bf8798c2 SHA1 91b25b16354def6701e69c9050066464c54dc47f SHA256 e8dcf0de6e386a353f517cf3eaa70d454c08aa7891de4e696abfced0112960bf
EBUILD ode-0.8.ebuild 2136 RMD160 5ec433c758fd98327165891f63e4ebac3f10cb58 SHA1 b066c64d20cd16306441878a3a701464d1ced7c3 SHA256 617fe30d3f713ef072ac96cefaeb0ba5a312f70a883c5efbc6cb492e0572d24b
EBUILD ode-0.9.ebuild 2348 RMD160 c7d1cc5d7779a3fbc5c5b9e04c4bf84e5839ae5c SHA1 330c5d05ced78477ba2aacf7adec01003fe006f1 SHA256 21310371b672d7e943c048adcfcdd1fc1d04819c74713e726f97674e54b6e81f
-MISC ChangeLog 6710 RMD160 0a14d3ce56f1f7238c1c7f9c3445e297741006c7 SHA1 7b1e8a2757e30df7a62952f1d4808f466b1365be SHA256 88fe0ee9dd4ad7fcd464c3ed245059c45d01d0062de224dffe86447270903021
+MISC ChangeLog 6811 RMD160 95be76afe8b71e0775572102da683f2b645ce9cd SHA1 0d9976657183dfb6beddd21463b37745104616fd SHA256 a8a557d02b2cbc9249b3a478144c792e1eb895edd9dd249748ffa84f3a576bca
MISC metadata.xml 853 RMD160 3e36f5feaef177be5a5b458b19a3f6fdc0e467d1 SHA1 cca958a9ce372557da21eb0b9bbf966dda908d19 SHA256 6df92c937496319125848a30c4cf23d0d24a0a784b6055205b18c2db2b81344e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAki+wcIACgkQdz7hIScOURGvSQCeKwctWXqvxl2ZFc7m6/56nAEj
-sB0An1Zxz0g3S/UwhKyHz+TNXFKwurKv
-=FelJ
+iEYEARECAAYFAki+3hMACgkQdz7hIScOURF5kwCeJz0ZjuYIr2TWG4CaW83OHfB5
+F2sAnAm9MwTCTjhAL3nnXySdlMSsAb2N
+=GWNb
-----END PGP SIGNATURE-----
diff --git a/dev-games/ode/ode-0.10.1.ebuild b/dev-games/ode/ode-0.10.1.ebuild
index 403afed5dbe3..6be9d4e10edd 100644
--- a/dev-games/ode/ode-0.10.1.ebuild
+++ b/dev-games/ode/ode-0.10.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ode-0.10.1.ebuild,v 1.1 2008/09/03 16:56:28 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ode-0.10.1.ebuild,v 1.2 2008/09/03 18:57:17 nyhm Exp $
DESCRIPTION="Open Dynamics Engine SDK"
HOMEPAGE="http://ode.org/"
@@ -9,24 +9,62 @@ SRC_URI="mirror://sourceforge/opende/${P}.tar.bz2"
LICENSE="|| ( LGPL-2.1 BSD )"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="debug double-precision gyroscopic"
+IUSE="debug doc double-precision examples gyroscopic"
-DEPEND="virtual/opengl
- virtual/glu"
+RDEPEND="examples? (
+ virtual/opengl
+ virtual/glu
+ )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e "s:\$.*/drawstuff/textures:/usr/share/doc/${PF}/examples:" \
+ drawstuff/src/Makefile.in \
+ ode/demo/Makefile.in \
+ || die "sed Makefile.in failed"
+}
src_compile() {
econf \
--disable-dependency-tracking \
- --disable-demos \
--enable-shared \
$(use_enable debug asserts) \
$(use_enable double-precision) \
+ $(use_enable examples demos) \
$(use_enable gyroscopic) \
+ $(use_with examples drawstuff X11) \
|| die
emake || die "emake failed"
+ if use doc ; then
+ cd ode/doc
+ doxygen Doxyfile || die "doxygen failed"
+ fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGELOG.txt README.txt
+ if use doc ; then
+ dohtml docs/* || die "dohtml failed"
+ fi
+ if use examples; then
+ cd ode/demo
+ exeinto /usr/share/doc/${PF}/examples
+ local f
+ for f in *.c* ; do
+ doexe .libs/${f%.*} || die "doexe ${f%.*} failed"
+ done
+ cd ../..
+ doexe drawstuff/dstest/dstest
+ insinto /usr/share/doc/${PF}/examples
+ doins ode/demo/*.{c,cpp,h} \
+ drawstuff/textures/*.ppm \
+ drawstuff/dstest/dstest.cpp \
+ drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp} \
+ || die "doins failed"
+ fi
}