logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

cockatrice-2.7.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. EAPI=7
  5. inherit cmake-utils
  6. MY_P="2019-08-31-Release-${PV}"
  7. DESCRIPTION="An open-source multiplatform software for playing card games over a network"
  8. HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
  9. SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
  10. S="${WORKDIR}/Cockatrice-${MY_P}"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="~amd64"
  14. IUSE="+client server +oracle nls"
  15. DEPEND="
  16. dev-libs/protobuf:=
  17. nls? ( dev-qt/linguist-tools:5 )
  18. dev-qt/qtnetwork:5
  19. client? (
  20. dev-qt/qtconcurrent:5
  21. dev-qt/qtmultimedia:5
  22. dev-qt/qtprintsupport:5
  23. dev-qt/qtsvg:5
  24. dev-qt/qtwidgets:5
  25. )
  26. server? (
  27. dev-qt/qtsql:5
  28. dev-qt/qtwebsockets:5
  29. )
  30. oracle? (
  31. dev-qt/qtconcurrent:5
  32. dev-qt/qtsvg:5
  33. dev-qt/qtwidgets:5
  34. sys-libs/zlib:=
  35. )
  36. "
  37. src_configure() {
  38. local mycmakeargs=(
  39. -DWITH_CLIENT="$(usex client)"
  40. -DWITH_SERVER="$(usex server)"
  41. -DWITH_ORACLE="$(usex oracle)"
  42. -DICONDIR="/usr/share/icons"
  43. -DDESKTOPDIR="/usr/share/applications"
  44. )
  45. cmake-utils_src_configure
  46. }
  47. pkg_postinst() {
  48. #FIXME:
  49. elog "zonebg pictures are in ${GAMES_DATADIR}/${PN}/zonebg"
  50. elog "sounds are in ${GAMES_DATADIR}/${PN}/sounds"
  51. elog "you can use those directories in cockatrice settings"
  52. }