summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seren <guillaumeseren@gmail.com>2017-07-15 14:45:38 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-08-26 00:45:51 +0200
commit94b62cb9701b8de80e1b31747aa2a5460e2a1a0b (patch)
tree49a5a0cf597f5ffe4bb76178991e866cb730b390
parentdev-embedded/arduino: update SRC_URI and EAPI 6 bump. (diff)
downloadgentoo-94b62cb9701b8de80e1b31747aa2a5460e2a1a0b.tar.gz
gentoo-94b62cb9701b8de80e1b31747aa2a5460e2a1a0b.tar.bz2
gentoo-94b62cb9701b8de80e1b31747aa2a5460e2a1a0b.zip
games-board/cockatrice: version bump to 20170505.
Gentoo-Bug: https://bugs.gentoo.org/625214 Closes: https://github.com/gentoo/gentoo/pull/5108
-rw-r--r--games-board/cockatrice/Manifest1
-rw-r--r--games-board/cockatrice/cockatrice-20170505.ebuild47
-rw-r--r--games-board/cockatrice/metadata.xml2
3 files changed, 50 insertions, 0 deletions
diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
index 0ad7ff7cca90..43c513d7770d 100644
--- a/games-board/cockatrice/Manifest
+++ b/games-board/cockatrice/Manifest
@@ -1,2 +1,3 @@
DIST cockatrice-20160506.tar.gz 6910937 SHA256 379835006f38b603af01cf46d508fd40e862b451045807b444042914e8736fee SHA512 5f90804270907b3a915e763e6a20c39432f76591a11df7198526fde5635314ffbb27026860053c302be1ef1dfce1efa445c5849c72d1220575314d6c3d67e94f WHIRLPOOL a13c531980da2cf172e933c5bcb179f8dc9368514fe7d2ec12a203f54c04aa5258218c6d2fc1bee30826598e1e8c057c437af6810709c26b0863cd2b665bc159
DIST cockatrice-20160630.tar.gz 6928656 SHA256 18c7ec245be8600d4c4be5868b71238ec669a38a24053d84aed608dae888a6f5 SHA512 a208b0e754285f9dd9f1f0bd28dbb29d97edf2d40da02bbe4dd6d6f01cfdff6fdc978ceaaf3d251252a69318519283790fa7ed5c552b08142e849e0b7c18d4cd WHIRLPOOL c339974104dc697f27c92263460b9dcd892819c0f7797247d3479bfb54b998118c22e7441ce9877749f6ffc265d7d5a6b5b5aa62bea1b0108fa558e0cc237e4d
+DIST cockatrice-20170505.tar.gz 7340644 SHA256 95f78db3c2f4f93e2b007b92687cb1655ce5d6b23d72aeb85fc043f60748701e SHA512 7cf319af46e4e2bd59428cf6635eeefebe70695adb445b24a727050abbc64124c17654ac058429b88a99f09f77639c15f8100d107ee8f54cad2bf0dec7051aa5 WHIRLPOOL 843b013e2ccadc56fe00b6f70527dc0a1e37a338dd6c87dd79017f842e569ca7513c6d445afc80cc8d65e37180cc03066739af2c6fc5bab5be28ff4978ef1f28
diff --git a/games-board/cockatrice/cockatrice-20170505.ebuild b/games-board/cockatrice/cockatrice-20170505.ebuild
new file mode 100644
index 000000000000..a8edee2cae16
--- /dev/null
+++ b/games-board/cockatrice/cockatrice-20170505.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils eutils gnome2-utils
+
+DESCRIPTION="An open-source multiplatform software for playing card games over a network"
+HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
+SRC_URI="${HOMEPAGE}/archive/2017-05-05-Release-2.3.17.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="server +client +oracle"
+
+DEPEND="
+ dev-libs/libgcrypt:0
+ dev-libs/protobuf
+ dev-qt/linguist-tools:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtcore:5
+ client? (
+ dev-qt/qtgui:5
+ dev-qt/qtmultimedia:5
+ dev-qt/qtsvg:5 )
+ oracle? (
+ sys-libs/zlib
+ )"
+
+# As the default help/about display the sha1 we need it
+SHA1='c96f234'
+
+S=${WORKDIR}/"Cockatrice-2017-05-05-Release-2.3.17"
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_CLIENT=$(usex client)
+ -DWITH_ORACLE=$(usex oracle)
+ -DWITH_SERVER=$(usex server)
+ -DICONDIR="/usr/share/icons"
+ -DDESKTOPDIR="/usr/share/applications" )
+
+ # Add date in the help about, come from git originally
+ sed -i 's/^set(PROJECT_VERSION_FRIENDLY.*/set(PROJECT_VERSION_FRIENDLY \"'${SHA1}'\")/' cmake/getversion.cmake || die "Sed failed!"
+ cmake-utils_src_configure
+}
diff --git a/games-board/cockatrice/metadata.xml b/games-board/cockatrice/metadata.xml
index 552042935af6..4b7993356215 100644
--- a/games-board/cockatrice/metadata.xml
+++ b/games-board/cockatrice/metadata.xml
@@ -17,6 +17,8 @@
</upstream>
<use>
<flag name="server">Compile server support</flag>
+ <flag name="oracle">Build with oracle</flag>
+ <flag name="client">Build with client</flag>
</use>
<longdescription lang="en">
Cockatrice is an open-source multiplatform software for playing card