Magellan Linux

Annotation of /trunk/core/flex/flex-2.6.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33375 - (hide annotations) (download)
Thu Jul 13 15:09:17 2023 UTC (11 months ago) by niro
File size: 879 byte(s)
-added missing mbuild
1 niro 33372 # $Id$
2    
3     PNAME="flex"
4     PVER="2.6.4"
5     PBUILD="r2"
6    
7     PCAT="sys-dev"
8    
9     DESCRIPTION="GNU fast lexical analyser generator."
10     HOMEPAGE="https://github.com/westes/flex/releases"
11    
12     DEPEND=">= virtual/glibc
13     >= sys-dev/m4-1.4"
14    
15     SDEPEND=">= sys-dev/bison-3.8"
16    
17     SRCFILE="${PNAME}-${PVER}.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     # one check fails: cxx_restarts
21     msetfeature "!check"
22    
23 niro 33375 sminclude mtools mbuild multilib
24 niro 33372
25     SRC_URI=(
26     https://github.com/westes/${PNAME}/releases/download/v${PVER}/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     )
29    
30     UP2DATE="updatecmd -nolist https://github.com/westes/flex/releases | highesttarball gz"
31    
32     src_compile()
33     {
34     mconfigure || die
35    
36     # prevent excessive overlinking due to libtool
37     all-abis "sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die"
38    
39     mmake || die
40     }
41    
42     src_install()
43     {
44     mmake DESTDIR=${BINDIR} install || die
45     mlink flex /usr/bin/lex || die
46     }