diff options
| author | 1024x2 | 2026-09-18 12:07:25 +0100 |
|---|---|---|
| committer | 1024x2 | 2026-09-18 12:07:25 +0100 |
| commit | e6c4820c5fe443b9cf1fc17f8df5d739faabaecf (patch) | |
| tree | dbc325daeadae594ee474258bc079f0adceba5ad /app-shells/etsh/etsh-5.4.0.ebuild | |
| parent | 2da63a76d5f2b9c853d3302f8c956d2cb01c4db2 (diff) | |
app-shells/etsh: new package, add 5.4.0
Diffstat (limited to 'app-shells/etsh/etsh-5.4.0.ebuild')
| -rw-r--r-- | app-shells/etsh/etsh-5.4.0.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/app-shells/etsh/etsh-5.4.0.ebuild b/app-shells/etsh/etsh-5.4.0.ebuild new file mode 100644 index 0000000..08aa884 --- /dev/null +++ b/app-shells/etsh/etsh-5.4.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +VERIFY_SIG_METHOD="signify" +inherit verify-sig + +DESCRIPTION="Enhanced port of the Thompson sh(1) from V6 UNIX" +HOMEPAGE="https://etsh.dev/" + +SRC_URI=" + https://etsh.dev/src/etsh_${PV}/etsh-${PV}.tar.gz + https://etsh.dev/src/etsh_${PV}/SHA512.sig -> ${P}.sha.sig +" +LICENSE="BSD BSD-2 BSD-4" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="doc examples" + +# Also installs manpage for if(1) +DEPEND="!!app-doc/execline-man-pages" +BDEPEND="verify-sig? ( sec-keys/signify-keys-etsh )" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/signify-keys/etsh-20260918.pub + +src_unpack() { + if use verify-sig; then + cp "${DISTDIR}"/${P}.{sha.sig,tar.gz} . || die + verify-sig_verify_signed_checksums ${P}.sha.sig sha512 ${P}.tar.gz + fi + + unpack "${P}.tar.gz" +} + +src_prepare() { + sed -i -e '/$(INSTALL)/s/-s//' Makefile || die + eapply_user +} + +src_configure() { + ./configure || die +} + +etsh_emake() { + local mymakeargs=( + PREFIX="${EPREFIX}/usr" + LIBEXECDIR="${EPREFIX}/usr/libexec/${PN}" + LIBEXECDIRETSH="${EPREFIX}/usr/libexec/${PN}" + LIBEXECDIRTSH="${EPREFIX}/usr/libexec/${PN}" + DOCDIR="${EPREFIX}/usr/share/doc/${P}" + EXPDIR="${EPREFIX}/usr/share/doc/${P}/examples" + MANDIR="${EPREFIX}/usr/share/man/man1" + ) + emake -j1 "${mymakeargs[@]}" "$@" +} + +src_compile() { + etsh_emake all exp +} + +src_install() { + etsh_emake DESTDIR="${D}" install + if use doc; then + etsh_emake DESTDIR="${D}" install-doc + fi + if use examples; then + etsh_emake DESTDIR="${D}" install-exp + fi +} |
