From: "Yuan Liao" <liaoyuan@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/blueprint-compiler/
Date: Mon, 21 Mar 2022 06:28:36 +0000 (UTC) [thread overview]
Message-ID: <1647842872.2ea52dd47997f564316817a813cb0749afc05fb0.liaoyuan@gentoo> (raw)
commit: 2ea52dd47997f564316817a813cb0749afc05fb0
Author: Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Mon Mar 21 06:07:52 2022 +0000
Commit: Yuan Liao <liaoyuan <AT> gmail <DOT> com>
CommitDate: Mon Mar 21 06:07:52 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2ea52dd4
dev-util/blueprint-compiler: Add 0.1.0_pre20220319
Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>
dev-util/blueprint-compiler/Manifest | 1 +
.../blueprint-compiler-0.1.0_pre20220319.ebuild | 98 ++++++++++++++++++++++
2 files changed, 99 insertions(+)
diff --git a/dev-util/blueprint-compiler/Manifest b/dev-util/blueprint-compiler/Manifest
index c0379ca60..0333a4e1a 100644
--- a/dev-util/blueprint-compiler/Manifest
+++ b/dev-util/blueprint-compiler/Manifest
@@ -1 +1,2 @@
DIST blueprint-compiler-0.1.0_pre20220219.tar.gz 51398 BLAKE2B 282fa95486d0fd18d8fc41682f29a4ecd9b94b4f4b617697809630d66d7fdcaebd8f1830bc0675f1f5917787c80d0d15f10a72230378390fd32642fc9473ccc2 SHA512 ca4b0f654bb212750f5381fa6d95dc66e0fbc494962bb60d370ec919bae239f657bcc3873522b3c903eb2441e684d83d794835df249b8107e40ac5429a53f067
+DIST blueprint-compiler-0.1.0_pre20220319.tar.gz 52091 BLAKE2B 84184cada20257dd2717bd5ecd4f2493deca67c63a6005417310f1d7dd9e049398d341a037e71ca08d87417af7627d2bdc5dfd56f2e8ca73f0076eec7bcd671d SHA512 6acfc1b9000e99ca270ee940c47824e8683a3433d7846548b488563b1ce924b8a893cba475bc3b28b971bb3d7a6634c8539dfb34fa12e0bc7ce81c1aed959452
diff --git a/dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220319.ebuild b/dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220319.ebuild
new file mode 100644
index 000000000..871c0eae1
--- /dev/null
+++ b/dev-util/blueprint-compiler/blueprint-compiler-0.1.0_pre20220319.ebuild
@@ -0,0 +1,98 @@
+# 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="3f37380c25c66d81166d2871ffa1c7bc16c6af1d"
+ 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 test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ ${PYTHON_DEPS}
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/furo[${PYTHON_USEDEP}]
+ )
+"
+
+DEPEND="
+ test? (
+ gui-libs/gtk:4[introspection]
+ )
+"
+
+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
+}
next reply other threads:[~2022-03-21 6:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 6:28 Yuan Liao [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-14 16:07 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/blueprint-compiler/ Yuan Liao
2023-01-25 22:33 Yuan Liao
2023-01-25 22:33 Yuan Liao
2023-01-20 0:05 Yuan Liao
2022-12-05 21:42 Yuan Liao
2022-11-29 22:12 Yuan Liao
2022-11-29 22:12 Yuan Liao
2022-11-29 22:12 Yuan Liao
2022-11-29 22:12 Yuan Liao
2022-09-16 17:16 Yuan Liao
2022-09-16 17:16 Yuan Liao
2022-07-30 15:49 Yuan Liao
2022-07-07 0:41 Anna Vyalkova
2022-06-11 15:27 Yuan Liao
2022-06-11 15:27 Yuan Liao
2022-06-11 15:27 Yuan Liao
2022-04-20 18:51 Yuan Liao
2022-04-20 18:51 Yuan Liao
2022-02-21 14:22 Yuan Liao
2022-02-19 23:58 Yuan Liao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1647842872.2ea52dd47997f564316817a813cb0749afc05fb0.liaoyuan@gentoo \
--to=liaoyuan@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox