/[gentoo-x86]/games-fps/ezquake-bin/ezquake-bin-1.9.3.ebuild
Gentoo

Contents of /games-fps/ezquake-bin/ezquake-bin-1.9.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Feb 5 08:58:54 2013 UTC (17 months, 2 weeks ago) by tupone
Branch: MAIN
Changes since 1.4: +4 -9 lines
Use QA_PREBUILT. Bug #454986

(Portage version: 2.1.11.50/cvs/Linux i686, signed Manifest commit with key 0145142D)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/ezquake-bin/ezquake-bin-1.9.3.ebuild,v 1.4 2009/12/02 21:54:40 mr_bones_ Exp $
4
5 EAPI=2
6 inherit games
7
8 MY_PN="${PN/-bin/}"
9 DESCRIPTION="Quakeworld client with mqwcl functionality and many more features."
10 HOMEPAGE="http://ezquake.sf.net/"
11 SRC_URI="amd64? ( mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_64.${PV}.tar.gz )
12 x86? ( mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_${PV}.tar.gz )"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 RESTRICT="strip"
18 IUSE="cdinstall opengl svga +X"
19
20 DEPEND="cdinstall? ( games-fps/quake1-data )"
21 RDEPEND="${DEPEND}
22 X? ( x11-libs/libXext )
23 svga? ( media-libs/svgalib )
24 opengl? (
25 virtual/opengl
26 x11-libs/libXxf86dga
27 x11-libs/libXxf86vm
28 )"
29
30 S=${WORKDIR}/${MY_PN}
31
32 dir=${GAMES_PREFIX_OPT}/${PN}
33
34 QA_PREBUILT="${dir:1}/ezquake*"
35
36 src_unpack() {
37 unpack ${A}
38 if use amd64; then
39 mv ${MY_PN}_linux-x86_64.${PV} "${MY_PN}"
40 else
41 mv ${MY_PN}_linux-x86.${PV} "${MY_PN}"
42 fi
43 }
44
45 src_install() {
46 exeinto "${dir}"
47 insinto "${dir}"
48
49 local x BINS=""
50 use X && BINS="ezquake.x11"
51 use svga && BINS="${BINS} ezquake.svga"
52 use opengl && BINS="${BINS} ezquake-gl.glx"
53
54 doexe ${BINS} || die "doexe"
55 doins -r ezquake qw || die "doins failed"
56 dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1
57
58 for x in ${BINS}; do
59 games_make_wrapper ${x} ./${x} "${dir}" "${dir}"
60 done
61
62 prepgamesdirs
63 }
64
65 pkg_postinst() {
66 games_pkg_postinst
67
68 if ! use cdinstall; then
69 elog "NOTE that this client doesn't include .pak files. You *should*"
70 elog "enable \"cdinstall\" flag or install quake1-demodata with the symlink use flag."
71 elog "You can also copy the files from your Quake1 CD to"
72 elog " ${dir}/quake1/id1 (all names lowercase)"
73 elog ""
74 elog "You may also want to check:"
75 elog " http://fuhquake.quakeworld.nu - complete howto on commands and variables"
76 elog " http://equake.quakeworld.nu - free package containing various files"
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20