summaryrefslogtreecommitdiff
path: root/dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-03-13 21:42:40 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-03-13 22:37:56 +0100
commit25aec06972a882f6ac8d55972ffff654ae0ba194 (patch)
treed99d20b976accab37de3dc5c7ffef7d3d00cb5c9 /dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild
parent08156641467f5b945f6ae730aaddd5ab1d480ad0 (diff)
downloadgentoo-25aec06972a882f6ac8d55972ffff654ae0ba194.tar.gz
gentoo-25aec06972a882f6ac8d55972ffff654ae0ba194.tar.bz2
gentoo-25aec06972a882f6ac8d55972ffff654ae0ba194.zip
dev-util/blueprint-compiler: new package; add 0.6.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild')
-rw-r--r--dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild
new file mode 100644
index 000000000000..b54ac7882f03
--- /dev/null
+++ b/dev-util/blueprint-compiler/blueprint-compiler-0.6.0.ebuild
@@ -0,0 +1,64 @@
+# 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"
+fi
+
+LICENSE="LGPL-3+"
+SLOT="0"
+IUSE="doc test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="
+ ${RDEPEND}
+ doc? (
+ $(python_gen_cond_dep '
+ dev-python/furo[${PYTHON_USEDEP}]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ ')
+ )
+ test? (
+ gui-libs/gtk:4[introspection]
+ $(python_gen_cond_dep '
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+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
+}