summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-11-04 19:37:07 +0000
committerSam James <sam@gentoo.org>2023-11-04 19:37:07 +0000
commit43c0d18eb2d7d3fd6ed578d3ec323913206d983e (patch)
treee52104f149be8951a85048178d2ff9357f80e7ba /sys-apps
parentdev-python/spyder-kernels: Enable py3.12 (diff)
downloadgentoo-43c0d18eb2d7d3fd6ed578d3ec323913206d983e.tar.gz
gentoo-43c0d18eb2d7d3fd6ed578d3ec323913206d983e.tar.bz2
gentoo-43c0d18eb2d7d3fd6ed578d3ec323913206d983e.zip
sys-apps/mawk: add 1.3.4_p20231102
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/mawk/Manifest2
-rw-r--r--sys-apps/mawk/mawk-1.3.4_p20231102.ebuild51
2 files changed, 53 insertions, 0 deletions
diff --git a/sys-apps/mawk/Manifest b/sys-apps/mawk/Manifest
index 4294b4184c29..762b735bc5b0 100644
--- a/sys-apps/mawk/Manifest
+++ b/sys-apps/mawk/Manifest
@@ -8,3 +8,5 @@ DIST mawk-1.3.4-20230730.tgz 410248 BLAKE2B 8f686e728084c576ed98a59e0083a79c2590
DIST mawk-1.3.4-20230730.tgz.asc 729 BLAKE2B 073751f74bb3c94b9bccbb549f900936c09e878921a46a81c757c6849df583fc496251663392456fe6d58b4efb2e0c46b0c0f26589ae35142c1ea187166504cc SHA512 28b0d46248beb0244a9d584690b70338cb29f6b08c29350522e91d56ce2ab625f9696a637fa23b4b43448883f79c6a007d731367274285ec7fa45547f22b910d
DIST mawk-1.3.4-20230808.tgz 410937 BLAKE2B 292774aed97b7e91de71bb978fe87014cf6ef9a5fdfd85abde1ad19317b270ff2d63a47b697f506ca20a2cb780f038f7364c6a6269b2a46102647f32cd2907b8 SHA512 fbf860a70d2e919018a44e43351c2558737a6694c416c17bc1669b5fa18bebedfefbfe3edddaa28143d0445d838c38958b28a92d85d03ef2f2af6d94737abe2c
DIST mawk-1.3.4-20230808.tgz.asc 729 BLAKE2B b1765478576eb624db454ec27969f1ddc3cab7eb94e3725600dd58434972251f3fc0bfe30858bcd05e0e638282a2e035f5b9b2f207f52548307c536556fd731d SHA512 3e7414e0fcc81c6b93c09ba429f189570bb65f91e8b8866ea6beffc0fbd3c983a19f74c7578d55c5a55795fbbb1d1bf62c4927873f40300c79bed9e32006824c
+DIST mawk-1.3.4-20231102.tgz 413107 BLAKE2B c423381900be429dcfb117df3ceb72dc942aec6e85ea94e59b2fef1b92445620cff3205fb55be1ddee2bfba9597a1c68ed2f41bb155a1cc6791df0f6de75b44b SHA512 53173a49ad2a63d096755964d0585517180a8555034cee519e2e6cc0c5392408b61960813eec101dd8ded298b6bc86128cd3469c1acb03141c264f24e52446b2
+DIST mawk-1.3.4-20231102.tgz.asc 729 BLAKE2B 0102b4a7862192c921ca129cd674fd8f9ec2d5bddbf0082498dfbaa6aaf9adaee0760d940cfc0f91e02f2de58421352ca0817c206298a90b039c7769ff2fb6a1 SHA512 5933f1cadea90b8349136b0b31f45b04b3e182b61de7ad62fb2142973e64fd8ffc7d3ee17bebd3b9b209d08d3732b2e807fe5554899fe8d4130e1a0d12dc9de8
diff --git a/sys-apps/mawk/mawk-1.3.4_p20231102.ebuild b/sys-apps/mawk/mawk-1.3.4_p20231102.ebuild
new file mode 100644
index 000000000000..795ba9a6937a
--- /dev/null
+++ b/sys-apps/mawk/mawk-1.3.4_p20231102.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/thomasdickey.asc
+inherit toolchain-funcs verify-sig
+
+MY_P="${P/_p/-}"
+DESCRIPTION="An (often faster than gawk) awk-interpreter"
+HOMEPAGE="https://invisible-island.net/mawk/mawk.html"
+SRC_URI="https://invisible-mirror.net/archives/${PN}/${MY_P}.tgz"
+SRC_URI+=" verify-sig? ( https://invisible-island.net/archives/${PN}/${MY_P}.tgz.asc )"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-thomasdickey-20230810 )"
+
+DOCS=( ACKNOWLEDGMENT CHANGES README )
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ arc4random_push # doesn't exist on Linux
+)
+
+src_configure() {
+ tc-export BUILD_CC
+ econf
+}
+
+src_install() {
+ default
+
+ exeinto /usr/share/doc/${PF}/examples
+ doexe examples/*
+ docompress -x /usr/share/doc/${PF}/examples
+}
+
+pkg_postinst() {
+ if has_version app-admin/eselect && has_version app-eselect/eselect-awk; then
+ eselect awk update ifunset
+ fi
+}
+
+pkg_postrm() {
+ if has_version app-admin/eselect && has_version app-eselect/eselect-awk; then
+ eselect awk update ifunset
+ fi
+}