blob: 4addd94bdfad0518014fc4e659b3abfa2dfc0f1c (
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
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/abuse/abuse-0.8.ebuild,v 1.2 2011/07/16 17:30:49 hwoarang Exp $
EAPI=2
inherit autotools eutils games
DESCRIPTION="port of Abuse by Crack Dot Com"
HOMEPAGE="http://abuse.zoy.org/"
SRC_URI="http://abuse.zoy.org/raw-attachment/wiki/download/${P}.tar.gz"
LICENSE="GPL-2 WTFPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=">=media-libs/libsdl-1.1.6[audio,opengl,video]
media-libs/sdl-mixer
virtual/opengl"
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
eautoreconf
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--with-assetdir="${GAMES_DATADIR}/${PN}"
}
src_install() {
# Source-based install
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README TODO
doicon doc/${PN}.png
make_desktop_entry abuse Abuse
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "NOTE: If you had previous version of abuse installed"
elog "you may need to remove ~/.abuse for the game to work correctly."
}
|