]>
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 | 6 | name = flex |
64d634da | 7 | version = 2.5.39 |
ea7896a5 | 8 | release = 2.1 |
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 |
de97dc24 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 | |
166a6c21 | 24 | build process. |
802ea3af MT |
25 | end |
26 | ||
de97dc24 | 27 | source_dl = http://prdownloads.sourceforge.net/flex/ |
802ea3af MT |
28 | |
29 | build | |
30 | requires | |
31 | bison | |
32 | gcc-c++ | |
33 | m4 | |
34 | end | |
35 | ||
db302599 | 36 | keep_libraries = %{libdir}/libfl_pic.a |
6ea90115 | 37 | |
de97dc24 MT |
38 | test |
39 | make check | |
40 | end | |
802ea3af MT |
41 | |
42 | install_cmds | |
43 | echo "#!/bin/sh" > %{BUILDROOT}/usr/bin/lex | |
de1c2204 | 44 | echo "exec /usr/bin/flex -l \"\$@\"" >> %{BUILDROOT}/usr/bin/lex |
802ea3af MT |
45 | chmod 755 %{BUILDROOT}/usr/bin/lex |
46 | end | |
47 | end | |
48 | ||
49 | packages | |
50 | package %{name} | |
51 | requires = m4 | |
52 | end | |
1f9bc2f0 | 53 | |
802ea3af MT |
54 | package %{name}-devel |
55 | template DEVEL | |
56 | end | |
1f9bc2f0 MT |
57 | |
58 | package %{name}-debuginfo | |
59 | template DEBUGINFO | |
60 | end | |
802ea3af | 61 | end |