aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/taisei/taisei-1.3.1.ebuild')
-rw-r--r--games-arcade/taisei/taisei-1.3.1.ebuild30
1 files changed, 22 insertions, 8 deletions
diff --git a/games-arcade/taisei/taisei-1.3.1.ebuild b/games-arcade/taisei/taisei-1.3.1.ebuild
index ef0458c76..a8371fb62 100644
--- a/games-arcade/taisei/taisei-1.3.1.ebuild
+++ b/games-arcade/taisei/taisei-1.3.1.ebuild
@@ -5,15 +5,22 @@ EAPI=7
inherit meson
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ KEYWORDS=""
+ 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="BSD"
+LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain"
SLOT="0"
-SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/${PN}-v${PV}.tar.xz"
-KEYWORDS="~amd64"
-IUSE="zip"
-S="${WORKDIR}/${PN}-v${PV}"
+IUSE="doc +lto zip"
DEPEND="
media-libs/freetype:2
@@ -24,17 +31,24 @@ DEPEND="
sys-libs/zlib
zip? ( dev-libs/libzip )
"
+BDEPEND=">=dev-util/meson-0.49
+ >=dev-lang/python-3.5
+ doc? ( dev-python/docutils )"
src_prepare() {
- sed -i '/strip=true/d' meson.build || die "Failed removing auto-stripping"
- sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'taisei-${PV}\')/" \
- meson.build || die "Failed changing doc_path"
+ if use doc; then
+ sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'${P}\')/" \
+ 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
}