Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/gawk: ChangeLog gawk-3.1.6.ebuild
Date: Mon, 05 May 2008 04:43:53
Message-Id: E1JssYJ-00009q-0S@stork.gentoo.org
1 vapier 08/05/05 04:43:51
2
3 Modified: ChangeLog
4 Added: gawk-3.1.6.ebuild
5 Log:
6 Version bump #219476 by Conrad Kostecki.
7 (Portage version: 2.2_pre5)
8
9 Revision Changes Path
10 1.116 sys-apps/gawk/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/gawk/ChangeLog?rev=1.116&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/gawk/ChangeLog?rev=1.116&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/gawk/ChangeLog?r1=1.115&r2=1.116
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/gawk/ChangeLog,v
19 retrieving revision 1.115
20 retrieving revision 1.116
21 diff -u -r1.115 -r1.116
22 --- ChangeLog 19 Nov 2007 07:05:37 -0000 1.115
23 +++ ChangeLog 5 May 2008 04:43:50 -0000 1.116
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/gawk
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/ChangeLog,v 1.115 2007/11/19 07:05:37 kumba Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/ChangeLog,v 1.116 2008/05/05 04:43:50 vapier Exp $
30 +
31 +*gawk-3.1.6 (05 May 2008)
32 +
33 + 05 May 2008; Mike Frysinger <vapier@g.o> +gawk-3.1.6.ebuild:
34 + Version bump #219476 by Conrad Kostecki.
35
36 19 Nov 2007; Joshua Kinard <kumba@g.o> gawk-3.1.5-r5.ebuild:
37 Stable on mips, per #195212.
38
39
40
41 1.1 sys-apps/gawk/gawk-3.1.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/gawk/gawk-3.1.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/gawk/gawk-3.1.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gawk-3.1.6.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/gawk-3.1.6.ebuild,v 1.1 2008/05/05 04:43:50 vapier Exp $
51
52 inherit eutils toolchain-funcs multilib
53
54 DESCRIPTION="GNU awk pattern-matching language"
55 HOMEPAGE="http://www.gnu.org/software/gawk/gawk.html"
56 SRC_URI="mirror://gnu/gawk/${P}.tar.bz2"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
61 IUSE="nls"
62
63 RDEPEND=""
64 DEPEND="${RDEPEND}
65 nls? ( sys-devel/gettext )"
66
67 SFFS=${WORKDIR}/filefuncs
68
69 src_unpack() {
70 unpack ${A}
71
72 # Copy filefuncs module's source over ...
73 cp -r "${FILESDIR}"/filefuncs "${SFFS}" || die "cp failed"
74
75 cd "${S}"
76 epatch "${FILESDIR}"/${PN}-3.1.3-getpgrp_void.patch
77 }
78
79 src_compile() {
80 local bindir=/usr/bin
81 use userland_GNU && bindir=/bin
82 econf \
83 --bindir=${bindir} \
84 --libexec='$(libdir)/misc' \
85 $(use_enable nls) \
86 --enable-switch \
87 || die
88 emake || die "emake failed"
89
90 cd "${SFFS}"
91 emake CC=$(tc-getCC) || die "filefuncs emake failed"
92 }
93
94 src_install() {
95 emake install DESTDIR="${D}" || die "install failed"
96 cd "${SFFS}"
97 emake LIBDIR="$(get_libdir)" install || die "filefuncs install failed"
98
99 dodir /usr/bin
100 # In some rare cases, (p)gawk gets installed as (p)gawk- and not
101 # (p)gawk-${PV} ... Also make sure that /bin/(p)gawk is a symlink
102 # to /bin/(p)gawk-${PV}.
103 local bindir=/usr/bin binpath= x=
104 use userland_GNU && bindir=/bin
105 for x in gawk pgawk igawk ; do
106 [[ ${x} == "gawk" ]] \
107 && binpath=${bindir} \
108 || binpath=/usr/bin
109
110 if [[ -f ${D}/${bindir}/${x} && ! -f ${D}/${bindir}/${x}-${PV} ]] ; then
111 mv -f "${D}"/${bindir}/${x} "${D}"/${binpath}/${x}-${PV}
112 elif [[ -f ${D}/${bindir}/${x}- && ! -f ${D}/${bindir}/${x}-${PV} ]] ; then
113 mv -f "${D}"/${bindir}/${x}- "${D}"/${binpath}/${x}-${PV}
114 elif [[ ${binpath} == "/usr/bin" && -f ${D}/${bindir}/${x}-${PV} ]] ; then
115 mv -f "${D}"/${bindir}/${x}-${PV} "${D}"/${binpath}/${x}-${PV}
116 fi
117
118 rm -f "${D}"/${bindir}/${x}
119 [[ -x "${D}"/${binpath}/${x}-${PV} ]] && dosym ${x}-${PV} ${binpath}/${x}
120 if use userland_GNU ; then
121 [[ ${binpath} == "/usr/bin" ]] && dosym /usr/bin/${x}-${PV} /bin/${x}
122 fi
123 done
124
125 rm -f "${D}"/bin/awk
126 dodir /usr/bin
127 # Compat symlinks
128 dosym gawk-${PV} ${bindir}/awk
129 dosym ${bindir}/gawk-${PV} /usr/bin/awk
130 if use userland_GNU ; then
131 dosym /bin/gawk-${PV} /usr/bin/gawk
132 else
133 rm -f "${D}"/{,usr/}bin/awk{,-${PV}}
134 fi
135
136 # Install headers
137 insinto /usr/include/awk
138 doins "${S}"/*.h || die "ins headers failed"
139 # We do not want 'acconfig.h' in there ...
140 rm -f "${D}"/usr/include/awk/acconfig.h
141
142 cd "${S}"
143 rm -f "${D}"/usr/share/man/man1/pgawk.1
144 dosym gawk.1 /usr/share/man/man1/pgawk.1
145 if use userland_GNU ; then
146 dosym gawk.1 /usr/share/man/man1/awk.1
147 fi
148 dodoc AUTHORS ChangeLog FUTURES LIMITATIONS NEWS PROBLEMS POSIX.STD README
149 docinto README_d
150 dodoc README_d/*
151 docinto awklib
152 dodoc awklib/ChangeLog
153 docinto pc
154 dodoc pc/ChangeLog
155 docinto posix
156 dodoc posix/ChangeLog
157 }
158
159
160
161 --
162 gentoo-commits@l.g.o mailing list