diff options
| author | Chris Mayo <aklhfex@gmail.com> | 2025-07-14 19:20:31 +0100 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2025-07-14 23:13:11 +0200 |
| commit | bf0e535bd4d93076641e3376d22d56ba6bf679d5 (patch) | |
| tree | a957ce734140dc8e39cd587c4ef12081926251c0 /dev-util/blueprint-compiler/blueprint-compiler-0.18.0.ebuild | |
| parent | 07a78d1076046c03eed1553954237b684f74e68b (diff) | |
| download | gentoo-bf0e535bd4d93076641e3376d22d56ba6bf679d5.tar.gz gentoo-bf0e535bd4d93076641e3376d22d56ba6bf679d5.tar.bz2 gentoo-bf0e535bd4d93076641e3376d22d56ba6bf679d5.zip | |
dev-util/blueprint-compiler: add 0.18.0
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42995
Closes: https://github.com/gentoo/gentoo/pull/42995
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-util/blueprint-compiler/blueprint-compiler-0.18.0.ebuild')
| -rw-r--r-- | dev-util/blueprint-compiler/blueprint-compiler-0.18.0.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/dev-util/blueprint-compiler/blueprint-compiler-0.18.0.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-0.18.0.ebuild new file mode 100644 index 000000000000..66ba7655295c --- /dev/null +++ b/dev-util/blueprint-compiler/blueprint-compiler-0.18.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) + +inherit edo meson python-single-r1 virtualx + +DESCRIPTION="Compiler for Blueprint, a markup language for GTK user interfaces" +HOMEPAGE="https://gnome.pages.gitlab.gnome.org/blueprint-compiler/ + https://gitlab.gnome.org/GNOME/blueprint-compiler/" + +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/${PN}.git" +else + inherit gnome.org + + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="LGPL-3+" +SLOT="0" +IUSE="doc test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_USEDEP}] + ') +" +BDEPEND=" + ${RDEPEND} + doc? ( + $(python_gen_cond_dep ' + dev-python/furo[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ') + ) + test? ( + gui-libs/gtk:4[introspection] + gui-libs/libadwaita:1[introspection] + ) +" + +DOCS=( CONTRIBUTING.md MAINTENANCE.md NEWS.md README.md ) + +src_prepare() { + default + + rm ./tests/test_deprecations.py || die + rm ./tests/test_samples.py || die # Fails on CI, bug #947156 +} + +src_configure() { + local -a emesonargs=( + $(meson_use doc docs) + ) + meson_src_configure +} + +src_compile() { + meson_src_compile + + if use doc ; then + build_sphinx docs + fi +} + +src_test() { + virtx edo "${EPYTHON}" -m unittest +} + +src_install() { + meson_src_install + python_fix_shebang "${ED}/usr/bin" + python_optimize +} |
