diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2006-05-01 19:12:10 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2006-05-01 19:12:10 +0000 |
commit | bad333ed1754d1a1d2ccd6fae73108daad82d928 (patch) | |
tree | 3be17ca0f5bc9c548888ee6ccb60128260721e52 /games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild | |
parent | Add patch to fix bug #130389. (diff) | |
download | historical-bad333ed1754d1a1d2ccd6fae73108daad82d928.tar.gz historical-bad333ed1754d1a1d2ccd6fae73108daad82d928.tar.bz2 historical-bad333ed1754d1a1d2ccd6fae73108daad82d928.zip |
Fixing error on starting server, bug #131905
Package-Manager: portage-2.1_pre10-r2
Diffstat (limited to 'games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild')
-rw-r--r-- | games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild b/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild new file mode 100644 index 000000000000..3258fabf04df --- /dev/null +++ b/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild,v 1.1 2006/05/01 19:12:10 tupone Exp $ + +inherit python games + +DESCRIPTION="Improvement of the multiplayer space game XPilot" +HOMEPAGE="http://xpilot.sourceforge.net/" +SRC_URI="mirror://sourceforge/xpilot/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="openal sdl" + +RDEPEND="|| ( + ( + x11-libs/libX11 + x11-libs/libICE + x11-libs/libSM ) + virtual/x11 ) + >=dev-libs/expat-1.1 + >=sys-libs/zlib-1.1.3 + openal? ( media-libs/openal ) + dev-python/wxpython + sdl? ( + virtual/opengl + >=media-libs/libsdl-1.2.0 + >=media-libs/sdl-image-1.0 + >=media-libs/sdl-ttf-2.0 )" +DEPEND="${RDEPEND} + || ( + ( + x11-proto/xextproto + x11-proto/xproto + x11-libs/libXt ) + virtual/x11 )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}"-xpngcc.patch + + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + contrib/xpngcc/config.py +} + +src_compile() { + egamesconf \ + --disable-dependency-tracking \ + $(use_enable sdl sdl-client) \ + $(use_enable sdl sdl-gameloop) \ + $(use_enable openal sound) \ + || die + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README + python_version + insinto ${GAMES_DATADIR}/${PN}/xpngcc + doins contrib/xpngcc/*.py contrib/xpngcc/*.png + exeinto ${GAMES_DATADIR}/${PN}/xpngcc + doexe contrib/xpngcc/xpngcc.py + dodir /usr/$(get_libdir)/python${PYVER}/site-packages + dosym ${GAMES_DATADIR}/${PN}/xpngcc /usr/$(get_libdir)/python${PYVER}/site-packages/xpngcc + dosym ${GAMES_DATADIR}/${PN}/xpngcc/xpngcc.py ${GAMES_BINDIR}/xpilot-ng + doicon ${FILESDIR}/${PN}.png + make_desktop_entry ${PN} "XPilot NG" ${PN}.png + prepgamesdirs +} |