diff options
-rw-r--r-- | games-rpg/adonthell/ChangeLog | 10 | ||||
-rw-r--r-- | games-rpg/adonthell/adonthell-0.3.3-r1.ebuild | 34 | ||||
-rw-r--r-- | games-rpg/adonthell/files/0.3.3-configure.in.patch | 85 |
3 files changed, 106 insertions, 23 deletions
diff --git a/games-rpg/adonthell/ChangeLog b/games-rpg/adonthell/ChangeLog index bdf1d163aa26..69b2de93d1de 100644 --- a/games-rpg/adonthell/ChangeLog +++ b/games-rpg/adonthell/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-rpg/adonthell -# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/ChangeLog,v 1.5 2004/12/06 23:22:20 mr_bones_ Exp $ +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/ChangeLog,v 1.6 2005/03/13 07:50:05 mr_bones_ Exp $ + + 13 Mar 2005; Michael Sterrett <mr_bones_@gentoo.org> + files/0.3.3-configure.in.patch, adonthell-0.3.3-r1.ebuild: + cleaned up python library code in configure.in; added work-around for bug + #83434 that caused a compile failure related to nls support; more deps for use + doc; keepdir the directory that games that use adonthell will use. 06 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org> adonthell-0.3.3-r1.ebuild: diff --git a/games-rpg/adonthell/adonthell-0.3.3-r1.ebuild b/games-rpg/adonthell/adonthell-0.3.3-r1.ebuild index f6ca61aed8f7..04542d97e82c 100644 --- a/games-rpg/adonthell/adonthell-0.3.3-r1.ebuild +++ b/games-rpg/adonthell/adonthell-0.3.3-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.3-r1.ebuild,v 1.8 2004/12/06 23:22:20 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.3-r1.ebuild,v 1.9 2005/03/13 07:50:05 mr_bones_ Exp $ -inherit games +inherit eutils games DESCRIPTION="roleplaying game engine" HOMEPAGE="http://adonthell.linuxgames.com/" @@ -10,19 +10,32 @@ SRC_URI="http://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86 ppc ~amd64" -IUSE="nls doc" +KEYWORDS="~amd64 ppc x86" +IUSE="doc" -DEPEND="dev-lang/python +RDEPEND="dev-lang/python media-libs/libsdl media-libs/libvorbis media-libs/libogg - sys-libs/zlib - doc? ( app-doc/doxygen )" + sys-libs/zlib" +DEPEND="${RDEPEND} + doc? ( + media-gfx/graphviz + app-doc/doxygen ) + sys-devel/autoconf" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-configure.in.patch" + aclocal && automake -a && autoconf || die "autotools failed" +} src_compile() { egamesconf \ - $(use_enable nls) \ + --disable-dependency-tracking \ + --disable-py-debug \ + --enable-nls \ $(use_enable doc) \ || die touch doc/items/{footer,header}.html @@ -31,6 +44,7 @@ src_compile() { src_install() { make DESTDIR="${D}" install || die "make install failed" - dodoc README AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS + keepdir "${GAMES_DATADIR}/${PN}/games" + dodoc AUTHORS ChangeLog FULLSCREEN.howto INSTALL NEWBIE NEWS README prepgamesdirs } diff --git a/games-rpg/adonthell/files/0.3.3-configure.in.patch b/games-rpg/adonthell/files/0.3.3-configure.in.patch index ca6d5d1edcc5..fd7ad893772c 100644 --- a/games-rpg/adonthell/files/0.3.3-configure.in.patch +++ b/games-rpg/adonthell/files/0.3.3-configure.in.patch @@ -1,11 +1,74 @@ ---- configure.in.orig 2003-03-10 19:34:50.000000000 -0800 -+++ configure.in 2003-03-10 19:35:31.000000000 -0800 -@@ -216,7 +216,7 @@ - - if test x$haveldd != x ; then - changequote(<<, >>) -- py_deps=`ldd $PYPACKAGE | sed 's/\( *lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d'` -+ py_deps=`ldd $PYPACKAGE | sed 's/\( *.*lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d' | grep -v sandbox` - for py_lib in $py_deps ; do - if test "$py_lib" != "-lm" && test "$py_lib" != "-lc" ; then - PY_DEPS="$PY_DEPS $py_lib" +--- configure.in.orig 2005-03-12 18:01:25.000000000 -0500 ++++ configure.in 2005-03-13 00:12:26.000000000 -0500 +@@ -159,10 +159,8 @@ + + dnl Extract the version using Python, check against 1.5+ + +- changequote(<<, >>) +- PYTHON_VERSION=`$PYPACKAGE -c 'import sys ; print (int(sys.version[0]) * 10 + int(sys.version[2]))'` +- PY_VERSION=`$PYPACKAGE -c 'import sys ; print sys.version[0:3]'` +- changequote([, ]) ++ PYTHON_VERSION=`$PYPACKAGE -c 'import sys ; print (int(sys.version@<:@0@:>@) * 10 + int(sys.version@<:@2@:>@))'` ++ PY_VERSION=`$PYPACKAGE -c 'import sys ; print sys.version@<:@0:3@:>@'` + + if test $PYTHON_VERSION -lt 15; then + echo "Sorry, you need to have Python 1.5+ installed - update your version!" +@@ -172,9 +170,7 @@ + dnl Find the Python.h header file + + AC_MSG_CHECKING(for Python header files) +- changequote(<<, >>) +- PYINCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[:3])'` +- changequote([, ]) ++ PYINCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version@<:@:3@:>@)'` + + if test -r "$PYINCLUDE/Python.h"; then + PY_CFLAGS="-I$PYINCLUDE" +@@ -188,10 +184,8 @@ + + AC_MSG_CHECKING(for Python library) + PYLIB="" +- changequote(<<, >>) + PYPREFIX=`$PYPACKAGE -c 'import sys; print sys.prefix'` +- PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version[:3]'` +- changequote([, ]) ++ PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version@<:@:3@:>@'` + + py_paths="$PYPREFIX/lib/python$PYLIBVER/config $PYPREFIX/lib" + py_suffix="$PYLIBVER.so $PYLIBVER.a .so .a" +@@ -220,19 +214,9 @@ + + dnl Get the libraries that python depends on + +- AC_PATH_PROG(haveldd, ldd) + AC_MSG_CHECKING(for Python's dependencies) + +- if test x$haveldd != x ; then +- changequote(<<, >>) +- py_deps=`ldd $PYPACKAGE | sed 's/\( *.*lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d' | grep -v 'stdc++'` +- for py_lib in $py_deps ; do +- if test "$py_lib" != "-lm" && test "$py_lib" != "-lc" ; then +- PY_DEPS="$PY_DEPS $py_lib" +- fi +- done +- changequote([, ]) +- fi ++ PY_DEPS="$PY_DEPS `python-config --libs`" + + case $target in + *-sun-solaris*) +@@ -280,11 +264,9 @@ + if test "$P_SWIG" != "no" ; then + $P_SWIG -version &> swig.ver + +- changequote(<<, >>) +- swig_major_ver=`more swig.ver | sed 's/.* \([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/p; d'` +- swig_minor_ver=`more swig.ver | sed 's/.* [0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/p; d'` +- swig_micro_ver=`more swig.ver | sed 's/.* [0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p; d'` +- changequote([, ]) ++ swig_major_ver=`more swig.ver | sed 's/.* \(@<:@0-9@:>@*\)\.@<:@0-9@:>@*\.@<:@0-9@:>@*.*/\1/p; d'` ++ swig_minor_ver=`more swig.ver | sed 's/.* @<:@0-9@:>@*\.\(@<:@0-9@:>@*\)\.@<:@0-9@:>@*.*/\1/p; d'` ++ swig_micro_ver=`more swig.ver | sed 's/.* @<:@0-9@:>@*\.@<:@0-9@:>@*\.\(@<:@0-9@:>@*\).*/\1/p; d'` + + rm -f swig.ver + |