Paid dues for Fallout 1
This commit is contained in:
parent
39a946434a
commit
bc00b0a0a7
@ -16,6 +16,9 @@
|
|||||||
# It is up to the ebuild to enable and offer other alternate avenues to support
|
# It is up to the ebuild to enable and offer other alternate avenues to support
|
||||||
# a particular game.
|
# a particular game.
|
||||||
|
|
||||||
|
# In order to disable network-sandbox:
|
||||||
|
PROPERTIES+="live"
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: GOG_GAME_NAME
|
# @ECLASS-VARIABLE: GOG_GAME_NAME
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Name of the game as it appears in lgogdownloader list.
|
# Name of the game as it appears in lgogdownloader list.
|
||||||
@ -39,15 +42,13 @@
|
|||||||
# through separate installers.
|
# through separate installers.
|
||||||
: ${GOG_GAME_INSTALLER:=()}
|
: ${GOG_GAME_INSTALLER:=()}
|
||||||
|
|
||||||
LICENSE="GOG_EULA"
|
LICENSE+="GOG_EULA"
|
||||||
BDEPEND+="
|
BDEPEND+="
|
||||||
games-util/lgogdownloader[portage]
|
games-util/lgogdownloader[portage]
|
||||||
app-arch/innoextract"
|
app-arch/innoextract
|
||||||
|
"
|
||||||
|
|
||||||
gog_sanity_check() {
|
gog_sanity_check() {
|
||||||
if [ $(echo ${FEATURES} | tr ' ' '\n' | grep -c network\-sandbox) -ne 0 ]; then
|
|
||||||
die "This ebuild requires network-sandbox to be removed from FEATURES."
|
|
||||||
fi
|
|
||||||
portageq envvar GOG_CONFIG >/dev/null 2>/dev/null
|
portageq envvar GOG_CONFIG >/dev/null 2>/dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
die "Please define GOG_CONFIG in /etc/portage/make.conf as the output of export_gog_to_portage."
|
die "Please define GOG_CONFIG in /etc/portage/make.conf as the output of export_gog_to_portage."
|
||||||
|
@ -25,13 +25,13 @@ GOG_GAME_L10N="en"
|
|||||||
GOG_GAME_PLATFORM="w"
|
GOG_GAME_PLATFORM="w"
|
||||||
GOG_GAME_INSTALLER="setup_fallout_2.1.0.18.exe"
|
GOG_GAME_INSTALLER="setup_fallout_2.1.0.18.exe"
|
||||||
|
|
||||||
BDEPEND="${BDEPEND}
|
BDEPEND+="
|
||||||
media-gfx/icoutils
|
media-gfx/icoutils
|
||||||
media-gfx/imagemagick
|
media-gfx/imagemagick
|
||||||
dos? ( app-arch/unzip )
|
dos? ( app-arch/unzip )
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND+="
|
||||||
dos? ( games-emulation/dosbox
|
dos? ( games-emulation/dosbox
|
||||||
app-emulation/dos32a )
|
app-emulation/dos32a )
|
||||||
wine? ( app-emulation/wine-vanilla[abi_x86_32] )
|
wine? ( app-emulation/wine-vanilla[abi_x86_32] )
|
||||||
@ -45,21 +45,21 @@ src_unpack() {
|
|||||||
gog_initialize
|
gog_initialize
|
||||||
FALLOUT_EXE="fallout1_wine"
|
FALLOUT_EXE="fallout1_wine"
|
||||||
gog_download_installer
|
gog_download_installer
|
||||||
innoextract -I app -e ${GOG_GAME_NAME}/${GOG_GAME_INSTALLER}
|
innoextract -I app -e "${GOG_GAME_NAME}/${GOG_GAME_INSTALLER}"
|
||||||
wrestool -x -t14 -o . app/falloutw.exe
|
wrestool -x -t14 -o . app/falloutw.exe
|
||||||
convert falloutw.exe_14_99_0.ico fallout1.png
|
convert falloutw.exe_14_99_0.ico fallout1.png
|
||||||
mv fallout1-4.png fallout1.png
|
mv fallout1-4.png fallout1.png
|
||||||
if use dos; then
|
if use dos; then
|
||||||
cp ${DISTDIR}/HMID*.386 app
|
cp "${DISTDIR}"/HMID*.386 app
|
||||||
unzip ${DISTDIR}/fallup1d.zip FALL11.ZIP
|
unzip "${DISTDIR}/fallup1d.zip" FALL11.ZIP
|
||||||
unzip FALL11.ZIP FALLOUT.EXE
|
unzip FALL11.ZIP FALLOUT.EXE
|
||||||
mv FALLOUT.EXE app
|
mv FALLOUT.EXE app
|
||||||
ln -s /usr/share/dos32a/dos32a.exe app/dos4gw.exe
|
ln -s /usr/share/dos32a/dos32a.exe app/dos4gw.exe
|
||||||
cp ${FILESDIR}/dosbox.conf app
|
cp "${FILESDIR}/dosbox.conf" app
|
||||||
FALLOUT_EXE="fallout1_dos"
|
FALLOUT_EXE="fallout1_dos"
|
||||||
fi
|
fi
|
||||||
mv app fallout1
|
mv app fallout1
|
||||||
cp ${FILESDIR}/${FALLOUT_EXE} fallout1_exe
|
cp "${FILESDIR}/${FALLOUT_EXE}" fallout1_exe
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
@ -37,7 +37,7 @@ src_configure() {
|
|||||||
-DUSE_QT_GUI=$(usex gui)
|
-DUSE_QT_GUI=$(usex gui)
|
||||||
)
|
)
|
||||||
if use portage; then
|
if use portage; then
|
||||||
patch -p1 < ${FILESDIR}/0001-recycle-cookies-and-tokens.patch
|
patch -p1 < "${FILESDIR}/0001-recycle-cookies-and-tokens.patch"
|
||||||
fi
|
fi
|
||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
@ -46,6 +46,6 @@ src_install() {
|
|||||||
cmake_src_install
|
cmake_src_install
|
||||||
gunzip "${ED}"/usr/share/man/man1/${PN}.1.gz || die
|
gunzip "${ED}"/usr/share/man/man1/${PN}.1.gz || die
|
||||||
if use portage; then
|
if use portage; then
|
||||||
dobin ${FILESDIR}/export_gog_to_portage
|
dobin "${FILESDIR}/export_gog_to_portage"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user