Added blueprint-compiler

This commit is contained in:
Gerben Jan Dijkman 2023-05-02 16:06:06 +02:00
parent 897b31d4f2
commit 8f03e395f8
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST blueprint-compiler-v0.6.0.tar.bz2 56896 BLAKE2B 318ffa52b2fbf3b07058e5b4d2f9bb0ef1f6614586b79968889921964b454e5c26d44e58a18185263797f7569135662d14471bafd8e501d7c6386e88972193d0 SHA512 458016f4eabef15026cb3ee675111984b19af8a9139bc412dfb48dfef56b0d0ff028316001d0ce04a90b50d6785c92d799f17ed42ca53fc7582345729ae02207

View File

@ -0,0 +1,66 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit meson python-single-r1
DESCRIPTION="Compiler for Blueprint, a markup language for GTK user interfaces"
HOMEPAGE="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/
https://gitlab.gnome.org/jwestman/blueprint-compiler/"
if [[ ${PV} == *9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.gnome.org/jwestman/${PN}.git"
else
SRC_URI="https://gitlab.gnome.org/jwestman/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
S="${WORKDIR}"/${PN}-v${PV}
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
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]
)
"
DOCS=( CONTRIBUTING.md MAINTENANCE.md NEWS.md README.md )
src_configure() {
local -a emesonargs=(
$(meson_use doc docs)
)
meson_src_configure
}
src_compile() {
meson_src_compile
use doc && build_sphinx docs
}
src_install() {
meson_src_install
python_optimize
}