blob: 38a3325e67de2fb660b3adf276be61d8e6eef7c1 (
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
55
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit games
DESCRIPTION="Terminal-based Tetris clone by Victor Nilsson."
HOMEPAGE="http://victornils.net/tetris/"
SRC_URI="http://victornils.net/tetris/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE="X allegro joystick ncurses net"
DEPEND="
allegro? ( media-libs/allegro )
ncurses? ( sys-libs/ncurses )
X? ( x11-libs/libX11 )"
RDEPEND=""
src_prepare() {
sed -i \
-e "s|-strip --strip-all|echo|" \
-e "s|PROGNAME = tetris|PROGNAME = vitetris|" \
Makefile || die "sed Makefile failed"
epatch "${FILESDIR}"/${PN}-0.55-configure.patch
}
src_configure() {
egamesconf \
$(use_enable X xlib) \
$(use_enable joystick js) \
$(use_enable ncurses curses) \
$(use_enable net network) \
|| die "egamesconf failed"
}
src_compile() {
emake \
LDFLAGS="${LDFLAGS}" \
CCFLAGS="${CXXFLAGS}" \
|| die "emake failed"
}
src_install() {
dogamesbin vitetris || die "dogamesbin failed"
dodoc README || die "dodoc failed"
prepgamesdirs
}
|