1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
8 DESCRIPTION="Classic networked version of T*tris"
9 HOMEPAGE="http://www.netris.org/"
10 SRC_URI="ftp://ftp.netris.org/pub/netris/${P}.tar.gz
11 mirror://debian/pool/main/n/netris/netris_${PV}-${DEB_VER}.diff.gz"
15 KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd"
18 DEPEND="sys-libs/ncurses:0="
24 tc-export CC CXX LD AR RANLIB
26 eapply "${WORKDIR}"/netris_${PV}-${DEB_VER}.diff
27 eapply "${S}"/debian/patches/[01]*
32 #include <sys/types.h> \
35 -e '/netint2/ s/short/int16_t/' \
36 -e '/netint4/ s/long/int32_t/' \
40 -e '/Be more forgiving/d' \
41 -e 's/static myRandSeed/static int myRandSeed/' \
44 -e 's/\(long pauseTimeLeft\)/\1 = 0/' \
50 -e 's/(LFLAGS)/(LDFLAGS) $(LFLAGS)/' \
55 bash ./Configure -O || die
60 dodoc FAQ README robot_desc