mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
Add := to virtual/zlib deps, part 1 Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Add := to virtual/zlib deps Done via: ``` git grep -l 'virtual/zlib ' | xargs sed -i -e 's@virtual/zlib @virtual/zlib:= @g' ``` Unify virtual/zlib:0= to virtual/zlib:= Done via: ``` git grep -l 'virtual/zlib:0=' | xargs sed -i -e 's@virtual/zlib:0=@virtual/zlib:=@g' ``` Add := to virtual/zlib deps, part 3 Done via: ``` git grep -l 'virtual/zlib:0' | xargs sed -i -e 's@virtual/zlib:0@virtual/zlib:=@g' git grep -l 'virtual/zlib:=/' | xargs sed -i -e 's@virtual/zlib:=/@virtual/zlib:0/@g' ``` Add := to virtual/zlib deps, part 4 Done via: ``` git grep -l 'virtual/zlib\[' | xargs sed -i -e 's@virtual/zlib\[@virtual/zlib:=\[@g' ``` Use := on virtual/zlib deps, part 5 Done via: ``` git grep -l 'virtual/zlib-' | xargs sed -i -r -e 's@virtual/zlib-[0-9.]*(-r[0-9]*)?@&:=@g' git grep -l 'virtual/zlib-' | xargs sed -i -e 's@:=:=@:=@g' pkgcheck scan --commits \ -c SourcingCheck,VisibilityCheck,DependencyCheck --exit error ``` Use := on virtual/zlib deps, part 6 Done via: ``` git grep -l 'virtual/zlib"' | xargs sed -i -e 's@virtual/zlib"@virtual/zlib:="@' ``` Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
90 lines
2.1 KiB
Bash
90 lines
2.1 KiB
Bash
# Copyright 2019-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
|
|
inherit meson python-any-r1 xdg
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/taisei-project/taisei.git"
|
|
else
|
|
# 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
|
|
|
|
DESCRIPTION="Clone of the Touhou series, written in C using SDL/OpenGL/OpenAL."
|
|
HOMEPAGE="https://taisei-project.org/"
|
|
LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain"
|
|
SLOT="0"
|
|
|
|
IUSE="doc lto zip"
|
|
|
|
# see: https://github.com/taisei-project/taisei/issues/399
|
|
RDEPEND="
|
|
media-libs/freetype:2
|
|
media-libs/opusfile
|
|
>=media-libs/libpng-1.5
|
|
media-libs/libsdl2[opengl]
|
|
media-libs/libwebp
|
|
media-libs/opusfile
|
|
app-arch/zstd
|
|
virtual/zlib:=
|
|
dev-libs/openssl:=
|
|
zip? ( dev-libs/libzip[zstd] )
|
|
"
|
|
|
|
# see: https://github.com/taisei-project/taisei/issues/381
|
|
DEPEND="
|
|
${RDEPEND}
|
|
>=dev-libs/cglm-0.7.8
|
|
!!~dev-libs/cglm-0.9.3
|
|
"
|
|
BDEPEND="
|
|
dev-build/meson
|
|
$(python_gen_any_dep '
|
|
dev-python/zstandard[${PYTHON_USEDEP}]
|
|
')
|
|
${PYTHON_DEPS}
|
|
doc? ( dev-python/docutils )"
|
|
|
|
# BSD qsort_r(3) and Microsoft qsort_s(3) implicit declarations
|
|
# https://bugs.gentoo.org/941235
|
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
|
qsort_r
|
|
qsort_s
|
|
)
|
|
|
|
python_check_deps() {
|
|
python_has_version "dev-python/zstandard[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
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_feature doc docs)
|
|
$(meson_use lto b_lto)
|
|
$(meson_feature zip vfs_zip)
|
|
-Dstrip=false
|
|
-Duse_libcrypto=enabled
|
|
)
|
|
meson_src_configure
|
|
}
|