Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 932757
Collapse All | Expand All

(-)a/sys-apps/nawk/Manifest (+1 lines)
Line 1 Link Here
1
DIST nawk-20230909.tar.gz 1833391 BLAKE2B 1a8dc9805d144953d6ad5d0539847b1d83661a8e2c0e029e13201ee44f5f6a29cf487c4368c8578d01577b99349968415503fb0c2f7f8f37f4a55fb57cec2b07 SHA512 28687dfbd797fb1f758bd356824110602045b7249a41f47e2cda15ac3d256d57260f1fc74119dc30fbb0e909295bd676a52ec24d3b3cc35e417d46a1749f856f
1
DIST nawk-20230909.tar.gz 1833391 BLAKE2B 1a8dc9805d144953d6ad5d0539847b1d83661a8e2c0e029e13201ee44f5f6a29cf487c4368c8578d01577b99349968415503fb0c2f7f8f37f4a55fb57cec2b07 SHA512 28687dfbd797fb1f758bd356824110602045b7249a41f47e2cda15ac3d256d57260f1fc74119dc30fbb0e909295bd676a52ec24d3b3cc35e417d46a1749f856f
2
DIST nawk-20240422.tar.gz 1845117 BLAKE2B 86db0d038a745b198d876ecd5378be5116974c226515f1434660d8c9a1f7a7ecb4e0ce18535a2bc3fc033c466d93ec2a24eb9f210d175998356ed866465bc3f5 SHA512 3d5626b0d6033a9eb8f3d81acbe0b30842e99f4c40563ca3f906ecfebdb72d754de18cd180345131868ad325fead4a6e66bfb765af45267180e256f46a76f316
(-)a/sys-apps/nawk/nawk-20240422.ebuild (-1 / +59 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2024 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=8
5
6
inherit toolchain-funcs
7
8
DESCRIPTION="Brian Kernighan's pattern scanning and processing language"
9
HOMEPAGE="https://www.cs.princeton.edu/~bwk/btl.mirror/"
10
SRC_URI="https://github.com/onetrueawk/awk/archive/${PV}.tar.gz -> ${P}.tar.gz"
11
S="${WORKDIR}/awk-${PV}"
12
13
LICENSE="MIT"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux"
16
17
BDEPEND="
18
	app-alternatives/yacc
19
"
20
21
DOCS=( README.md FIXES )
22
23
#PATCHES=()
24
25
src_compile() {
26
	emake \
27
		CC="$(tc-getCC)" \
28
		HOSTCC="$(tc-getBUILD_CC)" \
29
		CFLAGS="${CFLAGS}" \
30
		CPPFLAGS="${CPPFLAGS} -DHAS_ISBLANK" \
31
		ALLOC="${LDFLAGS}" \
32
		YACC=$(type -p yacc) \
33
		YFLAGS="-d -b awkgram"
34
}
35
36
src_install() {
37
	newbin a.out "${PN}"
38
	sed \
39
		-e 's/awk/nawk/g' \
40
		-e 's/AWK/NAWK/g' \
41
		-e 's/Awk/Nawk/g' \
42
		awk.1 > "${PN}".1 || die "manpage patch failed"
43
	doman "${PN}.1"
44
	einstalldocs
45
}
46
47
pkg_postinst() {
48
	if has_version app-admin/eselect && has_version app-eselect/eselect-awk
49
	then
50
		eselect awk update ifunset
51
	fi
52
}
53
54
pkg_postrm() {
55
	if has_version app-admin/eselect && has_version app-eselect/eselect-awk
56
	then
57
		eselect awk update ifunset
58
	fi
59
}

Return to bug 932757