diff options
author | Guillaume Seren <guillaumeseren@gmail.com> | 2016-06-24 15:38:59 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-07-12 19:03:32 +0200 |
commit | 2f2b7ec5b6fb49b79bd936219f0b0ae5baa70514 (patch) | |
tree | 93b7b0f40b20b27d6e209cab573a8a825609d7d3 /games-board/cockatrice/cockatrice-20160506.ebuild | |
parent | sys-kernel/gentoo-sources: Clean up old, unsupported versions of 4.6.X kernel (diff) | |
download | gentoo-2f2b7ec5b6fb49b79bd936219f0b0ae5baa70514.tar.gz gentoo-2f2b7ec5b6fb49b79bd936219f0b0ae5baa70514.tar.bz2 gentoo-2f2b7ec5b6fb49b79bd936219f0b0ae5baa70514.zip |
games-board/cockatrice: version bump to 20160506
Also add the new dependencies for QT5.
Closes: https://github.com/gentoo/gentoo/pull/1735
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'games-board/cockatrice/cockatrice-20160506.ebuild')
-rw-r--r-- | games-board/cockatrice/cockatrice-20160506.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/games-board/cockatrice/cockatrice-20160506.ebuild b/games-board/cockatrice/cockatrice-20160506.ebuild new file mode 100644 index 000000000000..9cb5d3b15a67 --- /dev/null +++ b/games-board/cockatrice/cockatrice-20160506.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils eutils gnome2-utils games + +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/${PN}/archive/2016-05-06-Release.tar.gz" + +S=${WORKDIR}/"Cockatrice-2016-05-06-Release" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dedicated server" + +DEPEND=" + dev-libs/libgcrypt:0 + dev-libs/protobuf + dev-qt/qtcore:5 + dev-qt/qtconcurrent + dev-qt/linguist-tools + dev-qt/qtprintsupport + !dedicated? ( + dev-qt/qtmultimedia:5 + dev-qt/qtsvg:5 + dev-qt/qtgui:5 + )" + +src_configure() { + local mycmakeargs=( + $(usex dedicated "-DWITHOUT_CLIENT=1 -DWITH_SERVER=1" "$(usex server "-DWITH_SERVER=1" "")") + -DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}" + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + -DDATADIR="${GAMES_DATADIR}/${PN}" + -DICONDIR="/usr/share/icons" + -DDESKTOPDIR="/usr/share/applications" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + use dedicated || gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + 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" + use dedicated || gnome2_icon_cache_update +} + +pkg_postrm() { + use dedicated || gnome2_icon_cache_update +} |