diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/openyahtzee/openyahtzee-1.9.3.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/openyahtzee/openyahtzee-1.9.3.ebuild')
-rw-r--r-- | games-board/openyahtzee/openyahtzee-1.9.3.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/games-board/openyahtzee/openyahtzee-1.9.3.ebuild b/games-board/openyahtzee/openyahtzee-1.9.3.ebuild new file mode 100644 index 000000000000..35b4ee304f5e --- /dev/null +++ b/games-board/openyahtzee/openyahtzee-1.9.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +WX_GTK_VER="3.0" +inherit eutils wxwidgets toolchain-funcs versionator + +DESCRIPTION="A full-featured wxWidgets version of the classic dice game Yahtzee" +HOMEPAGE="http://openyahtzee.sourceforge.net/" +SRC_URI="mirror://sourceforge/openyahtzee/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" +DEPEND="${RDEPEND} + >=sys-devel/gcc-4.6 + dev-libs/boost" + +pkg_pretend() { + local ver=4.6 + local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support." + + if tc-is-gcc ; then + if ! version_is_at_least ${ver} $(gcc-version); then + die ${msg} + fi + else + ewarn "Ensure your compiler has C++11 support, otherwise build will fail." + fi +} + +src_configure() { + append-cxxflags -std=c++11 + need-wxwidgets unicode + econf --datadir=/usr/share +} |