1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
9 DESCRIPTION="an (often faster than gawk) awk-interpreter"
10 HOMEPAGE="https://invisible-island.net/mawk/mawk.html"
11 SRC_URI="ftp://ftp.invisible-island.net/mawk/${MY_P}.tgz"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
18 RDEPEND="app-eselect/eselect-awk"
21 S="${WORKDIR}/${MY_P}"
23 DOCS=( ACKNOWLEDGMENT CHANGES README )
26 "${FILESDIR}"/${PN}-1.3.4-sandbox.patch
27 "${FILESDIR}"/${PN}-1.3.4-sandbox-default.patch
32 econf $(use_enable forced-sandbox)
38 exeinto /usr/share/doc/${PF}/examples
40 docompress -x /usr/share/doc/${PF}/examples
44 eselect awk update ifunset
48 eselect awk update ifunset