1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 MY_PV="2019-03-04-Release-2.7.0"
9 DESCRIPTION="An open-source multiplatform software for playing card games over a network"
10 HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
11 SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+client +oracle server"
20 dev-qt/qtprintsupport:5
23 dev-qt/qtnetwork:5[ssl]
29 dev-qt/qtprintsupport:5
32 oracle? ( sys-libs/zlib )
40 dev-qt/linguist-tools:5
41 client? ( dev-libs/protobuf )
42 server? ( dev-libs/protobuf )
47 # As the default help/about display the sha1 we need it
50 S="${WORKDIR}/Cockatrice-${MY_PV}"
53 "${FILESDIR}"/use-ccache.patch
58 -DBUILD_SHARED_LIBS=OFF
60 -DWITH_CLIENT=$(usex client)
61 -DWITH_ORACLE=$(usex oracle)
62 -DWITH_SERVER=$(usex server)
63 -DICONDIR="${EPREFIX}/usr/share/icons"
64 -DDESKTOPDIR="${EPREFIX}/usr/share/applications" )
66 # Add date in the help about, come from git originally
67 sed -e 's/^set(PROJECT_VERSION_FRIENDLY.*/set(PROJECT_VERSION_FRIENDLY \"'${SHA1}'\")/' \
68 -i cmake/getversion.cmake || die "sed failed!"