commit: f68fe7ac1f92acee77f5de08f1d7b908b0686035 parent e051c616ad8678d05e38242633f7cd9abefa3ca2 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Fri, 20 Dec 2024 03:52:46 +0100 sys-apps/utils-std: add 0.0.1Diffstat:
A | sys-apps/utils-std/Manifest | 2 | ++ |
A | sys-apps/utils-std/utils-std-0.0.1.ebuild | 78 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
M | sys-apps/utils-std/utils-std-9999.ebuild | 37 | +++++++++++++++++++++++++++++++++++-- |
3 files changed, 115 insertions(+), 2 deletions(-)diff --git a/sys-apps/utils-std/Manifest b/sys-apps/utils-std/Manifest
@@ -0,0 +1,2 @@ +DIST utils-std-0.0.1.tar.gz 178286 BLAKE2B bde0c54960ab1072d6ef6115ae85d45a782e1728cb36f7e92fa068aee3ca4cd1b616d25942a65bbf3ff0d57641980b93db08162585013719d27e21c8878c6c88 SHA512 b78d9adeca16187956fa32ca1743d8e707cba4aa543979243e4abe6a958c5892ef1b26982b45da50724e5af0ee31109d7d05c66751a21c77f06f04b7a56f8001 +DIST utils-std-0.0.1.tar.gz.sign 310 BLAKE2B f72c0833f36cc23fd70a9ccdb7aef696d314945d6d80c8af34e093418bfa8f869d6cd478a135f0abe8e4649657e9f4bd74b8688aea632fda877bed579baf517a SHA512 f09323b4c599ee4e917fd880f21bfc4ed956382eab63fa4ff4d47e63b79b6f3522cd57ae4451720e6bfc5f7e25ba7f194aa667c1d03b6426d360666922294603diff --git a/sys-apps/utils-std/utils-std-0.0.1.ebuild b/sys-apps/utils-std/utils-std-0.0.1.ebuild
@@ -0,0 +1,78 @@ +# Copyright 2021-2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ "${PV}" = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://anongit.hacktivis.me/git/utils-std.git" +else + VERIFY_SIG_METHOD=signify + inherit verify-sig + + SRC_URI=" + https://hacktivis.me/releases/utils-std/${P}.tar.gz + verify-sig? ( https://hacktivis.me/releases/utils-std/${P}.tar.gz.sign ) + " + + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + + +DESCRIPTION="Collection of commonly available Unix tools" +HOMEPAGE="https://hacktivis.me/git/utils-std" +LICENSE="MPL-2.0" +SLOT="0" +IUSE="test static system" + +RESTRICT="!test? ( test )" + +RDEPEND=" + system? ( + !sys-apps/coreutils[system(+)] + !sys-apps/diffutils[system(+)] + ) +" +BDEPEND=" + app-alternatives/yacc + test? ( dev-util/cram ) +" + +if [[ "${PV}" != 9999* ]] +then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2024 )" + + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2024.pub" + + src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links workaround + cd "${WORKDIR}" || die + cp "${DISTDIR}/${P}.tar.gz" "${DISTDIR}/${P}.tar.gz.sign" "${WORKDIR}/" || die + verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign" + unpack "${WORKDIR}/${P}.tar.gz" + rm "${WORKDIR}/${P}.tar.gz" + else + default + fi + } +fi + +src_configure() { + export NO_BWRAP=1 + + use static && export LDSTATIC="-static-pie" + + ./configure PREFIX=$(usex system '/usr' '/opt/lanodan') +} + +src_install() { + emake install DESTDIR="${D}" + + # before 50baselayout + use system || newenvd - 40lanodan <<-EOF + PATH="/opt/lanodan/bin:/opt/lanodan/sbin" + ROOTPATH="/opt/lanodan/bin:/opt/lanodan/sbin" + MANPATH="/opt/lanodan/share/man" + EOF +}diff --git a/sys-apps/utils-std/utils-std-9999.ebuild b/sys-apps/utils-std/utils-std-9999.ebuild
@@ -3,11 +3,24 @@ EAPI=8 -inherit git-r3 +if [[ "${PV}" = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://anongit.hacktivis.me/git/utils-std.git" +else + VERIFY_SIG_METHOD=signify + inherit verify-sig + + SRC_URI=" + https://hacktivis.me/releases/utils-std/${P}.tar.gz + verify-sig? ( https://hacktivis.me/releases/utils-std/${P}.tar.gz.sign ) + " + + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + DESCRIPTION="Collection of commonly available Unix tools" HOMEPAGE="https://hacktivis.me/git/utils-std" -EGIT_REPO_URI="https://anongit.hacktivis.me/git/utils-std.git" LICENSE="MPL-2.0" SLOT="0" IUSE="test static system" @@ -25,6 +38,26 @@ BDEPEND=" test? ( dev-util/cram ) " +if [[ "${PV}" != 9999* ]] +then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2024 )" + + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2024.pub" + + src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links workaround + cd "${WORKDIR}" || die + cp "${DISTDIR}/${P}.tar.gz" "${DISTDIR}/${P}.tar.gz.sign" "${WORKDIR}/" || die + verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign" + unpack "${WORKDIR}/${P}.tar.gz" + rm "${WORKDIR}/${P}.tar.gz" + else + default + fi + } +fi + src_configure() { export NO_BWRAP=1