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.
57 lines
1.0 KiB
57 lines
1.0 KiB
4 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
|
||
|
|
||
|
inherit toolchain-funcs
|
||
13 years ago
|
|
||
|
DESCRIPTION="A color ncurses tetris clone"
|
||
|
HOMEPAGE="http://www.earth.li/projectpurple/progs/seatris.html"
|
||
|
SRC_URI="http://www.earth.li/projectpurple/files/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||
13 years ago
|
|
||
4 years ago
|
DEPEND="sys-libs/ncurses:="
|
||
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
acct-group/gamestat
|
||
|
"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-as-needed.patch
|
||
|
)
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
4 years ago
|
default
|
||
|
|
||
13 years ago
|
sed -i \
|
||
4 years ago
|
-e "s:/var/lib/games:/var/lib/${PN}:" \
|
||
10 years ago
|
scoring.h seatris.6 || die
|
||
4 years ago
|
}
|
||
10 years ago
|
|
||
4 years ago
|
src_configure() {
|
||
|
tc-export CC
|
||
|
econf
|
||
13 years ago
|
}
|
||
|
|
||
10 years ago
|
src_compile() {
|
||
|
emake LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )"
|
||
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
4 years ago
|
dobin seatris
|
||
|
|
||
13 years ago
|
doman seatris.6
|
||
|
dodoc ACKNOWLEDGEMENTS HISTORY README TODO example.seatrisrc
|
||
4 years ago
|
|
||
|
dodir /var/lib/${PN}
|
||
|
touch "${ED}"/var/lib/${PN}/seatris.score || die
|
||
|
fperms 660 /var/lib/${PN}/seatris.score
|
||
|
|
||
|
fowners -R root:gamestat /var/lib/${PN}
|
||
|
fperms g+s /usr/bin/${PN}
|
||
13 years ago
|
}
|