diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-12-28 11:05:32 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-12-28 11:05:32 +0000 |
commit | a26ca9e6384bce21ffbd0771fcf3a1f993c88de7 (patch) | |
tree | a2f94e0d53491772660b53d7d28b43d7606bb4fa /sys-apps/gawk | |
parent | Make sure /bin/pgawk is a symlink as to not have two binaries taking space. (diff) | |
download | historical-a26ca9e6384bce21ffbd0771fcf3a1f993c88de7.tar.gz historical-a26ca9e6384bce21ffbd0771fcf3a1f993c88de7.tar.bz2 historical-a26ca9e6384bce21ffbd0771fcf3a1f993c88de7.zip |
Make sure /bin/pgawk is a symlink as to not have two binaries taking space.
Diffstat (limited to 'sys-apps/gawk')
-rw-r--r-- | sys-apps/gawk/Manifest | 5 | ||||
-rw-r--r-- | sys-apps/gawk/files/digest-gawk-3.1.3-r1 | 1 | ||||
-rw-r--r-- | sys-apps/gawk/gawk-3.1.3-r1.ebuild | 120 |
3 files changed, 123 insertions, 3 deletions
diff --git a/sys-apps/gawk/Manifest b/sys-apps/gawk/Manifest index 901c023b3b77..a83788789bbe 100644 --- a/sys-apps/gawk/Manifest +++ b/sys-apps/gawk/Manifest @@ -1,9 +1,8 @@ MD5 f584968328fea7b81492ac5f1ae89578 gawk-3.1.1-r2.ebuild 2432 -MD5 c8bb39666ea3ce9d7079907c1733339b ChangeLog 5791 +MD5 4acb26a94fa0a3601bc216ef9c3aa38b ChangeLog 5974 MD5 d924ee1f9db16fb2f21235b6d08a27c3 gawk-3.1.2-r3.ebuild 2946 MD5 6fc76e8486bf32d6c5a66a22c62d5517 gawk-3.1.3.ebuild 2580 -MD5 de746f81ddf220cf0af938a522c4307b .gawk-3.1.3-r1.ebuild.swp 12288 -MD5 d553ca45bd4260cafa42ba7c30fe9f01 gawk-3.1.3-r1.ebuild 2656 +MD5 2f9236a62060fead62b2b81a2bb4fbbe gawk-3.1.3-r1.ebuild 2740 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 MD5 9ee5f35f388bc0943f9f1df199bdd64d files/digest-gawk-3.1.1-r2 63 MD5 a3d79dbed6a930b14071084a6c2dbcc7 files/digest-gawk-3.1.3 63 diff --git a/sys-apps/gawk/files/digest-gawk-3.1.3-r1 b/sys-apps/gawk/files/digest-gawk-3.1.3-r1 new file mode 100644 index 000000000000..0bb5d217017a --- /dev/null +++ b/sys-apps/gawk/files/digest-gawk-3.1.3-r1 @@ -0,0 +1 @@ +MD5 b637b454005f9e72a9a8eecfacd07ca0 gawk-3.1.3.tar.gz 2078246 diff --git a/sys-apps/gawk/gawk-3.1.3-r1.ebuild b/sys-apps/gawk/gawk-3.1.3-r1.ebuild new file mode 100644 index 000000000000..1da270aa411f --- /dev/null +++ b/sys-apps/gawk/gawk-3.1.3-r1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/gawk-3.1.3-r1.ebuild,v 1.1 2003/12/28 11:04:56 azarah Exp $ + +IUSE="nls build" + +inherit eutils + +S="${WORKDIR}/${P}" +DESCRIPTION="GNU awk pattern-matching language" +SRC_URI="ftp://gatekeeper.dec.com/pub/GNU/gawk/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gawk/gawk.html" + +KEYWORDS="x86 amd64 ~ppc sparc ~alpha ~mips hppa ~arm ia64 ppc64" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + + # Copy filefuncs module's source over ... + cp -dR ${FILESDIR}/filefuncs ${WORKDIR}/ || die + + cd ${S} + # support for dec compiler. + [ "${CC}" == "ccc" ] && epatch ${FILESDIR}/${PN}-3.1.2-dec-alpha-compiler.diff +} + +src_compile() { + local myconf="" + use nls || myconf="${myconf} --disable-nls" + + einfo "Building gawk ..." + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/awk \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --host=${CHOST} \ + ${myconf} || die + + emake || die + + einfo "Building filefuncs module ..." + cd ${WORKDIR}/filefuncs + make AWKINCDIR=${S} || die +} + +src_install() { + local x= + + einfo "Installing gawk ..." + make prefix=${D}/usr \ + bindir=${D}/bin \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + libexecdir=${D}/usr/lib/awk \ + install || die + + einfo "Installing filefuncs module ..." + cd ${WORKDIR}/filefuncs + make DESTDIR=${D} \ + AWKINCDIR=${S} \ + install || die + + # 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}. + for x in gawk pgawk + do + if [ -f "${D}/bin/${x}" -a ! -f "${D}/bin/${x}-${PV}" ] + then + mv -f ${D}/bin/${x} ${D}/bin/${x}-${PV} + elif [ -f "${D}/bin/${x}-" -a ! -f "${D}/bin/${x}-${PV}" ] + then + mv -f ${D}/bin/${x} ${D}/bin/${x}-${PV} + fi + rm -f ${D}/bin/${x} + dosym ${x}-${PV} /bin/${x} + done + + rm -f ${D}/bin/awk + dosym gawk-${PV} /bin/awk + # Compat symlinks + dodir /usr/bin + dosym ../../bin/gawk-${PV} /usr/bin/awk + dosym ../../bin/gawk-${PV} /usr/bin/gawk + + # Install headers + insinto /usr/include/awk + for x in ${S}/*.h + do + # We do not want 'acconfig.h' in there ... + if [ -f "${x}" -a "${x/acconfig\.h/}" = "${x}" ] + then + doins ${x} + fi + done + + if [ -z "`use build`" ] + then + cd ${S} + dosym gawk.1.gz /usr/share/man/man1/awk.1.gz + dodoc AUTHORS ChangeLog COPYING FUTURES + dodoc 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 + else + rm -rf ${D}/usr/share + fi +} + |