gentoo-ebuilds/games-roguelike/powder/powder-118.ebuild
James Le Cuirot 4996cf230f
games-roguelike/powder: Bump to 118, drop old 117-r1, EAPI 8
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2024-06-19 23:19:53 +01:00

39 lines
913 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic
MY_P=${P/-/}_src
DESCRIPTION="A game in the genre of Rogue, Nethack, and Diablo with emphasis on tactical play"
HOMEPAGE="http://www.zincland.com/powder/"
SRC_URI="http://www.zincland.com/powder/release/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="CC-Sampling-Plus-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="media-libs/libsdl[video]"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-117-gcc6.patch
)
src_compile() {
append-cxxflags -DCHANGE_WORK_DIRECTORY
emake -C port/linux premake
emake -C port/linux powder
}
src_install() {
dobin port/linux/${PN}
dodoc README.TXT CREDITS.TXT
}
pkg_postinst() {
elog "While the highscore is kept, save games are never preserved between"
elog "versions. Please wait until your current character dies before upgrading."
}