From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C718515808B for ; Sat, 19 Feb 2022 23:58:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D73AFE07D4; Sat, 19 Feb 2022 23:58:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC94DE07D4 for ; Sat, 19 Feb 2022 23:58:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3769343758 for ; Sat, 19 Feb 2022 23:58:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3877D1F1 for ; Sat, 19 Feb 2022 23:58:56 +0000 (UTC) From: "Yuan Liao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yuan Liao" Message-ID: <1645313985.4c92aee93dc8e74d760e0a0d2c649e80d3cceae7.liaoyuan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/blueprint-compiler/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/blueprint-compiler/Manifest dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220219.ebuild dev-util/blueprint-compiler/blueprint-compiler-9999.ebuild dev-util/blueprint-compiler/metadata.xml X-VCS-Directories: dev-util/blueprint-compiler/ X-VCS-Committer: liaoyuan X-VCS-Committer-Name: Yuan Liao X-VCS-Revision: 4c92aee93dc8e74d760e0a0d2c649e80d3cceae7 X-VCS-Branch: dev Date: Sat, 19 Feb 2022 23:58:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9d6abc5d-27bd-45cd-a4e7-fa6f3b05c2f9 X-Archives-Hash: f4fadc38bbe0ef865ae00461548e0269 commit: 4c92aee93dc8e74d760e0a0d2c649e80d3cceae7 Author: Yuan Liao gmail com> AuthorDate: Sat Feb 19 23:39:45 2022 +0000 Commit: Yuan Liao gmail com> CommitDate: Sat Feb 19 23:39:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c92aee9 dev-util/blueprint-compiler: Initial import Signed-off-by: Yuan Liao gmail.com> dev-util/blueprint-compiler/Manifest | 1 + .../blueprint-compiler-0.1.0_pre20220219.ebuild | 91 ++++++++++++++++++++++ .../blueprint-compiler-9999.ebuild | 91 ++++++++++++++++++++++ dev-util/blueprint-compiler/metadata.xml | 11 +++ 4 files changed, 194 insertions(+) diff --git a/dev-util/blueprint-compiler/Manifest b/dev-util/blueprint-compiler/Manifest new file mode 100644 index 000000000..c0379ca60 --- /dev/null +++ b/dev-util/blueprint-compiler/Manifest @@ -0,0 +1 @@ +DIST blueprint-compiler-0.1.0_pre20220219.tar.gz 51398 BLAKE2B 282fa95486d0fd18d8fc41682f29a4ecd9b94b4f4b617697809630d66d7fdcaebd8f1830bc0675f1f5917787c80d0d15f10a72230378390fd32642fc9473ccc2 SHA512 ca4b0f654bb212750f5381fa6d95dc66e0fbc494962bb60d370ec919bae239f657bcc3873522b3c903eb2441e684d83d794835df249b8107e40ac5429a53f067 diff --git a/dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220219.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220219.ebuild new file mode 100644 index 000000000..6dfccd58c --- /dev/null +++ b/dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220219.ebuild @@ -0,0 +1,91 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit meson python-r1 + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.gnome.org/jwestman/blueprint-compiler.git" +else + # Upstream has not started to tag releases yet, so each keyworded (normal) + # ebuild is to be based on a Git commit snapshot at this moment. + # Live ebuild: Might be intentionally left blank + # Normal ebuild: Fill in commit SHA-1 object name to this variable's value + GIT_COMMIT="8ce748e62b6f7d10cf16a075a37c8f4b1f0267e4" + KEYWORDS="~amd64" + + SRC_URI="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/${GIT_COMMIT}/blueprint-compiler-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${GIT_COMMIT}" +fi + +DESCRIPTION="Compiler for Blueprint, a markup language for GTK user interfaces" +HOMEPAGE="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/" + +LICENSE="LGPL-3+" +SLOT="0" + +IUSE="doc" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + ${PYTHON_DEPS} + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/furo[${PYTHON_USEDEP}] + ) +" + +RDEPEND=" + ${PYTHON_DEPS} +" + +src_configure() { + local emesonargs=( + $(meson_use doc docs) + ) + python_foreach_impl meson_src_configure +} + +src_compile() { + python_foreach_impl meson_src_compile +} + +src_test() { + python_foreach_impl meson_src_test +} + +src_install() { + my_src_install() { + local exe="${ED}/usr/bin/${PN}" + + # Meson installs a Python script at ${ED}/usr/bin/${PN}; on + # Gentoo, the script should go into ${ED}/usr/lib/python-exec, + # and ${ED}/usr/bin/${PN} should be a symbolic link to + # ${ED}/usr/lib/python-exec/python-exec2. + # + # When multiple PYTHON_TARGETS are enabled, then after the + # package has been installed for one Python implementation, + # Meson will follow the ${ED}/usr/bin/${PN} symbolic link and + # install the script at ${ED}/usr/lib/python-exec/python-exec2 + # for the remaining implementations, leading to file collision. + if [[ -L "${exe}" ]]; then + rm -v "${exe}" || die "Failed to remove symbolic link ${exe}" + fi + + meson_src_install + python_doscript "${exe}" + python_optimize + + # Install Sphinx-generated documentation only once + # since the documentation is supposed to be identical + # between different Python implementations + use doc && HTML_DOCS=( "${BUILD_DIR}/docs"/* ) + } + + python_foreach_impl my_src_install + einstalldocs +} diff --git a/dev-util/blueprint-compiler/blueprint-compiler-9999.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-9999.ebuild new file mode 100644 index 000000000..7ffa8d633 --- /dev/null +++ b/dev-util/blueprint-compiler/blueprint-compiler-9999.ebuild @@ -0,0 +1,91 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit meson python-r1 + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.gnome.org/jwestman/blueprint-compiler.git" +else + # Upstream has not started to tag releases yet, so each keyworded (normal) + # ebuild is to be based on a Git commit snapshot at this moment. + # Live ebuild: Might be intentionally left blank + # Normal ebuild: Fill in commit SHA-1 object name to this variable's value + GIT_COMMIT="" + KEYWORDS="~amd64" + + SRC_URI="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/${GIT_COMMIT}/blueprint-compiler-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${GIT_COMMIT}" +fi + +DESCRIPTION="Compiler for Blueprint, a markup language for GTK user interfaces" +HOMEPAGE="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/" + +LICENSE="LGPL-3+" +SLOT="0" + +IUSE="doc" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + ${PYTHON_DEPS} + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/furo[${PYTHON_USEDEP}] + ) +" + +RDEPEND=" + ${PYTHON_DEPS} +" + +src_configure() { + local emesonargs=( + $(meson_use doc docs) + ) + python_foreach_impl meson_src_configure +} + +src_compile() { + python_foreach_impl meson_src_compile +} + +src_test() { + python_foreach_impl meson_src_test +} + +src_install() { + my_src_install() { + local exe="${ED}/usr/bin/${PN}" + + # Meson installs a Python script at ${ED}/usr/bin/${PN}; on + # Gentoo, the script should go into ${ED}/usr/lib/python-exec, + # and ${ED}/usr/bin/${PN} should be a symbolic link to + # ${ED}/usr/lib/python-exec/python-exec2. + # + # When multiple PYTHON_TARGETS are enabled, then after the + # package has been installed for one Python implementation, + # Meson will follow the ${ED}/usr/bin/${PN} symbolic link and + # install the script at ${ED}/usr/lib/python-exec/python-exec2 + # for the remaining implementations, leading to file collision. + if [[ -L "${exe}" ]]; then + rm -v "${exe}" || die "Failed to remove symbolic link ${exe}" + fi + + meson_src_install + python_doscript "${exe}" + python_optimize + + # Install Sphinx-generated documentation only once + # since the documentation is supposed to be identical + # between different Python implementations + use doc && HTML_DOCS=( "${BUILD_DIR}/docs"/* ) + } + + python_foreach_impl my_src_install + einstalldocs +} diff --git a/dev-util/blueprint-compiler/metadata.xml b/dev-util/blueprint-compiler/metadata.xml new file mode 100644 index 000000000..bb8f2c8f4 --- /dev/null +++ b/dev-util/blueprint-compiler/metadata.xml @@ -0,0 +1,11 @@ + + + + + liaoyuan@gmail.com + Yuan Liao + + + https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/ + +