[Midnightbsd-cvs] mports: mports/textproc: add flex.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jun 22 17:20:48 EDT 2008
Log Message:
-----------
add flex.
Modified Files:
--------------
mports/textproc:
Makefile (r1.101 -> r1.102)
Added Files:
-----------
mports/textproc/flex:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/textproc/Makefile,v
retrieving revision 1.101
retrieving revision 1.102
diff -L textproc/Makefile -L textproc/Makefile -u -r1.101 -r1.102
--- textproc/Makefile
+++ textproc/Makefile
@@ -36,6 +36,7 @@
SUBDIR += etoile-ogrekit
SUBDIR += expat2
SUBDIR += fixrtf
+ SUBDIR += flex
SUBDIR += gdome2
SUBDIR += glimpse
SUBDIR += gnome-doc-utils
--- /dev/null
+++ textproc/flex/pkg-descr
@@ -0,0 +1,13 @@
+Flex is a tool for generating scanners. A scanner, sometimes called a
+tokenizer, is a program which recognizes lexical patterns in text. The
+flex program reads user-specified 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 a C source file named, "lex.yy.c",
+which defines the function yylex(). The file "lex.yy.c" can be compiled
+and linked to produce an executable. When the executable is run, it
+analyzes its input for occurrences of text matching the regular
+expressions for each rule. Whenever it finds a match, it executes the
+corresponding C code.
+
+WWW: http://flex.sourceforge.net/
--- /dev/null
+++ textproc/flex/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: flex
+# Date created: 13 August 2006
+# Whom: Andrew Pantyukhin <infofarmer at FreeBSD.org>
+#
+# $MidnightBSD: mports/textproc/flex/Makefile,v 1.1 2008/06/22 21:20:46 laffer1 Exp $
+# $FreeBSD: ports/textproc/flex/Makefile,v 1.4 2008/02/28 13:24:48 sat Exp $
+#
+
+PORTNAME= flex
+PORTVERSION= 2.5.35
+CATEGORIES= textproc
+MASTER_SITES= SF
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Fast lexical analyzer generator
+LICENSE= other
+
+BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man \
+ gm4:${PORTSDIR}/devel/m4
+
+USE_BISON= build
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-nls
+USE_GMAKE= yes
+MAN1= flex.1
+PLIST_FILES= bin/flex include/FlexLexer.h lib/libfl.a lib/libfl_pic.a
+
+post-patch:
+ @${REINPLACE_CMD} -e 's/install-info-recursive//g;s/info-recursive//g' \
+ -e 's/po //;s/tests//' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's/ install-info-am//' ${WRKSRC}/doc/Makefile.in
+
+.include <bsd.port.mk>
--- /dev/null
+++ textproc/flex/distinfo
@@ -0,0 +1,3 @@
+MD5 (flex-2.5.35.tar.bz2) = 10714e50cea54dc7a227e3eddcd44d57
+SHA256 (flex-2.5.35.tar.bz2) = 0becbd4b2b36b99c67f8c22ab98f7f80c9860aec70f0350a0018f29a88704e7b
+SIZE (flex-2.5.35.tar.bz2) = 1256501
More information about the Midnightbsd-cvs
mailing list