mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
app-admin/run0edit: add 0.6.1
Signed-off-by: HAZARD <ghostyn678+git@gmail.com>
This commit is contained in:
2 files changed
+74
No files matched your search
@@ -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
|
||||
@@ -0,0 +1,73 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user