2021-07-07 18:20:27 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-04-18 20:01:31 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit gog
|
|
|
|
|
2020-04-19 20:49:44 +02:00
|
|
|
DESCRIPTION="Post-apocalyptic GURPS-like role-playing game."
|
|
|
|
HOMEPAGE="https://www.gog.com/game/fallout"
|
2020-04-18 20:01:31 +02:00
|
|
|
|
|
|
|
LICENSE+=" FALLOUT1_EULA"
|
|
|
|
SLOT="0"
|
2020-04-20 18:46:06 +02:00
|
|
|
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
2020-04-18 20:01:31 +02:00
|
|
|
|
|
|
|
SRC_URI="
|
|
|
|
dos? ( https://archive.org/download/fallout1_dos/fallup1d.zip
|
|
|
|
https://archive.org/download/fallout1_dos/HMIDET.386
|
|
|
|
https://archive.org/download/fallout1_dos/HMIDRV.386 )
|
|
|
|
"
|
|
|
|
|
|
|
|
IUSE="-dos -wine"
|
|
|
|
|
|
|
|
GOG_GAME_NAME="fallout_classic"
|
|
|
|
GOG_GAME_L10N="en"
|
|
|
|
GOG_GAME_PLATFORM="w"
|
|
|
|
GOG_GAME_INSTALLER="setup_fallout_2.1.0.18.exe"
|
|
|
|
|
2020-04-21 04:46:29 +02:00
|
|
|
BDEPEND+="
|
2020-04-18 20:01:31 +02:00
|
|
|
media-gfx/icoutils
|
|
|
|
media-gfx/imagemagick
|
|
|
|
dos? ( app-arch/unzip )
|
|
|
|
"
|
|
|
|
|
2020-04-21 04:46:29 +02:00
|
|
|
RDEPEND+="
|
|
|
|
dos? ( games-emulation/dosbox
|
|
|
|
app-emulation/dos32a )
|
2020-04-28 01:55:50 +02:00
|
|
|
wine? ( app-emulation/wine-vanilla:=[abi_x86_32] )
|
2020-04-18 20:01:31 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
S=${WORKDIR}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
gog_initialize
|
|
|
|
FALLOUT_EXE="fallout1_wine"
|
|
|
|
gog_download_installer
|
2020-04-21 04:46:29 +02:00
|
|
|
innoextract -I app -e "${GOG_GAME_NAME}/${GOG_GAME_INSTALLER}"
|
2020-04-18 20:01:31 +02:00
|
|
|
wrestool -x -t14 -o . app/falloutw.exe
|
|
|
|
convert falloutw.exe_14_99_0.ico fallout1.png
|
|
|
|
mv fallout1-4.png fallout1.png
|
|
|
|
if use dos; then
|
2020-04-21 04:46:29 +02:00
|
|
|
cp "${DISTDIR}"/HMID*.386 app
|
|
|
|
unzip "${DISTDIR}/fallup1d.zip" FALL11.ZIP
|
2020-04-18 20:01:31 +02:00
|
|
|
unzip FALL11.ZIP FALLOUT.EXE
|
|
|
|
mv FALLOUT.EXE app
|
|
|
|
ln -s /usr/share/dos32a/dos32a.exe app/dos4gw.exe
|
2020-04-21 04:46:29 +02:00
|
|
|
cp "${FILESDIR}/dosbox.conf" app
|
2020-04-18 20:01:31 +02:00
|
|
|
FALLOUT_EXE="fallout1_dos"
|
|
|
|
fi
|
|
|
|
mv app fallout1
|
2020-04-21 04:46:29 +02:00
|
|
|
cp "${FILESDIR}/${FALLOUT_EXE}" fallout1_exe
|
2020-04-18 20:01:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto /usr/share/games
|
|
|
|
doins -r fallout1
|
|
|
|
rm -rf fallout1
|
|
|
|
mv fallout1_exe fallout1
|
|
|
|
insinto /usr/share/pixmaps
|
|
|
|
doins fallout1.png
|
|
|
|
insinto /usr/share/applications
|
|
|
|
doins "${FILESDIR}/fallout1.desktop"
|
|
|
|
dobin fallout1
|
|
|
|
}
|