summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-06-09 16:47:01 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-06-09 16:54:07 +0100
commit84e12fe064689f6cf8b5733366ccc00a59b81541 (patch)
tree6827e19ff81896d8fbfc48a3bd8999744d3bceeb /games-strategy
parentgames-strategy/darwinia: Drop old 1.4.0_beta9-r3 (diff)
downloadgentoo-84e12fe064689f6cf8b5733366ccc00a59b81541.tar.gz
gentoo-84e12fe064689f6cf8b5733366ccc00a59b81541.tar.bz2
gentoo-84e12fe064689f6cf8b5733366ccc00a59b81541.zip
games-strategy/darwinia: EAPI 8, various tweaks
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/darwinia/darwinia-1.43.ebuild44
1 files changed, 19 insertions, 25 deletions
diff --git a/games-strategy/darwinia/darwinia-1.43.ebuild b/games-strategy/darwinia/darwinia-1.43.ebuild
index 2e4ac40f9cd6..166b98102578 100644
--- a/games-strategy/darwinia/darwinia-1.43.ebuild
+++ b/games-strategy/darwinia/darwinia-1.43.ebuild
@@ -1,64 +1,58 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit desktop
MY_P="${P/-/_}"
DESCRIPTION="A digital dreamscape simulation game"
-HOMEPAGE="https://www.introversion.co.uk/darwinia/"
+HOMEPAGE="https://www.introversion.co.uk/introversion/"
SRC_URI="
amd64? ( ${MY_P}_amd64.tar.gz )
x86? ( ${MY_P}_i386.tar.gz )
"
-
+S="${WORKDIR}/${PN}"
LICENSE="Introversion"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="bindist fetch mirror strip"
RDEPEND="
+ media-libs/libglvnd[X]
media-libs/libogg
- media-libs/libsdl
+ media-libs/libsdl[opengl,sound,video]
media-libs/libvorbis
virtual/glu
"
-RESTRICT="bindist fetch mirror strip"
-
-S="${WORKDIR}/${PN}"
+QA_PREBUILT="opt/${PN}/${PN}"
-QA_PREBUILT="
- opt/darwinia/darwinia.bin.x86
- opt/darwinia/darwinia.bin.x86_64
-"
+pkg_nofetch() {
+ einfo "This was only available from The Humble Introversion Bundle in 2011."
+ einfo "If you bought that, then download ${A} and move"
+ einfo "it to your distfiles directory."
+}
src_unpack() {
default
if use x86; then
- mv Darwinia darwinia || die
+ mv ${PN^} ${PN} || die
fi
}
-src_compile() {
- :;
-}
-
src_install() {
- exeinto /opt/darwinia
- doexe darwinia.bin.x86$(usex amd64 '_64' '')
+ exeinto /opt/${PN}
+ newexe ${PN}.bin.x86$(usex amd64 '_64' '') ${PN}
+ dosym ../../opt/${PN}/${PN} /usr/bin/${PN}
- insinto /opt/darwinia
+ insinto /opt/${PN}
doins *.dat
- dodir /opt/bin
- dosym ../darwinia/darwinia.bin.x86$(usex amd64 '_64' '') /opt/bin/darwinia
-
doicon darwinian.png
-
- make_desktop_entry "darwinia" "Darwinia" darwinian Game
+ make_desktop_entry ${PN} ${PN^} darwinian
dodoc {changes,readme-linux}.txt
}