Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.55 2013/05/15 11:55:20 adam Exp $
|
||||
# $NetBSD: Makefile,v 1.59 2014/02/05 20:25:09 wiz Exp $
|
||||
|
||||
DISTNAME= gawk-4.1.0
|
||||
PKGREVISION= 2
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=gawk/}
|
||||
EXTRACT_SUFX= .tar.xz
|
||||
@@ -16,8 +17,7 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
|
||||
|
||||
USE_LIBTOOL= yes
|
||||
USE_PKGLOCALEDIR= yes
|
||||
USE_GNU_READLINE= yes
|
||||
USE_TOOLS+= msgfmt
|
||||
USE_TOOLS+= msgfmt msgmerge xgettext
|
||||
GNU_CONFIGURE= yes
|
||||
TEST_TARGET= check
|
||||
INFO_FILES= yes
|
||||
@@ -35,6 +35,11 @@ CPPFLAGS.OSF1+= -D_OSF_SOURCE
|
||||
CFLAGS+= -Dvm_region=vm_region_64
|
||||
.endif
|
||||
|
||||
PLIST_VARS+= extension
|
||||
.if "${OPSYS}" != "MirBSD"
|
||||
PLIST.extension= yes
|
||||
.endif
|
||||
|
||||
INSTALLATION_DIRS+= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
|
||||
|
||||
post-install:
|
||||
@@ -44,4 +49,6 @@ post-install:
|
||||
BUILDLINK_API_DEPENDS.gettext+= gettext-lib>=0.10.36
|
||||
|
||||
.include "../../devel/gettext-lib/buildlink3.mk"
|
||||
.include "../../devel/gmp/buildlink3.mk"
|
||||
.include "../../math/mpfr/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@comment $NetBSD: PLIST,v 1.19 2013/05/15 11:55:20 adam Exp $
|
||||
@comment $NetBSD: PLIST,v 1.21 2014/02/05 20:25:09 wiz Exp $
|
||||
bin/gawk
|
||||
bin/${PKGNAME}
|
||||
bin/igawk
|
||||
@@ -7,32 +7,32 @@ gnu/man/man1/awk.1
|
||||
include/gawkapi.h
|
||||
info/gawk.info
|
||||
info/gawkinet.info
|
||||
lib/gawk/filefuncs.la
|
||||
lib/gawk/fnmatch.la
|
||||
lib/gawk/fork.la
|
||||
lib/gawk/inplace.la
|
||||
lib/gawk/ordchr.la
|
||||
lib/gawk/readdir.la
|
||||
lib/gawk/readfile.la
|
||||
lib/gawk/revoutput.la
|
||||
lib/gawk/revtwoway.la
|
||||
lib/gawk/rwarray.la
|
||||
lib/gawk/testext.la
|
||||
lib/gawk/time.la
|
||||
${PLIST.extension}lib/gawk/filefuncs.la
|
||||
${PLIST.extension}lib/gawk/fnmatch.la
|
||||
${PLIST.extension}lib/gawk/fork.la
|
||||
${PLIST.extension}lib/gawk/inplace.la
|
||||
${PLIST.extension}lib/gawk/ordchr.la
|
||||
${PLIST.extension}lib/gawk/readdir.la
|
||||
${PLIST.extension}lib/gawk/readfile.la
|
||||
${PLIST.extension}lib/gawk/revoutput.la
|
||||
${PLIST.extension}lib/gawk/revtwoway.la
|
||||
${PLIST.extension}lib/gawk/rwarray.la
|
||||
${PLIST.extension}lib/gawk/testext.la
|
||||
${PLIST.extension}lib/gawk/time.la
|
||||
libexec/awk/grcat
|
||||
libexec/awk/pwcat
|
||||
man/man1/gawk.1
|
||||
man/man1/igawk.1
|
||||
man/man3/filefuncs.3am
|
||||
man/man3/fnmatch.3am
|
||||
man/man3/fork.3am
|
||||
man/man3/ordchr.3am
|
||||
man/man3/readdir.3am
|
||||
man/man3/readfile.3am
|
||||
man/man3/revoutput.3am
|
||||
man/man3/revtwoway.3am
|
||||
man/man3/rwarray.3am
|
||||
man/man3/time.3am
|
||||
${PLIST.extension}man/man3am/filefuncs.3am
|
||||
${PLIST.extension}man/man3am/fnmatch.3am
|
||||
${PLIST.extension}man/man3am/fork.3am
|
||||
${PLIST.extension}man/man3am/ordchr.3am
|
||||
${PLIST.extension}man/man3am/readdir.3am
|
||||
${PLIST.extension}man/man3am/readfile.3am
|
||||
${PLIST.extension}man/man3am/revoutput.3am
|
||||
${PLIST.extension}man/man3am/revtwoway.3am
|
||||
${PLIST.extension}man/man3am/rwarray.3am
|
||||
${PLIST.extension}man/man3am/time.3am
|
||||
share/awk/assert.awk
|
||||
share/awk/bits2str.awk
|
||||
share/awk/cliff_rand.awk
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
$NetBSD: distinfo,v 1.24 2013/05/15 11:55:20 adam Exp $
|
||||
$NetBSD: distinfo,v 1.29 2014/02/05 21:12:46 wiz Exp $
|
||||
|
||||
SHA1 (gawk-4.1.0.tar.xz) = caabca3c1a59d05807c826c45a4639b82cad612a
|
||||
RMD160 (gawk-4.1.0.tar.xz) = 71267e56aabed02ecc77f26661171a7b626dc71d
|
||||
Size (gawk-4.1.0.tar.xz) = 2049080 bytes
|
||||
SHA1 (patch-Makefile.in) = 12eb8f205fa224634b9f5122cfca55803382516f
|
||||
SHA1 (patch-awk.h) = 2292be5ec392e7fea5688fbb18012a735e43803f
|
||||
SHA1 (patch-extension_Makefile.in) = e6ffaf27a1758df026d7315b6714265ec5a7268d
|
||||
SHA1 (patch-extension_configure) = f53c897d1931a139a0bdaad69234a7530db6c838
|
||||
SHA1 (patch-extension_filefuncs.c) = 959868fabf63beb52014e039de84493dca125a0a
|
||||
SHA1 (patch-getopt.c) = ec519d4276fab67b350cb934b2a9959e1dbf8a2f
|
||||
SHA1 (patch-test_Makefile.in) = 19ce59a4e72fde4901c83af9b9472b9260fda228
|
||||
|
||||
18
lang/gawk/patches/patch-awk.h
Normal file
18
lang/gawk/patches/patch-awk.h
Normal file
@@ -0,0 +1,18 @@
|
||||
$NetBSD: patch-awk.h,v 1.1 2013/12/26 19:19:32 tron Exp $
|
||||
|
||||
Fix build problem with SunStudio compiler under Solaris. Patch taken
|
||||
from here:
|
||||
|
||||
http://lists.gnu.org/archive/html/bug-gawk/2011-07/msg00008.html
|
||||
|
||||
--- awk.h.orig 2013-04-07 18:54:28.000000000 +0100
|
||||
+++ awk.h 2013-12-26 19:03:34.000000000 +0000
|
||||
@@ -69,7 +69,7 @@
|
||||
#endif /* LOCALEDIR */
|
||||
#endif
|
||||
|
||||
-#if !defined(__STDC__) || __STDC__ < 1
|
||||
+#if !defined(__STDC__) || __STDC__ < 1 && !defined(__EXTENSIONS__)
|
||||
#error "gawk no longer supports non-C89 environments (no __STDC__ or __STDC__ < 1)"
|
||||
#endif
|
||||
|
||||
15
lang/gawk/patches/patch-extension_Makefile.in
Normal file
15
lang/gawk/patches/patch-extension_Makefile.in
Normal file
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-extension_Makefile.in,v 1.1 2014/02/05 20:25:09 wiz Exp $
|
||||
|
||||
Install into a separate directory, otherwise these shadow e.g. time(3).
|
||||
|
||||
--- extension/Makefile.in.orig 2013-05-09 13:00:15.000000000 +0000
|
||||
+++ extension/Makefile.in
|
||||
@@ -272,7 +272,7 @@ am__can_run_installinfo = \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
-man3dir = $(mandir)/man3
|
||||
+man3dir = $(mandir)/man3am
|
||||
NROFF = nroff
|
||||
MANS = $(dist_man_MANS)
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
12
lang/gawk/patches/patch-extension_configure
Normal file
12
lang/gawk/patches/patch-extension_configure
Normal file
@@ -0,0 +1,12 @@
|
||||
$NetBSD: patch-extension_configure,v 1.1 2013/10/19 19:47:39 bsiegert Exp $
|
||||
|
||||
--- extension/configure.orig Fri Aug 30 14:41:50 2013
|
||||
+++ extension/configure
|
||||
@@ -16532,7 +16532,6 @@ case `uname` in
|
||||
MirBSD | MirOS | "OS/390")
|
||||
cat << \EOF > Makefile
|
||||
all dist check clean distclean install uninstall distcheck:
|
||||
- @exit 0
|
||||
EOF
|
||||
;;
|
||||
*)
|
||||
19
lang/gawk/patches/patch-extension_filefuncs.c
Normal file
19
lang/gawk/patches/patch-extension_filefuncs.c
Normal file
@@ -0,0 +1,19 @@
|
||||
$NetBSD: patch-extension_filefuncs.c,v 1.1 2013/12/26 19:19:32 tron Exp $
|
||||
|
||||
Fix build problem under Solaris. The more elegant fix is available here:
|
||||
|
||||
http://lists.gnu.org/archive/html/bug-gawk/2013-06/msg00010.html
|
||||
|
||||
--- extension/filefuncs.c.orig 2013-05-02 20:51:30.000000000 +0100
|
||||
+++ extension/filefuncs.c 2013-12-26 19:12:54.000000000 +0000
|
||||
@@ -75,6 +75,10 @@
|
||||
#define minor(s) (0)
|
||||
#endif
|
||||
|
||||
+#ifdef __sun
|
||||
+#include <sys/mkdev.h>
|
||||
+#endif
|
||||
+
|
||||
static const gawk_api_t *api; /* for convenience macros to work */
|
||||
static awk_ext_id_t *ext_id;
|
||||
static awk_bool_t init_filefuncs(void);
|
||||
15
lang/gawk/patches/patch-getopt.c
Normal file
15
lang/gawk/patches/patch-getopt.c
Normal file
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-getopt.c,v 1.1 2013/12/15 09:42:14 richard Exp $
|
||||
|
||||
SunOS needs stdlib.h for malloc/free used in p_getopt_internal_r
|
||||
|
||||
--- getopt.c.orig 2013-05-02 19:51:30.000000000 +0000
|
||||
+++ getopt.c
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
/* This needs to come after some library #include
|
||||
to get __GNU_LIBRARY__ defined. */
|
||||
-#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(__DJGPP__)
|
||||
+#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(__DJGPP__) || defined(__sun)
|
||||
/* Don't include stdlib.h for
|
||||
* non-GNU C libraries
|
||||
* non-Cygwin
|
||||
19
lang/gawk/patches/patch-test_Makefile.in
Normal file
19
lang/gawk/patches/patch-test_Makefile.in
Normal file
@@ -0,0 +1,19 @@
|
||||
$NetBSD: patch-test_Makefile.in,v 1.1 2013/12/15 09:42:14 richard Exp $
|
||||
|
||||
Non portable '-f' flag for ls should be -U for unsorted
|
||||
pkgsrc replacement links mean -L should be used too.
|
||||
|
||||
NB on SunOS, locale/en should be installed in order to have
|
||||
all tests successfully execute (namely mbfw1 and mbprintf1)
|
||||
|
||||
--- test/Makefile.in.orig 2013-12-15 08:43:50.258867212 +0000
|
||||
+++ test/Makefile.in
|
||||
@@ -2156,7 +2156,7 @@ readdir:
|
||||
fi
|
||||
@echo $@
|
||||
@$(AWK) -f $(srcdir)/readdir.awk $(top_srcdir) > _$@
|
||||
- @ls -afli $(top_srcdir) | sed 1d | $(AWK) -f $(srcdir)/readdir0.awk -v extout=_$@ > $@.ok
|
||||
+ @ls -aliUL $(top_srcdir) | sed 1d | $(AWK) -f $(srcdir)/readdir0.awk -v extout=_$@ > $@.ok
|
||||
@-$(CMP) $@.ok _$@ && rm -f $@.ok _$@
|
||||
|
||||
fts:
|
||||
Reference in New Issue
Block a user