]>
Commit | Line | Data |
---|---|---|
166a6c21 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
166a6c21 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = flex |
7 | version = 2.5.35 | |
8 | release = 2 | |
166a6c21 | 9 | |
802ea3af MT |
10 | groups = Development/Tools |
11 | url = http://flex.sourceforge.net/ | |
12 | license = BSD | |
13 | summary = A tool for creating scanners (text pattern recognizers). | |
166a6c21 | 14 | |
802ea3af | 15 | description |
166a6c21 MT |
16 | The flex program generates scanners. Scanners are programs which can \ |
17 | recognize lexical patterns in text. Flex takes pairs of regular \ | |
18 | expressions and C code as input and generates a C source file as \ | |
19 | output. The output file is compiled and linked with a library to \ | |
20 | produce an executable. The executable searches through its input for \ | |
21 | occurrences of the regular expressions. When a match is found, it \ | |
22 | executes the corresponding C code. Flex was designed to work with \ | |
23 | both Yacc and Bison, and is used by many programs as part of their \ | |
24 | build process. | |
802ea3af MT |
25 | end |
26 | ||
27 | source_dl = | |
28 | sources = %{thisapp}.tar.bz2 | |
29 | ||
30 | build | |
31 | requires | |
32 | bison | |
33 | gcc-c++ | |
34 | m4 | |
35 | end | |
36 | ||
37 | configure_options += \ | |
38 | --mandir=/usr/share/man | |
39 | ||
40 | test | |
41 | make check | |
42 | end | |
43 | ||
44 | install_cmds | |
45 | echo "#!/bin/sh" > %{BUILDROOT}/usr/bin/lex | |
46 | echo "exec /usr/bin/flex -l \"$$@\"" >> %{BUILDROOT}/usr/bin/lex | |
47 | chmod 755 %{BUILDROOT}/usr/bin/lex | |
48 | end | |
49 | end | |
50 | ||
51 | packages | |
52 | package %{name} | |
53 | requires = m4 | |
54 | end | |
55 | ||
56 | package %{name}-devel | |
57 | template DEVEL | |
58 | end | |
59 | end |