logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ad7eeabe09f5afc2f083753a906c54ebd0a64aed
parent f487dff59778eff257c0a50122ca9e061f8a950d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 20 Aug 2024 02:22:06 +0200

games-roguelike/cataclysm-dda: add 0.7

Diffstat:

Mgames-roguelike/cataclysm-dda/Manifest1+
Agames-roguelike/cataclysm-dda/cataclysm-dda-0.7.ebuild62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/games-roguelike/cataclysm-dda/Manifest b/games-roguelike/cataclysm-dda/Manifest @@ -1 +1,2 @@ DIST Cataclysm-DDA-0.F-3.tar.gz 90173246 BLAKE2B 2e715ff131ce654b0ad6f18cb465b80ab55a09e5d48434a7d209454c9a2a952970f572bb81539bf071efe1292310f5b922c75a6c86ba360cca13dbeb91e13996 SHA512 1bbbe101d37fc90d9b6b5bbe6503523801a91ece399d2e776f500af84d10b786decf5ece61ae9fb04d5cea9d760d026f11a91ba29122b9844c0c772c1e684ed8 +DIST Cataclysm-DDA-0.G.tar.gz 157200161 BLAKE2B 58b3e313d1aaae2d6a3b185904c35dda8fab2d37f99624be4661975772e9f08e94a97d8221f87fb0f27c7a4e1d1ab712811ec5067e63c92139ef36940d12efe6 SHA512 05821ed717614486bb49e3c325f5f9d8b0cf664c6c98f1db8c264fc035395cf8e4e24029269e14a43c711fcd666819e71c587b9467bded8128e6c985cc5af288 diff --git a/games-roguelike/cataclysm-dda/cataclysm-dda-0.7.ebuild b/games-roguelike/cataclysm-dda/cataclysm-dda-0.7.ebuild @@ -0,0 +1,62 @@ +# Copyright 2022-2024 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.7/0.G}" +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 +}