diff options
-rw-r--r-- | sys-apps/mawk/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/mawk/mawk-1.3.4_p20231126.ebuild | 51 |
2 files changed, 53 insertions, 0 deletions
diff --git a/sys-apps/mawk/Manifest b/sys-apps/mawk/Manifest index 762b735bc5b0..3a6fcc56e6c1 100644 --- a/sys-apps/mawk/Manifest +++ b/sys-apps/mawk/Manifest @@ -10,3 +10,5 @@ DIST mawk-1.3.4-20230808.tgz 410937 BLAKE2B 292774aed97b7e91de71bb978fe87014cf6e 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 +DIST mawk-1.3.4-20231126.tgz 413452 BLAKE2B e3907cf88ea3daaaf8a1d12eb9fe3cb726be8b8e8d3c8d9ea5b25b8127c5d054d8a0c600da90f7dabcc0fcee2c987628ade15b7225698e417fee63e49689a8a4 SHA512 faacd473df97fc51cf3ece652e0826b13c26e8de5fa87746dfcc097811a9464a71e5630a8f3b4d243e0c1dc0199751b64d9a1bf34fe5080b646c0e5fff231e0d +DIST mawk-1.3.4-20231126.tgz.asc 729 BLAKE2B 72d8e626aac6354f2e568eb118f2d19b3d770ab8b23449163e84941cdbd8539b0e39edb0446176fc64ecfe2deac81e98f1107df1bdbd815569bf5d6b08d72cc3 SHA512 19a9725f84651f87ecb38350984a60fce52046df45be7c494e615db91f6b76229d3dba20211bca41b90a7370fbba97fcb7bb2fe475ffb880fac7f1116f14333f diff --git a/sys-apps/mawk/mawk-1.3.4_p20231126.ebuild b/sys-apps/mawk/mawk-1.3.4_p20231126.ebuild new file mode 100644 index 000000000000..795ba9a6937a --- /dev/null +++ b/sys-apps/mawk/mawk-1.3.4_p20231126.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 +} |