cockatrice-2.6.2.ebuild (1395B)
1 # Copyright 1999-2017 Gentoo Foundation 2 # Copyright 2017-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> 3 # Distributed under the terms of the GNU General Public License v2 4 5 EAPI=7 6 7 inherit cmake-utils 8 9 MY_P="Cockatrice-2018-12-20-Release-${PV}" 10 11 DESCRIPTION="An open-source multiplatform software for playing card games over a network" 12 HOMEPAGE="https://github.com/Cockatrice/Cockatrice" 13 14 SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/${MY_P}.tar.gz -> ${P}.tar.gz" 15 S="${WORKDIR}/${MY_P}" 16 17 LICENSE="GPL-2" 18 SLOT="0" 19 KEYWORDS="~amd64" 20 IUSE="+client server +oracle nls" 21 22 DEPEND=" 23 dev-libs/protobuf:= 24 nls? ( dev-qt/linguist-tools:5 ) 25 dev-qt/qtnetwork:5 26 client? ( 27 dev-qt/qtconcurrent:5 28 dev-qt/qtmultimedia:5 29 dev-qt/qtprintsupport:5 30 dev-qt/qtsvg:5 31 dev-qt/qtwidgets:5 32 ) 33 server? ( 34 dev-qt/qtsql:5 35 dev-qt/qtwebsockets:5 36 ) 37 oracle? ( 38 dev-qt/qtconcurrent:5 39 dev-qt/qtsvg:5 40 dev-qt/qtwidgets:5 41 sys-libs/zlib:= 42 ) 43 " 44 45 src_configure() { 46 local mycmakeargs=( 47 -DWITH_CLIENT="$(usex client)" 48 -DWITH_SERVER="$(usex server)" 49 -DWITH_ORACLE="$(usex oracle)" 50 -DICONDIR="/usr/share/icons" 51 -DDESKTOPDIR="/usr/share/applications" 52 ) 53 54 cmake-utils_src_configure 55 } 56 57 pkg_postinst() { 58 #FIXME: 59 elog "zonebg pictures are in ${GAMES_DATADIR}/${PN}/zonebg" 60 elog "sounds are in ${GAMES_DATADIR}/${PN}/sounds" 61 elog "you can use those directories in cockatrice settings" 62 }