blob: 1df69c34f27dd2f718098427a85c666c2c6b1a07 (
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
48
49
50
51
52
53
54
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xblockout/xblockout-1.1.6.ebuild,v 1.1 2013/02/17 04:00:40 hasufell Exp $
EAPI=5
inherit flag-o-matic eutils games
DESCRIPTION="X Window block dropping game in 3 Dimension"
HOMEPAGE="http://www710.univ-lyon1.fr/ftp/xbl/xbl.html"
SRC_URI="http://www710.univ-lyon1.fr/~exco/XBL/xbl-${PV}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="x11-libs/libX11
x11-libs/libXext"
DEPEND="${RDEPEND}"
S=${WORKDIR}/xbl-${PV}
src_prepare() {
epatch "${FILESDIR}"/${P}-font.patch
sed -i \
-e '/^CC/d' \
-e 's:-lm:-lm -lX11:' \
-e '/DGROUP_GID/d' \
-e "s:-g$:${CFLAGS}:" \
Makefile.in || die "sed failed"
# Don't know about other archs. --slarti
use amd64 && filter-flags "-fweb"
}
src_compile() {
emake \
USE_SETGID= \
SCOREDIR="${GAMES_DATADIR}/${PN}" \
RESOURCEDIR="${GAMES_DATADIR}/${PN}" \
LDOPTIONS="${LDFLAGS}"
}
src_install() {
newgamesbin bl xbl
insinto "${GAMES_DATADIR}"/${PN}
newins Xbl.ad Xbl
newman xbl.man xbl.6
dodoc README xbl-README
dohtml *.html *.gif
make_desktop_entry xbl XBlockOut
prepgamesdirs
}
|