You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1016 B
54 lines
1016 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
3 years ago
|
inherit desktop toolchain-funcs
|
||
13 years ago
|
|
||
7 years ago
|
DESCRIPTION="Tetanus On Drugs simulates playing Tetris under the influence of drugs"
|
||
13 years ago
|
HOMEPAGE="http://www.pineight.com/tod/"
|
||
|
SRC_URI="http://www.pineight.com/pc/win${PN}.zip"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
|
RDEPEND="media-libs/allegro:0[X]"
|
||
|
DEPEND="${RDEPEND}
|
||
4 years ago
|
app-arch/unzip"
|
||
13 years ago
|
|
||
6 years ago
|
S="${WORKDIR}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
3 years ago
|
|
||
6 years ago
|
eapply "${FILESDIR}"/${P}-makefile.patch
|
||
4 years ago
|
eapply "${FILESDIR}"/${P}-allegro.patch
|
||
3 years ago
|
|
||
|
sed -i \
|
||
|
-e '/CC = gcc/d' \
|
||
|
-e 's/gcc/$(CC)/' \
|
||
|
-e 's/$(CC) $(CFLAGS)/& $(CPPFLAGS)/' \
|
||
|
-e 's/$(LDFLAGS)/$(CFLAGS) $(CPPFLAGS) &/' \
|
||
|
makefile || die
|
||
|
|
||
13 years ago
|
sed -i \
|
||
3 years ago
|
-e "s:idltd\.dat:${EPREFIX}/usr/share/${PN}/idltd.dat:" \
|
||
10 years ago
|
rec.c || die
|
||
13 years ago
|
}
|
||
|
|
||
3 years ago
|
src_compile() {
|
||
|
tc-export CC
|
||
|
|
||
|
emake
|
||
|
}
|
||
|
|
||
13 years ago
|
src_install() {
|
||
6 years ago
|
newbin tod-debug.exe tod
|
||
|
insinto /usr/share/${PN}
|
||
10 years ago
|
doins idltd.dat
|
||
13 years ago
|
dodoc readme.txt
|
||
6 years ago
|
make_desktop_entry ${PN} "Tetanus On Drugs"
|
||
13 years ago
|
}
|