summaryrefslogtreecommitdiff
path: root/app-admin/run0edit
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-08 03:04:52 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-08 03:04:52 -0500
commit23850c0a8390d403a1fe131e47265df579818dd5 (patch)
treee7ae85db09fa5d472795ee07ec0632e45b9bee0e /app-admin/run0edit
parent8453817910bc2afbb7ab1fbf61c3f06fb7320f35 (diff)
downloadbaldeagleos-repo-23850c0a8390d403a1fe131e47265df579818dd5.tar.gz
baldeagleos-repo-23850c0a8390d403a1fe131e47265df579818dd5.tar.xz
baldeagleos-repo-23850c0a8390d403a1fe131e47265df579818dd5.zip
Adding metadata
Diffstat (limited to 'app-admin/run0edit')
-rw-r--r--app-admin/run0edit/Manifest1
-rw-r--r--app-admin/run0edit/run0edit-0.6.1.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/app-admin/run0edit/Manifest b/app-admin/run0edit/Manifest
index 2e42424891a1..f0c3c7d87f16 100644
--- a/app-admin/run0edit/Manifest
+++ b/app-admin/run0edit/Manifest
@@ -1,2 +1,3 @@
DIST run0edit-0.5.10.tar.gz 215040 BLAKE2B a0b692eb2a3dbf38883ddb6421f8125fd4333c36b9846ef3ecdb09d3ee132deff6b492ee79b878697b8b54ed1f2a8b41addd1c001c77a243f701a484636cb9a9 SHA512 5f7f1118c5c083637963986bb24e0fcaec39c8fbe95201d137ccbaddeab12919794e1ed1eba717fbbd57676bb67b6a9b9e41d2c5219e00551060c5e984d583b2
DIST run0edit-0.5.9.tar.gz 61440 BLAKE2B ca86288b8af51bf615893840eb0fa848b6c245098989ec115459d7315686f296e0c82bed62a3b3821bbbe9ffd2984cb5954d00812eed76d4d6b63724c8a4b261 SHA512 6f0a4943a65514a6d42e2bfd0fad488c44b83f71118c6f1f1970c8874794ca0b10aaaf4e7acc1d5e02ad146a0c3b149ecf43714cc16739780ce652f636aba857
+DIST run0edit-0.6.1.tar.gz 215040 BLAKE2B 1836dfa65ded12e180ac9282f328596cc54fe7985a06f86ee1225d45af715b9d338c9888797979969c5af54635db31389bd0427a939e7d1ce56034a5889c70ba SHA512 131e125291f4fe576b2e4f3337e63216975e60cf471867c5ed9bfb419dd753b98c77c3def787dc0c6fd827e4ca63b96304120c10db439609253d0791fd8706d0
diff --git a/app-admin/run0edit/run0edit-0.6.1.ebuild b/app-admin/run0edit/run0edit-0.6.1.ebuild
new file mode 100644
index 000000000000..95e0d13380b8
--- /dev/null
+++ b/app-admin/run0edit/run0edit-0.6.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit meson python-single-r1
+
+DESCRIPTION="Script to edit a single file as root using run0"
+HOMEPAGE="https://github.com/HastD/run0edit"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/HastD/run0edit.git"
+else
+ SRC_URI="https://github.com/HastD/run0edit/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="|| ( Apache-2.0 MIT )"
+SLOT="0"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ virtual/pandoc
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/coverage[${PYTHON_USEDEP}]
+ ')
+ )
+"
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=sys-apps/systemd-256:=
+"
+
+DOCS=( {CHANGELOG,SECURITY,README}.md )
+
+src_prepare() {
+ default
+
+ python_fix_shebang run0edit_main.py.in run0edit_inner.py
+
+ local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
+
+ # patch hard-coded variables to work
+ sed -i \
+ -e "/^INNER_SCRIPT_B2:/{
+ N
+ s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
+ }" \
+ run0edit_main.py.in || die
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature test unit-tests)
+ $(meson_feature test integration-tests)
+ )
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+
+ rm -r "${ED}"/usr/share/licenses || die
+}