diff options
author | Austin English <wizardedit@gentoo.org> | 2016-08-04 17:56:30 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-08-04 19:22:34 -0500 |
commit | ce7d36bd87f8529dce1a50029233da5b8903c15b (patch) | |
tree | baaf59d30637645e421422ef8241292677d42c79 /games-board | |
parent | de96c31b5c59dab68f8143af5945ed3274326f03 (diff) | |
download | gentoo-ce7d36bd87f8529dce1a50029233da5b8903c15b.tar.gz gentoo-ce7d36bd87f8529dce1a50029233da5b8903c15b.tar.xz |
games-board/holdingnuts: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild b/games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild new file mode 100644 index 00000000000..89c6f2b637d --- /dev/null +++ b/games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils cmake-utils + +DESCRIPTION="An open source poker client and server" +HOMEPAGE="http://www.holdingnuts.net/" +SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="alsa debug dedicated" + +RDEPEND=" + !dedicated? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + alsa? ( >=media-libs/libsdl-1.2.10:0[alsa] ) + )" + +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.3" + +PATCHES=( + "${FILESDIR}"/${P}-wheel.patch # upstream patch (bug #307901) +) + +src_prepare() { + default + + sed -i -e '/^Path/d' holdingnuts.desktop || die +} + +src_configure() { + local mycmakeargs="-DWITH_AUDIO=$(usex alsa) + -DENABLE_CLIENT=$(usex !dedicated) + -DWITH_DEBUG=$(usex debug)" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if ! use dedicated ; then + domenu ${PN}.desktop + doicon ${PN}.png + doman docs/${PN}.6 + fi + + dodoc ChangeLog docs/protocol_spec.txt + doman docs/${PN}-server.6 +} |