pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(devel/flex) Add New directory for candicate of flex-2.6.1



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara <makoto%ki.nu@localhost>
Pushed By:	mef
Date:		Fri Aug 12 19:25:25 2016 +0900
Changeset:	812886e6888e1e0c001873b7fd37585721e836da

Added Files:
	flex/DESCR
	flex/Makefile
	flex/PLIST
	flex/TODO
	flex/buildlink3.mk
	flex/distinfo
	flex/patches/patch-src_Makefile.am
	flex/patches/patch-tests_Makefile.am

Log Message:
(devel/flex) Add New directory for candicate of flex-2.6.1

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=812886e6888e1e0c001873b7fd37585721e836da

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 flex/DESCR                           | 10 ++++++++
 flex/Makefile                        | 46 ++++++++++++++++++++++++++++++++++++
 flex/PLIST                           | 36 ++++++++++++++++++++++++++++
 flex/TODO                            |  2 ++
 flex/buildlink3.mk                   | 14 +++++++++++
 flex/distinfo                        |  8 +++++++
 flex/patches/patch-src_Makefile.am   | 15 ++++++++++++
 flex/patches/patch-tests_Makefile.am | 31 ++++++++++++++++++++++++
 8 files changed, 162 insertions(+)

diffs:
diff --git a/flex/DESCR b/flex/DESCR
new file mode 100644
index 0000000..554b10b
--- /dev/null
+++ b/flex/DESCR
@@ -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.
diff --git a/flex/Makefile b/flex/Makefile
new file mode 100644
index 0000000..a6ee80e
--- /dev/null
+++ b/flex/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.50 2016/08/11 03:23:44 mef Exp $
+
+VERSION=	2.6.1
+DISTNAME=	flex-${VERSION}
+CATEGORIES=	devel lang
+MASTER_SITES=	${MASTER_SITE_GITHUB:=westes/}
+GITHUB_TAG=	v${VERSION}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/westes/flex
+COMMENT=	Fast clone of lex(1), the lexical scanner generator
+LICENSE=	2-clause-bsd
+
+USE_LIBTOOL=		yes
+USE_PKGLOCALEDIR=	yes
+USE_TOOLS+=		gm4:run	automake autoconf makeinfo gettext
+GNU_CONFIGURE=		yes
+INFO_FILES=		yes
+
+TEST_TARGET=		check
+LIBS.SunOS+=		-lm
+
+BUILD_DEPENDS+=		help2man-[0-9]*:../../converters/help2man
+BUILD_DEPENDS+=		bison-[0-9]*:../../devel/bison
+
+.include "../../mk/bsd.prefs.mk"
+
+CFLAGS.AIX+=		-D_LINUX_SOURCE_COMPAT
+
+.if ${OS_VARIANT} == "SCOOSR5"
+LDFLAGS.SCO_SV+=	-lsocket
+.endif
+
+#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
+USE_LANGUAGES=		c c++
+USE_TOOLS+=		bash:build
+REPLACE_BASH=		tests/testwrapper.sh tests/options.cn
+USE_TOOLS+=		gmake	# bmake has problems with the test suite
+#.endif
+
+pre-configure:
+	(cd ${WRKSRC}; ./autogen.sh)
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/gettext-tools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/flex/PLIST b/flex/PLIST
new file mode 100644
index 0000000..11c314f
--- /dev/null
+++ b/flex/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.10 2016/08/11 03:23:44 mef Exp $
+bin/flex
+bin/flex++
+include/FlexLexer.h
+info/flex.info
+lib/libfl.la
+lib/libfl_pic.la
+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/locale/ca/LC_MESSAGES/flex.mo
+share/locale/da/LC_MESSAGES/flex.mo
+share/locale/de/LC_MESSAGES/flex.mo
+share/locale/en@boldquot/LC_MESSAGES/flex.mo
+share/locale/en@quot/LC_MESSAGES/flex.mo
+share/locale/eo/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/hr/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/sr/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
+share/locale/zh_TW/LC_MESSAGES/flex.mo
diff --git a/flex/TODO b/flex/TODO
new file mode 100644
index 0000000..8bc2d1d
--- /dev/null
+++ b/flex/TODO
@@ -0,0 +1,2 @@
+- Bison is required without pre generated files
+  but Bison needs (this) flex, so introducing cyclic dependency
diff --git a/flex/buildlink3.mk b/flex/buildlink3.mk
new file mode 100644
index 0000000..517bf9c
--- /dev/null
+++ b/flex/buildlink3.mk
@@ -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
diff --git a/flex/distinfo b/flex/distinfo
new file mode 100644
index 0000000..19ba6ec
--- /dev/null
+++ b/flex/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.23 2016/08/11 03:23:44 mef Exp $
+
+SHA1 (flex-2.6.1.tar.gz) = c99b9217dc13bc78eef3a503fc93608d113ddcad
+RMD160 (flex-2.6.1.tar.gz) = 497c257bff161300e80f0997987d250882db15a4
+SHA512 (flex-2.6.1.tar.gz) = d458822621d47472a9074e03883a9df7f6c329303debc8f03bd98617536e2c7e11afd990386cec9a4e9674cc1fc9bfa4ead45e67b72c680aab3c5626086f4c1c
+Size (flex-2.6.1.tar.gz) = 591026 bytes
+SHA1 (patch-src_Makefile.am) = 42fb784f188d44fe6c6125fd0ae117e3720e0038
+SHA1 (patch-tests_Makefile.am) = 35aeea5d02c8ce021e5d767eb311e40b6a4089a4
diff --git a/flex/patches/patch-src_Makefile.am b/flex/patches/patch-src_Makefile.am
new file mode 100644
index 0000000..88b11ee
--- /dev/null
+++ b/flex/patches/patch-src_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.am,v 1.2 2016/08/11 03:23:44 mef Exp $
+
+parse.h should be created before main.c is compiled
+
+--- src/Makefile.am.orig	2016-03-02 09:24:24.000000000 +0900
++++ src/Makefile.am	2016-08-11 11:29:09.000000000 +0900
+@@ -103,7 +103,7 @@ gen.o: gen.c flexdef.h flexint.h tables.
+ libmain.o: libmain.c
+ libyywrap.o: libyywrap.c
+ main.o: main.c flexdef.h flexint.h version.h options.h scanopt.h \
+- tables.h tables_shared.h
++ tables.h tables_shared.h parse.h
+ misc.o: misc.c flexdef.h flexint.h tables.h tables_shared.h
+ nfa.o: nfa.c flexdef.h flexint.h
+ options.o: options.c options.h scanopt.h flexdef.h flexint.h
diff --git a/flex/patches/patch-tests_Makefile.am b/flex/patches/patch-tests_Makefile.am
new file mode 100644
index 0000000..8172e8d
--- /dev/null
+++ b/flex/patches/patch-tests_Makefile.am
@@ -0,0 +1,31 @@
+$NetBSD: patch-tests_Makefile.am,v 1.1 2016/08/11 03:23:44 mef Exp $
+
+Disable bison tests since we don't want to build with bison
+to avoid a dependency cycle, since bison depends on flex.
+
+ bison_yylloc_main.$(OBJEXT): bison_yylloc_parser.h bison_yylloc_scanner.h
+--- tests/Makefile.am.orig	2016-03-02 09:24:24.000000000 +0900
++++ tests/Makefile.am	2016-08-11 12:17:05.000000000 +0900
+@@ -64,9 +64,6 @@ simple_tests = \
+ 	array_r \
+ 	basic_nr \
+ 	basic_r \
+-	bison_nr \
+-	bison_yylloc \
+-	bison_yylval \
+ 	c_cxx_nr \
+ 	c_cxx_r \
+ 	ccl \
+@@ -170,12 +167,6 @@ top_SOURCES = top.l top_main.c
+ yyextra_SOURCES = yyextra.l
+ 
+ BUILT_SOURCES = \
+-	bison_nr_parser.h \
+-	bison_nr_scanner.h \
+-	bison_yylloc_parser.h \
+-	bison_yylloc_scanner.h \
+-	bison_yylval_parser.h \
+-	bison_yylval_scanner.h \
+ 	header_nr_scanner.h \
+ 	header_r_scanner.h \
+ 	multiple_scanners_nr_1.h \


Home | Main Index | Thread Index | Old Index