From 6d0633eecbefc90f5eda2014cd057d3c0a622986 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sun, 7 May 2023 21:30:26 +0200 Subject: dev-util/blueprint-compiler: fix wrong python shebang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/905896 Signed-off-by: Maciej Barć --- .../blueprint-compiler-0.6.0-r1.ebuild | 66 --------------------- .../blueprint-compiler-0.6.0-r2.ebuild | 67 ++++++++++++++++++++++ 2 files changed, 67 insertions(+), 66 deletions(-) delete mode 100644 dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r1.ebuild create mode 100644 dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r2.ebuild (limited to 'dev-util/blueprint-compiler') diff --git a/dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r1.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r1.ebuild deleted file mode 100644 index 852b7a270164..000000000000 --- a/dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# 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} - $(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 -} diff --git a/dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r2.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r2.ebuild new file mode 100644 index 000000000000..ac641531a22f --- /dev/null +++ b/dev-util/blueprint-compiler/blueprint-compiler-0.6.0-r2.ebuild @@ -0,0 +1,67 @@ +# 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} + $(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_fix_shebang "${ED}"/usr/bin + python_optimize +} -- cgit v1.2.3-65-gdbad