commit: 99e06b77f66b0bd97829e4715b057945c3fa4b67 parent cde9f273cf78e4647d6197fc370e8dc316a40d3f Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Sun, 5 Jun 2022 12:45:59 +0200 games-roguelike/cataclysm-dda: initial importDiffstat:
A | games-roguelike/cataclysm-dda/Manifest | 1 | + |
A | games-roguelike/cataclysm-dda/cataclysm-dda-0.6.3.ebuild | 62 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/games-roguelike/cataclysm-dda/Manifest b/games-roguelike/cataclysm-dda/Manifest @@ -0,0 +1 @@ +DIST Cataclysm-DDA-0.F-3.tar.gz 90173246 BLAKE2B 2e715ff131ce654b0ad6f18cb465b80ab55a09e5d48434a7d209454c9a2a952970f572bb81539bf071efe1292310f5b922c75a6c86ba360cca13dbeb91e13996 SHA512 1bbbe101d37fc90d9b6b5bbe6503523801a91ece399d2e776f500af84d10b786decf5ece61ae9fb04d5cea9d760d026f11a91ba29122b9844c0c772c1e684ed8 diff --git a/games-roguelike/cataclysm-dda/cataclysm-dda-0.6.3.ebuild b/games-roguelike/cataclysm-dda/cataclysm-dda-0.6.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV="$(ver_rs 2-3 -)" +MY_PV="${MY_PV/0.6/0.F}" +MY_P="Cataclysm-DDA-${MY_PV}" + +DESCRIPTION="Post-apocalyptic roguelike" +HOMEPAGE="https://cataclysmdda.org/" +SRC_URI="https://github.com/CleverRaven/Cataclysm-DDA/archive/refs/tags/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+sdl" + +RDEPEND=" + x11-themes/hicolor-icon-theme + sys-libs/ncurses:= + sys-devel/gettext + sdl? ( + media-libs/libsdl2[sound] + media-libs/sdl2-image[png] + media-libs/sdl2-ttf + media-libs/sdl2-mixer[vorbis] + media-libs/freetype:2 + ) +" +DEPEND=" + ${DEPEND} +" + +mymake() { + emake \ + PREFIX=/usr BUILD_PREFIX="${S}_build/" \ + RELEASE=1 USE_XDG_DIR=1 DYNAMIC_LINKING=1 DEBUG_SYMBOLS=1 ASTYLE=0 \ + BACKTRACE=0 RUNTESTS=0 \ + LOCALIZE=1 LANGUAGES=all \ + $(usev sdl 'TILES=1 SOUND=1') \ + "$@" +} + +src_prepare() { + sed -i \ + -e 's;-Werror;;' \ + -e 's;ncursesw5-config;ncursesw6-config;' \ + -e 's;shell git;shell false;' \ + Makefile || die + + default +} + +src_compile() { + mymake +} + +src_install() { + mymake DESTDIR="${ED}" install + dodoc -r ./doc +}