mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
games-strategy/darwinia: EAPI 8, various tweaks
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
parent
6822a05b58
commit
84e12fe064
@ -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"
|
||||
QA_PREBUILT="opt/${PN}/${PN}"
|
||||
|
||||
S="${WORKDIR}/${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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user