/[gentoo-x86]/sys-apps/nawk/nawk-20110810-r1.ebuild
Gentoo

Contents of /sys-apps/nawk/nawk-20110810-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jul 13 02:51:27 2012 UTC (2 years, 3 months ago) by ottxor
Branch: MAIN
Changes since 1.1: +4 -4 lines
fixed typos

(Portage version: 2.2.0_alpha117/cvs/Linux i686)

1 ottxor 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ottxor 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/nawk/nawk-20110810-r1.ebuild,v 1.1 2012/07/13 02:44:33 ottxor Exp $
4 ottxor 1.1
5     EAPI="4"
6    
7     inherit toolchain-funcs
8    
9     DESCRIPTION="Brian Kernighan's pattern scanning and processing language"
10     HOMEPAGE="http://cm.bell-labs.com/cm/cs/awkbook/index.html"
11     SRC_URI="http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz -> ${P}.tar.gz"
12    
13     LICENSE="MIT"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
16     IUSE=""
17    
18 ottxor 1.2 RDEPEND="app-admin/eselect-awk"
19 ottxor 1.1 DEPEND="${RDEPEND}
20     virtual/yacc"
21    
22     S="${WORKDIR}"
23    
24     src_compile() {
25     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" ALLOC="${LDFLAGS}" YACC=$(type -p yacc)
26     }
27    
28     src_install() {
29     newbin a.out "${PN}"
30     sed -e 's/awk/nawk/g' \
31     -e 's/AWK/NAWK/g' \
32     -e 's/Awk/Nawk/g' \
33     awk.1 > "${PN}".1 || die "manpage patch failed"
34     doman "${PN}".1
35     dodoc README FIXES
36     }
37    
38     pkg_postinst() {
39 ottxor 1.2 eselect awk update ifunset
40 ottxor 1.1 }
41    
42     pkg_postrm() {
43 ottxor 1.2 eselect awk update ifunset
44 ottxor 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20