Skip to content

Commit

Permalink
games-puzzle/tetrinet: Stop using games.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.31, Repoman-2.3.9
  • Loading branch information
pacho2 committed May 1, 2018
1 parent bdb243f commit 0acb93c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions games-puzzle/tetrinet/tetrinet-0.11-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
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-5:0="
DEPEND="${RDEPEND}
virtual/pkgconfig
"

src_prepare() {
default
eapply \
"${FILESDIR}"/${P}-no-ipv6.patch \
"${FILESDIR}"/${P}-build.patch

use ipv6 && append-cflags -DHAVE_IPV6
tc-export PKG_CONFIG
}

src_install() {
dobin tetrinet tetrinet-server
dodoc README TODO tetrinet.txt
}

0 comments on commit 0acb93c

Please sign in to comment.