diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-15 23:53:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-08-15 23:53:29 +0000 |
commit | de9bd7b5dfad3322ee4ad42091830ac5b62350b3 (patch) | |
tree | 5cae2aac4cc9e613ca37d42e325247a8cb9bcf2c /sys-apps/gawk | |
parent | Respect CC/CPPFLAGS env vars #280847 by Chris Slycord. (diff) | |
download | gentoo-2-de9bd7b5dfad3322ee4ad42091830ac5b62350b3.tar.gz gentoo-2-de9bd7b5dfad3322ee4ad42091830ac5b62350b3.tar.bz2 gentoo-2-de9bd7b5dfad3322ee4ad42091830ac5b62350b3.zip |
Version bump #280701 by Jeremy Olexa.
(Portage version: 2.2_rc38/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/gawk')
-rw-r--r-- | sys-apps/gawk/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/gawk/gawk-3.1.7.ebuild | 111 | ||||
-rw-r--r-- | sys-apps/gawk/metadata.xml | 3 |
3 files changed, 121 insertions, 1 deletions
diff --git a/sys-apps/gawk/ChangeLog b/sys-apps/gawk/ChangeLog index 3064e115ee98..771633c91b47 100644 --- a/sys-apps/gawk/ChangeLog +++ b/sys-apps/gawk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/gawk # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/ChangeLog,v 1.127 2009/05/16 22:02:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/ChangeLog,v 1.128 2009/08/15 23:53:29 vapier Exp $ + +*gawk-3.1.7 (15 Aug 2009) + + 15 Aug 2009; Mike Frysinger <vapier@gentoo.org> +gawk-3.1.7.ebuild, + metadata.xml: + Version bump #280701 by Jeremy Olexa. 16 May 2009; Mike Frysinger <vapier@gentoo.org> files/filefuncs/Makefile: Respect CPPFLAGS when building filefuncs #209129 by Stuart Shelton. diff --git a/sys-apps/gawk/gawk-3.1.7.ebuild b/sys-apps/gawk/gawk-3.1.7.ebuild new file mode 100644 index 000000000000..436145b53c2e --- /dev/null +++ b/sys-apps/gawk/gawk-3.1.7.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/gawk-3.1.7.ebuild,v 1.1 2009/08/15 23:53:29 vapier Exp $ + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="GNU awk pattern-matching language" +HOMEPAGE="http://www.gnu.org/software/gawk/gawk.html" +SRC_URI="mirror://gnu/gawk/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="libsigsegv nls" + +RDEPEND="libsigsegv? ( dev-libs/libsigsegv )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +SFFS=${WORKDIR}/filefuncs + +src_unpack() { + unpack ${A} + + # Copy filefuncs module's source over ... + cp -r "${FILESDIR}"/filefuncs "${SFFS}" || die "cp failed" + + cd "${S}" + epatch "${FILESDIR}"/${PN}-3.1.6-gnuinfo.patch #249130 +} + +src_compile() { + local bindir=/usr/bin + use userland_GNU && bindir=/bin + econf \ + --bindir=${bindir} \ + --libexec='$(libdir)/misc' \ + $(use_enable nls) \ + $(use_enable libsigsegv) \ + --enable-switch \ + || die + emake || die "emake failed" + + cd "${SFFS}" + emake CC=$(tc-getCC) || die "filefuncs emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "install failed" + cd "${SFFS}" + emake LIBDIR="$(get_libdir)" install || die "filefuncs install failed" + + dodir /usr/bin + # In some rare cases, (p)gawk gets installed as (p)gawk- and not + # (p)gawk-${PV} ... Also make sure that /bin/(p)gawk is a symlink + # to /bin/(p)gawk-${PV}. + local bindir=/usr/bin binpath= x= + use userland_GNU && bindir=/bin + for x in gawk pgawk igawk ; do + [[ ${x} == "gawk" ]] \ + && binpath=${bindir} \ + || binpath=/usr/bin + + if [[ -f ${D}/${bindir}/${x} && ! -f ${D}/${bindir}/${x}-${PV} ]] ; then + mv -f "${D}"/${bindir}/${x} "${D}"/${binpath}/${x}-${PV} + elif [[ -f ${D}/${bindir}/${x}- && ! -f ${D}/${bindir}/${x}-${PV} ]] ; then + mv -f "${D}"/${bindir}/${x}- "${D}"/${binpath}/${x}-${PV} + elif [[ ${binpath} == "/usr/bin" && -f ${D}/${bindir}/${x}-${PV} ]] ; then + mv -f "${D}"/${bindir}/${x}-${PV} "${D}"/${binpath}/${x}-${PV} + fi + + rm -f "${D}"/${bindir}/${x} + [[ -x "${D}"/${binpath}/${x}-${PV} ]] && dosym ${x}-${PV} ${binpath}/${x} + if use userland_GNU ; then + [[ ${binpath} == "/usr/bin" ]] && dosym /usr/bin/${x}-${PV} /bin/${x} + fi + done + + rm -f "${D}"/bin/awk + dodir /usr/bin + # Compat symlinks + dosym gawk-${PV} ${bindir}/awk + dosym ${bindir}/gawk-${PV} /usr/bin/awk + if use userland_GNU ; then + dosym /bin/gawk-${PV} /usr/bin/gawk + else + rm -f "${D}"/{,usr/}bin/awk{,-${PV}} + fi + + # Install headers + insinto /usr/include/awk + doins "${S}"/*.h || die "ins headers failed" + # We do not want 'acconfig.h' in there ... + rm -f "${D}"/usr/include/awk/acconfig.h + + cd "${S}" + rm -f "${D}"/usr/share/man/man1/pgawk.1 + dosym gawk.1 /usr/share/man/man1/pgawk.1 + if use userland_GNU ; then + dosym gawk.1 /usr/share/man/man1/awk.1 + fi + dodoc AUTHORS ChangeLog FUTURES LIMITATIONS NEWS PROBLEMS POSIX.STD README + docinto README_d + dodoc README_d/* + docinto awklib + dodoc awklib/ChangeLog + docinto pc + dodoc pc/ChangeLog + docinto posix + dodoc posix/ChangeLog +} diff --git a/sys-apps/gawk/metadata.xml b/sys-apps/gawk/metadata.xml index 96a2d586367d..2c7cb7e2325d 100644 --- a/sys-apps/gawk/metadata.xml +++ b/sys-apps/gawk/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>base-system</herd> +<use> + <flag name='libsigsegv'>Support segfault recovery/debugging</flag> +</use> </pkgmetadata> |