sys-apps/gawk: Bump to version 4.2.0
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Oct 2017 07:33:18 +0000 (09:33 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Oct 2017 07:33:18 +0000 (09:33 +0200)
Package-Manager: Portage-2.3.12, Repoman-2.3.3

sys-apps/gawk/Manifest
sys-apps/gawk/gawk-4.2.0.ebuild [new file with mode: 0644]

index 0da49b7637413415a26f36d56fcc428e1ae9cf8b..9615fb7603a4787b280cf54ab632a7fc35109bbb 100644 (file)
@@ -2,3 +2,4 @@ DIST gawk-3.1.8.tar.bz2 1984129 SHA256 5dbc7b2c4c328711337c2aacd09a122c731312226
 DIST gawk-4.0.2.tar.xz 1626808 SHA256 21e1f28c51b5160f0a4bf1a735c6109b46a3bd6a43de808eabc21c17bb026d13 SHA512 069f68b6792521d94d4003764006ad8fbe9a17c60a88212629204d9a5eb3f662903fff6d91dd3c1834597b76c18f9d3231c93a033f456c59c0571ac13eb77b27 WHIRLPOOL 8b2916d964c5fa67a46c0a5fc39d424b03e6b39a3335ad796a224feb760528631199c1ec6ee2b6719bdc014ab190ddf38092211685020c92851d617e6ca08690
 DIST gawk-4.1.3.tar.xz 2311268 SHA256 e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625 SHA512 8b9470a1bba397353f10e4e652e8589a637a49e8235fb39ca7681ae662fd27cd140c193d0634179c800f99e19b0e49aef55dfa6612f9695ba80760a36936a1c3 WHIRLPOOL ddcd0f218a08c7d54beaaa28db3a965c57b1d394dd294f142970cbf3b4777a407bbb491b7442f9e4de0b7435167919e76b16f4c5ab28eb62758a3d44d11a49e1
 DIST gawk-4.1.4.tar.xz 2367832 SHA256 53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266 SHA512 6a0e9cf086544212f54b54261dcd517b611aaf495ef99c4b7740d07e363bb00c5632f3d7fd5e12a954d5aa9793764162a57453e0e18884b29c6c54b5f444c097 WHIRLPOOL 5103388e7260cd9d4e777a5b53e93ae2eb1270c5baec462d0d4c244fde12bb29d41864ebb22de5c9b797fb9678c548cf3059a39488d35660b508b90c802346ff
+DIST gawk-4.2.0.tar.xz 2948108 SHA256 d4f3cd31c001fd0ed52832d4fbfbdfeaa38ad541c182f80ff8fdf87324a6a9f2 SHA512 3076b2f42e43fff0ce63dcaa3fb749ce421473d0abc3e1e2d9dd375207d3e35c98d5bf91c3179f49156e8a4977424c16bb2d3d662846ad487153729dd4cfeb4c WHIRLPOOL 5fe8f46d78effeef2563446b6c73c7e5bcc4e1f8b565ca2bed3bbf30017683e784daa9655cfb7722ea090a8c9a3ce6f5740f278c0ff3a70d85ec67d7a8b5808a
diff --git a/sys-apps/gawk/gawk-4.2.0.ebuild b/sys-apps/gawk/gawk-4.2.0.ebuild
new file mode 100644 (file)
index 0000000..da57da4
--- /dev/null
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="GNU awk pattern-matching language"
+HOMEPAGE="https://www.gnu.org/software/gawk/gawk.html"
+SRC_URI="mirror://gnu/gawk/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="mpfr nls readline"
+
+RDEPEND="
+       dev-libs/gmp:0=
+       mpfr? ( dev-libs/mpfr:0= )
+       readline? ( sys-libs/readline:0= )
+"
+DEPEND="${RDEPEND}
+       nls? ( sys-devel/gettext )"
+
+src_prepare() {
+       default
+
+       # use symlinks rather than hardlinks, and disable version links
+       sed -i \
+               -e '/^LN =/s:=.*:= $(LN_S):' \
+               -e '/install-exec-hook:/s|$|\nfoo:|' \
+               Makefile.in doc/Makefile.in || die
+       sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in #413327
+       # disable pointless build time hack that breaks cross-compiling #493362
+       sed -i \
+               -e '/check-recursive all-recursive: check-for-shared-lib-support/d' \
+               extension/Makefile.in || die
+       # fix standards conflict on Solaris
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               sed -i \
+                       -e '/\<_XOPEN_SOURCE\>/s/$/600/' \
+                       extension/inplace.c || die
+       fi
+}
+
+src_configure() {
+       export ac_cv_libsigsegv=no
+       local myeconfargs=(
+               --libexec='$(libdir)/misc'
+               $(use_with mpfr)
+               $(use_enable nls)
+               $(use_with readline)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       rm -rf README_d # automatic dodocs barfs
+       default
+
+       # Install headers
+       insinto /usr/include/awk
+       doins *.h || die
+       rm "${ED}"/usr/include/awk/config.h || die
+}
+
+pkg_postinst() {
+       # symlink creation here as the links do not belong to gawk, but to any awk
+       if has_version app-admin/eselect \
+                       && has_version app-eselect/eselect-awk ; then
+               eselect awk update ifunset
+       else
+               local l
+               for l in "${EROOT%/}"/usr/share/man/man1/gawk.1* "${EROOT%/}"/usr/bin/gawk; do
+                       [[ -e ${l} && ! -e ${l/gawk/awk} ]] && ln -s "${l##*/}" "${l/gawk/awk}"
+               done
+               [[ ! -e ${EROOT%/}/bin/awk ]] && ln -s "../usr/bin/gawk" "${EROOT%/}/bin/awk"
+       fi
+}
+
+pkg_postrm() {
+       if has_version app-admin/eselect \
+                       && has_version app-eselect/eselect-awk ; then
+               eselect awk update ifunset
+       fi
+}