/[gentoo-x86]/games-action/d1x-rebirth/d1x-rebirth-0.57.3.ebuild
Gentoo

Contents of /games-action/d1x-rebirth/d1x-rebirth-0.57.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Feb 5 04:15:08 2015 UTC (5 years, 3 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
Error occurred while calculating annotation data.
FILE REMOVED
old

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/d1x-rebirth/d1x-rebirth-0.57.3.ebuild,v 1.2 2014/05/15 16:21:15 ulm Exp $
4
5 EAPI=5
6
7 CDROM_OPTIONAL="yes"
8 inherit eutils cdrom scons-utils games
9
10 DV=1
11 MY_P=${PN}_v${PV}-src
12 DESCRIPTION="Descent Rebirth - enhanced Descent ${DV} engine"
13 HOMEPAGE="http://www.dxx-rebirth.com/"
14 SRC_URI="mirror://sourceforge/dxx-rebirth/${MY_P}.tar.gz
15 http://www.dxx-rebirth.com/download/dxx/res/d1xrdata.zip
16 http://www.dxx-rebirth.com/download/dxx/res/dxx-rebirth_icons.zip
17 opl3-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-opl3-music.zip )
18 sc55-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-sc55-music.zip ) cdinstall? ( http://www.dxx-rebirth.com/download/dxx/res/d1datapt.zip )
19 linguas_de? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-briefings-ger.zip )"
20
21 LICENSE="D1X GPL-2 public-domain"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE="cdinstall debug demo ipv6 linguas_de +music opengl opl3-musicpack sc55-musicpack"
25 REQUIRED_USE="?? ( cdinstall demo )
26 ?? ( opl3-musicpack sc55-musicpack )
27 opl3-musicpack? ( music )
28 sc55-musicpack? ( music )"
29
30 RDEPEND="dev-games/physfs[hog,zip]
31 media-libs/libsdl[X,sound,joystick,opengl?,video]
32 cdinstall? ( !games-action/descent1-demodata )
33 music? (
34 media-libs/sdl-mixer[timidity]
35 )
36 opengl? (
37 virtual/opengl
38 virtual/glu
39 )"
40 DEPEND="${RDEPEND}
41 app-arch/unzip"
42 PDEPEND="demo? ( games-action/descent1-demodata )"
43
44 S=${WORKDIR}/${MY_P}
45
46 src_unpack() {
47 unpack ${MY_P}.tar.gz dxx-rebirth_icons.zip
48 if use cdinstall ; then
49 unpack d1datapt.zip
50 cdrom_get_cds descent/descent.hog
51 mkdir "${S}"/Data
52 cp \
53 ${CDROM_ROOT}/descent/descent.{hog,pig} \
54 ${CDROM_ROOT}/descent/chaos.{hog,msn} \
55 "${S}"/Data \
56 || die "cp failed"
57 fi
58 }
59
60 src_prepare() {
61 if use cdinstall ; then
62 cd Data
63 patch -p0 < "${WORKDIR}"/d1datapt/descent.hog.diff descent.hog
64 patch -p0 < "${WORKDIR}"/d1datapt/descent.pig.diff descent.pig
65 fi
66 epatch "${FILESDIR}"/${P}-flags.patch
67 }
68
69 src_compile() {
70 escons \
71 verbosebuild=1 \
72 sharepath="${GAMES_DATADIR}/d${DV}x" \
73 $(use_scons ipv6) \
74 $(use_scons music sdlmixer) \
75 $(use_scons debug) \
76 $(use_scons opengl) \
77 || die
78 }
79
80 src_install() {
81 dodoc {CHANGELOG,INSTALL,README,RELEASE-NOTES}.txt
82
83 insinto "${GAMES_DATADIR}/d${DV}x"
84 doins "${DISTDIR}"/d1xrdata.zip
85 # None of the following zip files need to be extracted.
86 use linguas_de && doins "${DISTDIR}"/d${DV}xr-briefings-ger.zip
87 use opl3-musicpack && doins "${DISTDIR}"/d${DV}xr-opl3-music.zip
88 use sc55-musicpack && doins "${DISTDIR}"/d${DV}xr-sc55-music.zip
89
90 if use cdinstall ; then
91 doins Data/descent.{hog,pig}
92 insinto "${GAMES_DATADIR}"/d${DV}x/missions
93 doins Data/chaos.{hog,msn}
94 fi
95 doicon "${WORKDIR}/${PN}.xpm"
96
97 dogamesbin d${DV}x-rebirth
98 make_desktop_entry d${DV}x-rebirth "Descent ${DV} Rebirth"
99 prepgamesdirs
100 }
101
102 pkg_postinst() {
103 games_pkg_postinst
104 if ! use cdinstall ; then
105 echo
106 elog "To play the full game enable USE=\"cdinstall\" or manually "
107 elog "copy the files to ${GAMES_DATADIR}/d${DV}x."
108 elog "See /usr/share/doc/${PF}/INSTALL.txt for details."
109 echo
110 fi
111 }

  ViewVC Help
Powered by ViewVC 1.1.20