Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 588234
Collapse All | Expand All

(-)openyahtzee-1.9.2.ebuild (-16 / +15 lines)
Lines 1-18 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
5
EAPI=5
5
EAPI=6
6
WX_GTK_VER="3.0"
6
WX_GTK_VER="3.0"
7
inherit eutils wxwidgets toolchain-funcs versionator games
7
inherit eutils wxwidgets toolchain-funcs versionator flag-o-matic
8
8
9
DESCRIPTION="A full-featured wxWidgets version of the classic dice game Yahtzee"
9
DESCRIPTION="A full-featured wxWidgets version of the classic dice game Yahtzee"
10
HOMEPAGE="http://openyahtzee.sourceforge.net/"
10
HOMEPAGE="http://openyahtzee.sourceforge.net/"
11
SRC_URI="mirror://sourceforge/openyahtzee/${P}.tar.bz2"
11
SRC_URI="mirror://sourceforge/openyahtzee/${P}.tar.xz"
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 ppc x86"
15
KEYWORDS="~amd64 ~ppc ~x86"
16
IUSE=""
16
IUSE=""
17
17
18
RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]"
18
RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]"
Lines 23-46 Link Here
23
pkg_pretend() {
23
pkg_pretend() {
24
	local ver=4.6
24
	local ver=4.6
25
	local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support."
25
	local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support."
26
	if ! version_is_at_least ${ver} $(gcc-version); then
26
	if tc-is-gcc ;
27
		eerror ${msg}
27
	then 
28
		die ${msg}
28
	    if ! version_is_at_least ${ver} $(gcc-version) ; then
29
			eerror ${msg}
30
			die ${msg}
31
		fi
32
	else
33
		ewarn "Ensure your compiler has C++11 support, otherwise build will fail."
29
	fi
34
	fi
30
}
35
}
31
36
32
src_prepare() {
33
	# Debian patch that was upstreamed and accepted
34
	# This can be dropped on next version then
35
	epatch "${FILESDIR}"/${P}-wx3.0.patch
36
}
37
38
src_configure() {
37
src_configure() {
38
	append-cxxflags -std=c++11
39
	need-wxwidgets unicode
39
	need-wxwidgets unicode
40
	egamesconf --datadir=/usr/share
40
	econf --datadir=/usr/share
41
}
41
}
42
42
43
src_install() {
43
src_install() {
44
	default
44
	default
45
	prepgamesdirs
46
}
45
}

Return to bug 588234