Merge branch 'master' of gitlab.com:src_prepare/src_prepare-overlay

This commit is contained in:
XGQT 2020-04-23 14:21:53 +02:00
commit f8ed8fa561
No known key found for this signature in database
GPG Key ID: 2089DEC77862433A
3 changed files with 22 additions and 25 deletions

View File

@ -10,13 +10,15 @@ LICENSE="neoSoftware"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
BDEPEND=" BDEPEND+="
media-gfx/icoutils media-gfx/icoutils
media-gfx/imagemagick" media-gfx/imagemagick
"
RDEPEND=" RDEPEND+="
app-emulation/wine-vanilla[abi_x86_32] app-emulation/wine-vanilla[abi_x86_32]
app-arch/unshield" app-arch/unshield
"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"

View File

@ -3,20 +3,23 @@
EAPI=7 EAPI=7
DESCRIPTION="" inherit run-wine
HOMEPAGE=""
DESCRIPTION="Third installment of Warcraft from Blizzard."
HOMEPAGE="https://www.blizzard.com/games/war3/"
LICENSE="Warcraft3_EULA" LICENSE="Warcraft3_EULA"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
DESCRIPTION="Third installment of Warcraft from Blizzard."
HOMEPAGE="https://www.blizzard.com/games/war3/"
SRC_URI="https://archive.org/download/wc3_patches/Windows/ROC/English/War3ROC_126a_English.exe https://archive.org/download/wc3_patches/Windows/TFT/English/War3TFT_126a_English.exe" SRC_URI="
!tft? ( https://archive.org/download/wc3_patches/Windows/ROC/English/War3ROC_126a_English.exe )
tft? ( https://archive.org/download/wc3_patches/Windows/TFT/English/War3TFT_126a_English.exe )
"
IUSE="tft video_cards_nouveau" IUSE="tft video_cards_nouveau"
BDEPEND=" BDEPEND+="
sys-apps/sed sys-apps/sed
sys-apps/coreutils sys-apps/coreutils
sys-apps/grep sys-apps/grep
@ -28,12 +31,13 @@ BDEPEND="
x11-misc/xdotool x11-misc/xdotool
x11-wm/openbox" x11-wm/openbox"
RDEPEND=" RDEPEND+="
app-emulation/wine-vanilla[abi_x86_32,gstreamer] app-emulation/wine-vanilla[abi_x86_32,gstreamer]
media-plugins/gst-plugins-meta[ffmpeg] media-plugins/gst-plugins-meta[ffmpeg]
media-video/ffmpeg[mp3,xvid] media-video/ffmpeg[mp3,xvid]
app-emulation/winetricks app-emulation/winetricks
app-shells/bash" app-shells/bash:0
"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
@ -53,26 +57,17 @@ src_unpack() {
if use video_cards_nouveau ; then if use video_cards_nouveau ; then
einfo "This USE flag has no effect just yet. This is a placeholder for https://gitlab.com/src_prepare/src_prepare-overlay/-/issues/2" einfo "This USE flag has no effect just yet. This is a placeholder for https://gitlab.com/src_prepare/src_prepare-overlay/-/issues/2"
fi fi
export WINEPREFIX="$(pwd)/wineprefix"
export WINEARCH="win32"
export WINEDEBUG="-all"
export HID_DEVICES=($(ls /dev | grep ^hid | sed 's_^_/dev/_'))
export PATCH=1 export PATCH=1
export TFT=0 export TFT=0
if use tft ; then if use tft ; then
TFT=1 TFT=1
fi fi
einfo "Adding temporary pseudo rw to /dev/input"
addpredict /dev/input
for hid_device in ${HID_DEVICES[@]}; do
einfo "Adding temporary pseudo rw to ${hid_device}"
addpredict ${hid_device}
done
if use tft ; then if use tft ; then
eerror "The Frozen Throne is not supported yet." eerror "The Frozen Throne is not supported yet."
die die
fi fi
${FILESDIR}/install_wc3_linux.sh runwine_prepare_for_wine_run
"${FILESDIR}"/install_wc3_linux.sh
einfo "Installation finished." einfo "Installation finished."
# Everything ready, time to prepare for src_install # Everything ready, time to prepare for src_install
mv ${WINEPREFIX}/drive_c/Program\ Files/Warcraft\ III warcraft3 mv ${WINEPREFIX}/drive_c/Program\ Files/Warcraft\ III warcraft3

View File

@ -20,7 +20,7 @@ RDEPEND=">=app-crypt/rhash-1.3.3-r2:0=
dev-libs/tinyxml2:0= dev-libs/tinyxml2:0=
>=net-misc/curl-7.32:0=[ssl] >=net-misc/curl-7.32:0=[ssl]
gui? ( dev-qt/qtwebengine:5=[widgets] ) gui? ( dev-qt/qtwebengine:5=[widgets] )
portage? ( app-shells/bash portage? ( app-shells/bash:0
sys-apps/coreutils sys-apps/coreutils
app-arch/xz-utils app-arch/xz-utils
app-arch/tar app-arch/tar