2015-02-19 16:57:21 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-02-19 16:57:21 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tetrinet/tetrinet-0.11.ebuild,v 1.16 2015/02/19 09:04:58 ago Exp $
|
2011-11-09 11:33:19 +04:00
|
|
|
|
2014-11-10 16:15:12 +03:00
|
|
|
EAPI=5
|
|
|
|
inherit eutils flag-o-matic games toolchain-funcs
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
DESCRIPTION="console based tetrinet inc. standalone server"
|
|
|
|
HOMEPAGE="http://tetrinet.or.cz/"
|
|
|
|
SRC_URI="http://tetrinet.or.cz/download/${P}.tar.bz2"
|
|
|
|
|
|
|
|
LICENSE="public-domain"
|
|
|
|
SLOT="0"
|
2015-02-19 16:57:21 +03:00
|
|
|
KEYWORDS="amd64 ppc x86"
|
2011-11-09 11:33:19 +04:00
|
|
|
IUSE="ipv6"
|
|
|
|
|
2014-11-10 16:15:12 +03:00
|
|
|
RDEPEND=">=sys-libs/ncurses-5"
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch \
|
|
|
|
"${FILESDIR}"/${P}-no-ipv6.patch \
|
|
|
|
"${FILESDIR}"/${P}-build.patch
|
|
|
|
|
2014-11-10 16:15:12 +03:00
|
|
|
use ipv6 && append-cflags -DHAVE_IPV6
|
|
|
|
tc-export PKG_CONFIG
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2014-11-10 16:15:12 +03:00
|
|
|
dogamesbin tetrinet tetrinet-server
|
2011-11-09 11:33:19 +04:00
|
|
|
dodoc README TODO tetrinet.txt
|
|
|
|
prepgamesdirs
|
|
|
|
}
|