summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-05 17:45:19 +0000
committerSam James <sam@gentoo.org>2021-04-05 17:45:50 +0000
commitedd77013ce25f30a45bbc733ccee6ffd0c56ed56 (patch)
tree522569e8e50db8543f3b594dd813f04b5a723c04 /games-roguelike/zangband/zangband-2.7.4c.ebuild
parentgames-roguelike/zangband: remove games.eclass, update to EAPI 7 (diff)
downloadgentoo-edd77013ce25f30a45bbc733ccee6ffd0c56ed56.tar.gz
gentoo-edd77013ce25f30a45bbc733ccee6ffd0c56ed56.tar.bz2
gentoo-edd77013ce25f30a45bbc733ccee6ffd0c56ed56.zip
games-roguelike/zangband: fix DESTDIR
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-roguelike/zangband/zangband-2.7.4c.ebuild')
-rw-r--r--games-roguelike/zangband/zangband-2.7.4c.ebuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/games-roguelike/zangband/zangband-2.7.4c.ebuild b/games-roguelike/zangband/zangband-2.7.4c.ebuild
index 39b08af052a5..211bb818327b 100644
--- a/games-roguelike/zangband/zangband-2.7.4c.ebuild
+++ b/games-roguelike/zangband/zangband-2.7.4c.ebuild
@@ -3,11 +3,12 @@
EAPI=7
-inherit autotools multilib
+inherit autotools
DESCRIPTION="An enhanced version of the Roguelike game Angband"
HOMEPAGE="http://www.zangband.org/"
SRC_URI="ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/${P}.tar.gz"
+S="${WORKDIR}"/${PN}
LICENSE="Moria"
SLOT="0"
@@ -20,16 +21,20 @@ RDEPEND="
dev-lang/tk:0=
)
x11-libs/libXaw"
-DEPEND="${RDEPEND}
- x11-base/xorg-proto"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto
+"
-S=${WORKDIR}/${PN}
+DOCS=( readme z_faq.txt z_update.txt )
-PATCHES=( "${FILESDIR}"/${P}-tk85.patch
+PATCHES=(
+ "${FILESDIR}"/${P}-tk85.patch
"${FILESDIR}"/${P}-rng.patch
"${FILESDIR}"/${P}-tinfo.patch
"${FILESDIR}"/${P}-configure.patch
- "${FILESDIR}"/${P}-makefile.patch )
+ "${FILESDIR}"/${P}-makefile.patch
+)
src_prepare() {
default
@@ -49,14 +54,10 @@ src_configure() {
econf "${myconf[@]}"
}
-DOCS=( readme
- z_faq.txt
- z_update.txt )
-
src_install() {
# Install the basic files but remove unneeded crap
- emake DESTDIR="${D}/" installbase
- rm "${D}"/{angdos.cfg,readme,z_faq.txt,z_update.txt}
+ emake DESTDIR="${D}/usr/" installbase
+ rm "${ED}"/usr/{angdos.cfg,readme,z_faq.txt,z_update.txt} || die
# Install everything else and fix the permissions
dobin zangband