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.
38 lines
738 B
38 lines
738 B
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit flag-o-matic toolchain-funcs
|
|
|
|
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"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="ipv6"
|
|
|
|
RDEPEND="sys-libs/ncurses:0="
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-no-ipv6.patch
|
|
"${FILESDIR}"/${P}-build.patch
|
|
"${FILESDIR}"/${P}-fnocommon.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
use ipv6 && append-cflags -DHAVE_IPV6
|
|
tc-export CC PKG_CONFIG
|
|
}
|
|
|
|
src_install() {
|
|
dobin tetrinet tetrinet-server
|
|
dodoc README TODO tetrinet.txt
|
|
}
|