src_prepare-overlay/app-text/blueprint-compiler/blueprint-compiler-0.6.0.ebuild
Alfred Wingate 31934290d8 app-text/blueprint-compiler: new package, add 0.6.0
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2022-12-23 01:44:36 +02:00

47 lines
912 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
inherit meson python-single-r1
DESCRIPTION="A markup language for GTK user interface files."
HOMEPAGE="https://gitlab.gnome.org/jwestman/blueprint-compiler"
SRC_URI="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v${PV}/blueprint-compiler-v${PV}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pygobject[${PYTHON_USEDEP}]
')
"
BDEPEND="
doc? ( dev-python/sphinx )
test? (
${RDEPEND}
gui-libs/gtk:4
)
"
src_configure() {
local emesonargs=(
$(meson_use doc docs)
)
meson_src_configure
}
src_install() {
meson_src_install
python_optimize
}