/[gentoo-x86]/games-fps/avp/avp-20031110.ebuild
Gentoo

Contents of /games-fps/avp/avp-20031110.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Jun 8 19:51:47 2006 UTC (13 years, 8 months ago) by wolf31o2
Branch: MAIN
Changes since 1.2: +5 -5 lines
Changed to use normal unpack.  Thanks to Tristan Heaven <tristanheaven@gmail.com> for pointing this out.
(Portage version: 2.1_rc4-r3)

1 wolf31o2 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 wolf31o2 1.3 # $Header: /var/cvsroot/gentoo-x86/games-fps/avp/avp-20031110.ebuild,v 1.2 2006/06/06 14:20:29 wolf31o2 Exp $
4 wolf31o2 1.1
5     #ECVS_SERVER="icculus.org:/cvs/cvsroot"
6     ECVS_PASS="anonymous"
7     ECVS_MODULE="avp"
8 wolf31o2 1.2 #inherit eutils cvs games
9     inherit eutils games
10 wolf31o2 1.1
11     DESCRIPTION="Linux port of Aliens vs Predator"
12     HOMEPAGE="http://www.icculus.org/avp/"
13     SRC_URI="mirror://gentoo/avp-${PV}.tar.bz2"
14    
15     LICENSE="AvP"
16     SLOT="0"
17     KEYWORDS="x86"
18     IUSE=""
19    
20     DEPEND="media-libs/openal
21     media-libs/libsdl"
22    
23     S=${WORKDIR}/${ECVS_MODULE}
24    
25     pkg_setup() {
26     games_pkg_setup
27     if has_version 'media-video/nvidia-glx' && has_version '<media-video/nvidia-glx-1.0.5328' ; then
28     ewarn "Your version of OpenGL may not allow this package to compile."
29     ewarn "You need either X11 OpenGL or nvidia-glx at least version 1.0.5328."
30     fi
31     }
32    
33     src_unpack() {
34 wolf31o2 1.3 # if [ "${ECVS_SERVER}" == "offline" ] ; then
35 wolf31o2 1.1 unpack ${A}
36 wolf31o2 1.3 # else
37     # cvs_src_unpack
38     # fi
39 wolf31o2 1.1
40     cd "${S}"
41    
42     sed -i \
43     -e "/^CFLAGS =/s:=.*:=${CFLAGS}:" Makefile \
44     || die "sed Makefile failed"
45     epatch "${FILESDIR}/${P}-gcc34.patch"
46     }
47    
48     src_install() {
49     dogamesbin AvP || die "dogamesbin failed"
50     dodoc README TODO
51     prepgamesdirs
52     }
53    
54     pkg_postinst() {
55     games_pkg_postinst
56     einfo "please follow the instructions in"
57     einfo "/usr/share/doc/${PF}/README.gz"
58     einfo "to install the rest of the game"
59     }

  ViewVC Help
Powered by ViewVC 1.1.20