summaryrefslogtreecommitdiff
blob: 22285c12b11222306c50acea799adb725768d007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft-fcmp/freecraft-fcmp-1.18-r1.ebuild,v 1.5 2004/06/24 23:27:42 agriffis Exp $

inherit games

FCMP_VER=030311
MUSIC_VER=030226
DESCRIPTION="A collection of graphic/sound files to replace the data files from a real WarCraft CD"
HOMEPAGE="http://www.freecraft.org/"
SRC_URI="fcmp-${FCMP_VER}.tar.gz
	music? ( music-pack-${MUSIC_VER}.tar.gz )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="music"
RESTRICT="fetch"

DEPEND="=games-strategy/freecraft-1.18*"

S=${WORKDIR}

pkg_nofetch() {
	einfo "Due to a Ceast and Desist given by Blizzard,"
	einfo "you must obtain the sources for this game yourself."
	einfo "For more information, please visit: ${HOMEPAGE}"
	einfo "Also, you'll have to place the files ${A}"
	einfo "into ${DISTDIR}"
}

src_install() {
	dohtml data/ChangeLog.html && rm data/ChangeLog.html
	dodir ${GAMES_DATADIR}/freecraft/
	cp -r ${S}/data ${D}/${GAMES_DATADIR}/freecraft/
	prepgamesdirs
}