summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-10 13:20:42 +0000
committerSam James <sam@gentoo.org>2021-04-10 13:30:39 +0000
commit9587b31cb5bd60a51efb7a3a4e179b621e79a0af (patch)
tree44a98aadf1b4e4be57200d4211388bd6dabec624 /games-fps/transfusion-bin
parentgames-emulation/zinc: port to EAPI 7, missing deps, silence QA warning (diff)
downloadgentoo-9587b31cb5bd60a51efb7a3a4e179b621e79a0af.tar.gz
gentoo-9587b31cb5bd60a51efb7a3a4e179b621e79a0af.tar.bz2
gentoo-9587b31cb5bd60a51efb7a3a4e179b621e79a0af.zip
games-fps/transfusion-bin: port to EAPI 7, missing deps, silence QA warnings
Closes: https://bugs.gentoo.org/724810 Closes: https://bugs.gentoo.org/724832 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-fps/transfusion-bin')
-rw-r--r--games-fps/transfusion-bin/transfusion-bin-1.01-r1.ebuild28
1 files changed, 18 insertions, 10 deletions
diff --git a/games-fps/transfusion-bin/transfusion-bin-1.01-r1.ebuild b/games-fps/transfusion-bin/transfusion-bin-1.01-r1.ebuild
index beeb5e9eb35f..72ae024af233 100644
--- a/games-fps/transfusion-bin/transfusion-bin-1.01-r1.ebuild
+++ b/games-fps/transfusion-bin/transfusion-bin-1.01-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit eutils
+EAPI=7
+
+inherit desktop wrapper
MY_PN="${PN/-bin/}"
DESCRIPTION="Blood remake"
@@ -10,18 +11,25 @@ HOMEPAGE="https://www.transfusion-game.com/"
SRC_URI="mirror://sourceforge/blood/${MY_PN}-1.0-linux.i386.zip
mirror://sourceforge/blood/${MY_PN}-patch-${PV}-linux.i386.zip
mirror://gentoo/${MY_PN}.png"
+S="${WORKDIR}/${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
-IUSE=""
RESTRICT="strip"
-RDEPEND="sys-libs/glibc"
-DEPEND="${RDEPEND}
- app-arch/unzip"
+RDEPEND="
+ sys-libs/glibc
+ x11-libs/libX11
+ x11-libs/libXext
+"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/unzip"
-S="${WORKDIR}/${MY_PN}"
+QA_PREBUILT="
+ opt/transfusion/transfusion-dedicated
+ opt/transfusion/transfusion-glx
+"
dir="/opt/${MY_PN}"
Ddir="${D}/${dir}"
@@ -32,14 +40,14 @@ src_install() {
HTML_DOCS="${MY_PN}/doc/*.html" einstalldocs
#...then mass copy everything to the install dir...
- dodir "${dir}"
+ dodir ${dir}
cp -R * "${Ddir}" || die
# ...and remove the docs since we don't need them installed twice.
rm -rf \
"${Ddir}"/${MY_PN}/doc \
"${Ddir}"/qw/*txt \
- "${Ddir}"/${MY_PN}/*txt
+ "${Ddir}"/${MY_PN}/*txt || die
doicon "${DISTDIR}"/${MY_PN}.png
make_wrapper ${MY_PN} ./${MY_PN}-glx "${dir}" "${dir}"