summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-28 22:34:31 +0000
committerSam James <sam@gentoo.org>2021-02-28 23:04:32 +0000
commit7d9069c315688f51766ccd232f8a79a216d44cc5 (patch)
treebfa8877e51bd7eb6d9a79607a42c267c2485ebe9 /games-strategy
parentgames-strategy/0ad: use multiprocessing.eclass (diff)
downloadgentoo-7d9069c315688f51766ccd232f8a79a216d44cc5.tar.gz
gentoo-7d9069c315688f51766ccd232f8a79a216d44cc5.tar.bz2
gentoo-7d9069c315688f51766ccd232f8a79a216d44cc5.zip
games-strategy/0ad: update formatting for asset generation
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/0ad/0ad-0.0.24b_alpha.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild b/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
index cde93c077b30..d3e3cac51277 100644
--- a/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
+++ b/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
@@ -164,6 +164,8 @@ src_compile() {
# Merged from 0ad-data
# bug #771147 (comment 3)
+ # We're building the assets from source if we're not using a release
+ # Warning: fragile
if [[ ${PV} == 9999 || ${PV} == *_pre* ]]; then
# source/lib/sysdep/os/linux/ldbg.cpp:debug_SetThreadName() tries to open /proc/self/task/${TID}/comm for writing.
addpredict /proc/self/task
@@ -174,13 +176,16 @@ src_compile() {
mod_name="${archivebuild_input##*/}"
archivebuild_output="archives/${mod_name}"
- mkdir -p "${archivebuild_output}"
+ mkdir -p "${archivebuild_output}" || die
einfo pyrogenesis -archivebuild="${archivebuild_input}" -archivebuild-output="${archivebuild_output}/${mod_name}.zip"
- LD_LIBRARY_PATH="binaries/system" binaries/system/pyrogenesis -archivebuild="${archivebuild_input}" -archivebuild-output="${archivebuild_output}/${mod_name}.zip" || die
+ LD_LIBRARY_PATH="binaries/system" binaries/system/pyrogenesis \
+ -archivebuild="${archivebuild_input}" \
+ -archivebuild-output="${archivebuild_output}/${mod_name}.zip" \
+ || die "Failed to build assets"
if [[ -f "${archivebuild_input}/mod.json" ]]; then
- cp "${archivebuild_input}/mod.json" "${archivebuild_output}"
+ cp "${archivebuild_input}/mod.json" "${archivebuild_output}" || die
fi
rm -r "${archivebuild_input}" || die