logo

overlay

My (experimental) gentoo overlay
commit: a287271fe6963d76a64750058a76b1170432490e
parent: 68d1552d4b2695552862494d1c1f8a4098af3084
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 20 May 2017 23:16:50 +0200

games-board/cockatrice-2.3.17: Bump version from ::gentoo

Diffstat:

Agames-board/cockatrice/Manifest1+
Agames-board/cockatrice/cockatrice-2.3.17.ebuild52++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest @@ -0,0 +1 @@ +DIST cockatrice-2.3.17.tar.gz 7340644 SHA256 95f78db3c2f4f93e2b007b92687cb1655ce5d6b23d72aeb85fc043f60748701e SHA512 7cf319af46e4e2bd59428cf6635eeefebe70695adb445b24a727050abbc64124c17654ac058429b88a99f09f77639c15f8100d107ee8f54cad2bf0dec7051aa5 WHIRLPOOL 843b013e2ccadc56fe00b6f70527dc0a1e37a338dd6c87dd79017f842e569ca7513c6d445afc80cc8d65e37180cc03066739af2c6fc5bab5be28ff4978ef1f28 diff --git a/games-board/cockatrice/cockatrice-2.3.17.ebuild b/games-board/cockatrice/cockatrice-2.3.17.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils eutils + +DESCRIPTION="An open-source multiplatform software for playing card games over a network" +HOMEPAGE="https://github.com/Cockatrice/Cockatrice" + +SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/2017-05-05-Release-2.3.17.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/"Cockatrice-2017-05-05-Release-2.3.17" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated server nls" + +DEPEND=" + dev-libs/protobuf + nls? ( dev-qt/linguist-tools:5 ) + dev-qt/qtwidgets:5 + dev-qt/qtwebsockets:5 + !dedicated? ( + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtsvg:5 + )" + +src_configure() { + local mycmakeargs=( + $(usex dedicated "-DWITHOUT_CLIENT=1 -DWITH_SERVER=1" "$(usex server "-DWITH_SERVER=1" "")") + -DICONDIR="/usr/share/icons" + -DDESKTOPDIR="/usr/share/applications" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} + +pkg_postinst() { + #FIXME: + elog "zonebg pictures are in ${GAMES_DATADIR}/${PN}/zonebg" + elog "sounds are in ${GAMES_DATADIR}/${PN}/sounds" + elog "you can use those directories in cockatrice settings" +}