mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
Closes: https://bugs.gentoo.org/849248 Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
69 lines
1.4 KiB
Bash
69 lines
1.4 KiB
Bash
# Copyright 2019-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8,9,10,11} )
|
|
|
|
inherit meson python-any-r1 xdg
|
|
|
|
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}-v${PV}.tar.xz"
|
|
KEYWORDS="~amd64"
|
|
S="${WORKDIR}/${PN}-v${PV}"
|
|
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"
|
|
|
|
RDEPEND="
|
|
media-libs/freetype:2
|
|
>=media-libs/libpng-1.5
|
|
media-libs/libsdl2
|
|
media-libs/opusfile
|
|
media-libs/libwebp
|
|
app-arch/zstd
|
|
sys-libs/zlib
|
|
zip? ( dev-libs/libzip )
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
>=dev-libs/cglm-0.7.8
|
|
"
|
|
BDEPEND="
|
|
>=dev-util/meson-0.53
|
|
$(python_gen_any_dep '
|
|
dev-python/zstandard[${PYTHON_USEDEP}]
|
|
')
|
|
${PYTHON_DEPS}
|
|
doc? ( dev-python/docutils )"
|
|
|
|
python_check_deps() {
|
|
has_version "dev-python/zstandard[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
src_prepare() {
|
|
if use doc; then
|
|
sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'${PF}\')/" \
|
|
meson.build || die "Failed changing doc_path"
|
|
fi
|
|
default
|
|
}
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_use doc docs)
|
|
$(meson_use lto b_lto)
|
|
$(meson_use zip enable_zip)
|
|
-Dstrip=false
|
|
)
|
|
meson_src_configure
|
|
}
|