Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/flex/flex-2.5.35-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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