Contents of /trunk/core/flex/flex-2.5.33-r3.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1099 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1099 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/flex/flex-2.5.33-r3.smage2,v 1.1 2008/02/14 13:26:19 niro Exp $ |
2 | |
3 | PNAME="flex" |
4 | PVER="2.5.33" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="sys-dev" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="GNU lexical analyser generator" |
11 | HOMEPAGE="http://lex.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 | sminclude gnuconfig multilib mtools |
20 | |
21 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
22 | |
23 | src_prepare() |
24 | { |
25 | munpack ${SRCFILE} || die |
26 | |
27 | # add updated config.{sub,guess} for xxx-pc-linux-uclibc target |
28 | all-abis gnuconfig-update '${SRCDIR}-${abi}' || die |
29 | |
30 | # do not regenerate the man page |
31 | all-abis touch '${SRCDIR}-${abi}'/doc/flex.1 || die |
32 | } |
33 | |
34 | src_compile() |
35 | { |
36 | mconfigure || die |
37 | |
38 | # flex doesn't compiles sometimes with > -j1 |
39 | mmake -j1 || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | # needed directory |
45 | minstalldir /usr/share/man/man1 || die |
46 | |
47 | minstall_destdir || die |
48 | |
49 | all-abis mlink libfl.a /usr/'$(mlibdir)'/libl.a || die |
50 | |
51 | cat > ${BINDIR}/usr/bin/lex << "EOF" |
52 | #!/bin/sh |
53 | exec /usr/bin/flex -l "$@" |
54 | EOF |
55 | |
56 | mchmod 755 /usr/bin/lex || die |
57 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |