logo

overlay

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

cataclysm-dda-0.6.3.ebuild (1230B)


  1. # Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. MY_PV="$(ver_rs 2-3 -)"
  5. MY_PV="${MY_PV/0.6/0.F}"
  6. MY_P="Cataclysm-DDA-${MY_PV}"
  7. DESCRIPTION="Post-apocalyptic roguelike"
  8. HOMEPAGE="https://cataclysmdda.org/"
  9. SRC_URI="https://github.com/CleverRaven/Cataclysm-DDA/archive/refs/tags/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
  10. S="${WORKDIR}/${MY_P}"
  11. LICENSE="CC-BY-SA-3.0"
  12. SLOT="0"
  13. KEYWORDS="~amd64"
  14. IUSE="+sdl"
  15. RDEPEND="
  16. x11-themes/hicolor-icon-theme
  17. sys-libs/ncurses:=
  18. sys-devel/gettext
  19. sdl? (
  20. media-libs/libsdl2[sound]
  21. media-libs/sdl2-image[png]
  22. media-libs/sdl2-ttf
  23. media-libs/sdl2-mixer[vorbis]
  24. media-libs/freetype:2
  25. )
  26. "
  27. DEPEND="
  28. ${DEPEND}
  29. "
  30. mymake() {
  31. emake \
  32. PREFIX=/usr BUILD_PREFIX="${S}_build/" \
  33. RELEASE=1 USE_XDG_DIR=1 DYNAMIC_LINKING=1 DEBUG_SYMBOLS=1 ASTYLE=0 \
  34. BACKTRACE=0 RUNTESTS=0 \
  35. LOCALIZE=1 LANGUAGES=all \
  36. $(usev sdl 'TILES=1 SOUND=1') \
  37. "$@"
  38. }
  39. src_prepare() {
  40. sed -i \
  41. -e 's;-Werror;;' \
  42. -e 's;ncursesw5-config;ncursesw6-config;' \
  43. -e 's;shell git;shell false;' \
  44. Makefile || die
  45. default
  46. }
  47. src_compile() {
  48. mymake
  49. }
  50. src_install() {
  51. mymake DESTDIR="${ED}" install
  52. dodoc -r ./doc
  53. }