1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= lua52 lua53 lua54
7 SDESC[lua52]= Parsing Expression Grammars for Lua 5.2
8 SDESC[lua53]= Parsing Expression Grammars for Lua 5.3
9 SDESC[lua54]= Parsing Expression Grammars for Lua 5.4
10 HOMEPAGE= https://www.inf.puc-rio.br/~roberto/lpeg/
14 SITES[main]= https://www.inf.puc-rio.br/~roberto/lpeg/
15 DISTFILE[1]= lpeg-1.1.0.tar.gz:main
21 OPTIONS_AVAILABLE= LUA52 LUA53 LUA54
22 OPTIONS_STANDARD= none
23 VOPTS[lua52]= LUA52=ON LUA53=OFF LUA54=OFF
24 VOPTS[lua53]= LUA52=OFF LUA53=ON LUA54=OFF
25 VOPTS[lua54]= LUA52=OFF LUA53=OFF LUA54=ON
30 LICENSE_FILE= MIT:{{WRKDIR}}/LICENSE
33 FPC_EQUIVALENT= devel/lua-lpeg
42 [LUA52].DESCRIPTION= Build with Lua 5.2
43 [LUA52].USES_ON= lua:5.2
45 [LUA53].DESCRIPTION= Build with Lua 5.3
46 [LUA53].USES_ON= lua:5.3
48 [LUA54].DESCRIPTION= Build with Lua 5.4
49 [LUA54].USES_ON= lua:5.4
52 # extract licence from html file
53 ${AWK} '/name="license"/,/id="content"/' ${WRKSRC}/lpeg.html \
54 | ${SED} -e 's/<[^>]*>//g' > ${WRKDIR}/LICENSE
57 ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
58 ${INSTALL_LIB} ${WRKSRC}/lpeg.so ${STAGEDIR}${LUA_MODLIBDIR}
60 [FILE:351:descriptions/desc.single]
61 LPeg is a new pattern-matching library for Lua, based on Parsing
62 Expression Grammars (PEGs). The nice thing about PEGs is that it
63 has a formal basis (instead of being an ad-hoc set of features),
64 allows an efficient and simple implementation, and does most things
65 we expect from a pattern-matching library (and more, as we can
66 define entire grammars).
70 4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a 78042 lpeg-1.1.0.tar.gz
73 [FILE:26:manifests/plist.single]
74 %%LUA_MODLIBDIR%%/lpeg.so
77 [FILE:453:patches/patch-makefile]
78 --- makefile.orig 2023-06-26 16:30:55 UTC
86 # COPT = -O0 -DLPEG_DEBUG -g
87 @@ -25,8 +25,8 @@ CWARNS = -Wall -Wextra -pedantic \
88 # -Wunreachable-code \
91 -CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
93 +CFLAGS += $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
96 FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o lpcset.o