summaryrefslogtreecommitdiff
path: root/games-board/openyahtzee
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/openyahtzee
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/openyahtzee')
-rw-r--r--games-board/openyahtzee/Manifest3
-rw-r--r--games-board/openyahtzee/metadata.xml14
-rw-r--r--games-board/openyahtzee/openyahtzee-1.9.3.ebuild39
3 files changed, 56 insertions, 0 deletions
diff --git a/games-board/openyahtzee/Manifest b/games-board/openyahtzee/Manifest
new file mode 100644
index 000000000000..7296f363c5ec
--- /dev/null
+++ b/games-board/openyahtzee/Manifest
@@ -0,0 +1,3 @@
+DIST openyahtzee-1.9.3.tar.xz 178868 BLAKE2B 0cb5b87f8d4f9cdfbc81918f937ec783fef2488146f5497de0d01d6b50eeeef2edc308ca4230f1103b5770a03ccb74740e5c42b2ea01bd67705ed2aff6667d99 SHA512 7e696141d8f567247300c7f4924889b0a2f88866c70a10ad7619709990cacb726ec0af28bcee62a9f0d607d7f83ca5bb62d7275b2cc6e0343004f9125e4fb506
+EBUILD openyahtzee-1.9.3.ebuild 937 BLAKE2B dbc52d1d309360507c5260c151bc48a881be4925b5fc48e185264a7136565aea3fbd30cddf1a67375f1176dc18e58e7e328649c07dbe6ba3a8ddfe39df1a0453 SHA512 c213cf1063433df039abe8daf8f74e6f378c0f6f9353d80c12b5caa32c1a8c604570d9e54f269f0ce554adf83a644fccb90be40454faec1759ca4fe027d201f0
+MISC metadata.xml 462 BLAKE2B df86908050673276a1a63ed0c15cf798092cdb4caa47097cc1e96781d1afc11b08ccbf25598e40357c0c13ed3ba27508820d45bb73930ab137d00999abdabd36 SHA512 a2a3cb524e9432f9e439fd7f1bff4885ffca9230df17e5ad1f529710e606e34f5a65f0b880fd538d8dcccc228cba9672b8267fa17f8f2d477f7da416cbb8a7bc
diff --git a/games-board/openyahtzee/metadata.xml b/games-board/openyahtzee/metadata.xml
new file mode 100644
index 000000000000..e9c6b68de58e
--- /dev/null
+++ b/games-board/openyahtzee/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription lang="en">
+Open Yhatzee is an open-source (free) version of the classic dice game Yahtzee.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">openyahtzee</remote-id>
+ </upstream>
+</pkgmetadata>
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
+}