Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

10
devel/flex/DESCR Normal file
View File

@@ -0,0 +1,10 @@
flex is a tool for generating scanners: programs which recognized
lexical patterns in text. flex reads the given input files, or its
standard input if no file names are given, for a description of a
scanner to generate. The description is in the form of pairs of
regular expressions and C code, called rules. flex generates as
output a C source file, lex.yy.c, which defines a routine yylex().
This file is compiled and linked with the -lfl library to produce an
executable. When the executable is run, it analyzes its input for
occurrences of the regular expressions. Whenever it finds one, it
executes the corresponding C code.

38
devel/flex/Makefile Normal file
View File

@@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.38 2012/10/31 11:16:57 asau Exp $
DISTNAME= flex-2.5.36
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://flex.sourceforge.net/
COMMENT= Fast clone of lex(1), the lexical scanner generator
# needed for building flex.pdf, make it an option?
#BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
#BUILD_DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex
#BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
#BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
GNU_CONFIGURE= YES
USE_TOOLS+= gm4:run makeinfo
MAKE_JOBS_SAFE= no
TEST_TARGET= check
INFO_FILES= yes
LIBS.SunOS+= -lm
USE_PKGLOCALEDIR= YES
.include "../../mk/bsd.prefs.mk"
.if ${LOWER_OPSYS} == "aix"
CFLAGS+= -D_LINUX_SOURCE_COMPAT
.endif
#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
USE_LANGUAGES= c c++
USE_TOOLS+= gmake # bmake has problems with the test suite
#.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

32
devel/flex/PLIST Normal file
View File

@@ -0,0 +1,32 @@
@comment $NetBSD: PLIST,v 1.6 2012/08/01 13:12:36 wiz Exp $
bin/flex
bin/flex++
include/FlexLexer.h
info/flex.info
lib/libfl.a
lib/libfl_pic.a
man/man1/flex.1
share/doc/flex/AUTHORS
share/doc/flex/COPYING
share/doc/flex/NEWS
share/doc/flex/ONEWS
share/doc/flex/README
share/doc/flex/README.cvs
share/doc/flex/TODO
share/locale/ca/LC_MESSAGES/flex.mo
share/locale/da/LC_MESSAGES/flex.mo
share/locale/de/LC_MESSAGES/flex.mo
share/locale/es/LC_MESSAGES/flex.mo
share/locale/fi/LC_MESSAGES/flex.mo
share/locale/fr/LC_MESSAGES/flex.mo
share/locale/ga/LC_MESSAGES/flex.mo
share/locale/ko/LC_MESSAGES/flex.mo
share/locale/nl/LC_MESSAGES/flex.mo
share/locale/pl/LC_MESSAGES/flex.mo
share/locale/pt_BR/LC_MESSAGES/flex.mo
share/locale/ro/LC_MESSAGES/flex.mo
share/locale/ru/LC_MESSAGES/flex.mo
share/locale/sv/LC_MESSAGES/flex.mo
share/locale/tr/LC_MESSAGES/flex.mo
share/locale/vi/LC_MESSAGES/flex.mo
share/locale/zh_CN/LC_MESSAGES/flex.mo

14
devel/flex/buildlink3.mk Normal file
View File

@@ -0,0 +1,14 @@
# $NetBSD: buildlink3.mk,v 1.6 2009/03/20 19:24:13 joerg Exp $
#
BUILDLINK_TREE+= flex
.if !defined(FLEX_BUILDLINK3_MK)
FLEX_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.flex+= flex>=2.5.4a
BUILDLINK_PKGSRCDIR.flex?= ../../devel/flex
BUILDLINK_DEPMETHOD.flex?= build
.endif # FLEX_BUILDLINK3_MK
BUILDLINK_TREE+= -flex

10
devel/flex/distinfo Normal file
View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.14 2012/08/01 13:12:36 wiz Exp $
SHA1 (flex-2.5.36.tar.gz) = ba0e59cb23bbaf1ef30b3648981981ae3db1a4d2
RMD160 (flex-2.5.36.tar.gz) = c94b16dd78ba24626f06224b415ca40b52dc8543
Size (flex-2.5.36.tar.gz) = 1584362 bytes
SHA1 (patch-aa) = 938335a9071be62f534bad8e785003318816fd38
SHA1 (patch-ab) = a459d86dce4f93103efde2dbd353db455b0c5e21
SHA1 (patch-ac) = 27ac026f8a180b49523933c5d70db0237e8dc095
SHA1 (patch-ad) = b7fe34269e4425a7b3871278bb6a2b1e754c9045
SHA1 (patch-doc_Makefile.in) = 553176c39c357173286d0d5d5438c9a3ef240cf3

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-aa,v 1.3 2008/02/21 18:57:46 tnn Exp $
--- /dev/null 2008-02-21 19:43:14.000000000 +0100
+++ realloc.c
@@ -0,0 +1,32 @@
+/* rpl_realloc.c -- a replacement for broken realloc implementations
+ Copyright (C) 2001 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#include <stdlib.h>
+
+void *
+rpl_realloc(void *ptr, size_t size)
+{
+ if (!ptr)
+ return malloc(size);
+ if (!size)
+ {
+ if (ptr)
+ free(ptr);
+ return malloc(size);
+ }
+ return realloc(ptr, size);
+}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.4 2012/07/29 19:42:21 wiz Exp $
--- Makefile.in.orig 2012-06-22 21:02:56.000000000 +0000
+++ Makefile.in
@@ -138,7 +138,7 @@ am_flex_OBJECTS = ccl.$(OBJEXT) dfa.$(OB
options.$(OBJEXT) scanopt.$(OBJEXT) buf.$(OBJEXT) \
tables.$(OBJEXT) tables_shared.$(OBJEXT) filter.$(OBJEXT) \
regex.$(OBJEXT)
-flex_OBJECTS = $(am_flex_OBJECTS)
+flex_OBJECTS = $(am_flex_OBJECTS) $(LIBOBJS)
flex_LDADD = $(LDADD)
flex_DEPENDENCIES = lib/libcompat.a
DEFAULT_INCLUDES = -I.@am__isrc@

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ac,v 1.3 2008/05/21 12:54:32 tnn Exp $
--- /dev/null 2008-04-01 06:44:07.000000000 +0200
+++ malloc.c
@@ -0,0 +1,26 @@
+/* rpl_malloc.c -- a replacement for malloc that don't accept 0 size
+ Copyright (C) 2001 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#include <stdlib.h>
+
+void *
+rpl_malloc(size_t size)
+{
+ if (!size)
+ size++;
+ return malloc(size);
+}

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ad,v 1.1 2010/01/31 17:10:08 spz Exp $
--- filter.c.orig 2007-03-07 21:50:24.000000000 +0000
+++ filter.c
@@ -164,7 +164,8 @@ bool filter_apply_chain (struct filter *
if (dup2 (pipes[0], fileno (stdin)) == -1)
flexfatal (_("dup2(pipes[0],0)"));
close (pipes[0]);
- fseek (stdin, 0, SEEK_CUR);
+ ungetc(' ', stdin); /* still an evil hack, but one that works better */
+ (void)fgetc(stdin); /* on NetBSD than the fseek attempt does */
/* run as a filter, either internally or by exec */
if (chain->filter_func) {

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-doc_Makefile.in,v 1.1 2012/08/01 13:12:36 wiz Exp $
Do not build and install pdf documentation.
Too many dependencies for such a low-level package.
(No configure option available to disable this there.)
--- doc/Makefile.in.orig 2012-08-01 13:08:04.000000000 +0000
+++ doc/Makefile.in
@@ -217,7 +217,7 @@ top_srcdir = @top_srcdir@
help2man = @HELP2MAN@
info_TEXINFOS = flex.texi
dist_man_MANS = flex.1
-dist_doc_DATA = flex.pdf
+dist_doc_DATA =
CLEANFILES = \
flex.hks \
flex.ops