games-arcade/taisei: Remove blobs, fix deprecated config

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2023-09-09 03:51:18 +02:00
parent 01f4a2a189
commit 848a935bcf
2 changed files with 26 additions and 8 deletions

View File

@@ -11,7 +11,8 @@ if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/taisei-project/taisei.git"
else
SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/${PN}-${PV}.tar.xz"
# Auto-generated tarballs lacks submodules, all of which are taisei subrepos
SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/taisei-${PV}.tar.xz"
KEYWORDS="~amd64"
fi
@@ -54,16 +55,24 @@ src_prepare() {
# Path patching needed also without USE=doc (COPYING etc.)
sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'${PF}\')/" \
meson.build || die "Failed changing doc_path"
# Remove blobs
rm external/basis_universal/OpenCL/lib/*.lib \
external/basis_universal/webgl_videotest/basis.wasm \
external/basis_universal/webgl/transcoder/build/basis_transcoder.wasm \
external/basis_universal/webgl/encoder/build/basis_encoder.wasm \
|| die
default
}
src_configure() {
local emesonargs=(
$(meson_use doc docs)
$(meson_feature doc docs)
$(meson_use lto b_lto)
$(meson_use zip vfs_zip)
$(meson_feature zip vfs_zip)
-Dstrip=false
-Duse_libcrypto=true
-Duse_libcrypto=enabled
)
meson_src_configure
}

View File

@@ -11,7 +11,8 @@ if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/taisei-project/taisei.git"
else
SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/${PN}-${PV}.tar.xz"
# Auto-generated tarballs lacks submodules, all of which are taisei subrepos
SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/taisei-${PV}.tar.xz"
KEYWORDS="~amd64"
fi
@@ -54,16 +55,24 @@ src_prepare() {
# Path patching needed also without USE=doc (COPYING etc.)
sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'${PF}\')/" \
meson.build || die "Failed changing doc_path"
# Remove blobs
rm external/basis_universal/OpenCL/lib/*.lib \
external/basis_universal/webgl_videotest/basis.wasm \
external/basis_universal/webgl/transcoder/build/basis_transcoder.wasm \
external/basis_universal/webgl/encoder/build/basis_encoder.wasm \
|| die
default
}
src_configure() {
local emesonargs=(
$(meson_use doc docs)
$(meson_feature doc docs)
$(meson_use lto b_lto)
$(meson_use zip vfs_zip)
$(meson_feature zip vfs_zip)
-Dstrip=false
-Duse_libcrypto=true
-Duse_libcrypto=enabled
)
meson_src_configure
}