Contents of /smage/trunk/core/flex/flex-2.5.35-r5.smage2
Parent Directory | Revision Log
Revision 1768 -
(show annotations)
(download)
Mon Sep 19 11:00:11 2011 UTC (13 years ago) by niro
File size: 994 byte(s)
Mon Sep 19 11:00:11 2011 UTC (13 years ago) by niro
File size: 994 byte(s)
auto added: ver bump to 2.5.35-r5
1 | # $Id$ |
2 | |
3 | PNAME="flex" |
4 | PVER="2.5.35" |
5 | PBUILD="r5" |
6 | |
7 | PCATEGORIE="sys-dev" |
8 | |
9 | DESCRIPTION="GNU fast lexical analyser generator." |
10 | HOMEPAGE="http://flex.sourceforge.net/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= sys-dev/bison-2" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools multilib |
19 | |
20 | SRC_URI=( |
21 | sourceforge://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd ${HOMEPAGE} | grep version | sed 's/.* version \(.*\) i.*/\1/;q'" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | |
31 | # do not regenerate the man page |
32 | all-abis touch '${SRCDIR}-${abi}'/doc/flex.1 || die |
33 | } |
34 | |
35 | src_compile() |
36 | { |
37 | mconfigure || die |
38 | |
39 | # flex doesn't compiles sometimes with > -j1 |
40 | mmake -j1 || die |
41 | } |
42 | |
43 | src_install() |
44 | { |
45 | # needed directory |
46 | minstalldir /usr/share/man/man1 || die |
47 | |
48 | minstall_destdir || die |
49 | |
50 | all-abis mlink libfl.a /usr/'$(mlibdir)'/libl.a || die |
51 | |
52 | cat > ${BINDIR}/usr/bin/lex << "EOF" |
53 | #!/bin/sh |
54 | exec /usr/bin/flex -l "$@" |
55 | EOF |
56 | |
57 | mchmod 755 /usr/bin/lex || die |
58 | } |