mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
[NEW] devel/lua-lpeg: Parsing Expression Grammars For Lua
- Additional SLAVE PORT for building with lua 5.1 LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). WWW: http://www.inf.puc-rio.br/~roberto/lpeg/ PR: 196825 Submitted by: olevole@olevole.ru Approved by: bapt marino (implicit)
This commit is contained in:
parent
7df4d719ef
commit
0457cbef5f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=381402
@ -1275,6 +1275,8 @@
|
||||
SUBDIR += lua-cjson
|
||||
SUBDIR += lua-gettext
|
||||
SUBDIR += lua-lgi
|
||||
SUBDIR += lua-lpeg
|
||||
SUBDIR += lua-lpeg51
|
||||
SUBDIR += lua-lunit
|
||||
SUBDIR += lua-posix
|
||||
SUBDIR += lua-pty
|
||||
|
31
devel/lua-lpeg/Makefile
Normal file
31
devel/lua-lpeg/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= lpeg
|
||||
PORTVERSION= 0.12
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.inf.puc-rio.br/~roberto/lpeg/
|
||||
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= olevole@olevole.ru
|
||||
COMMENT= Parsing Expression Grammars For Lua
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES?= lua
|
||||
|
||||
ALL_TARGET= linux
|
||||
MAKEFILE= ${WRKSRC}/makefile
|
||||
|
||||
PLIST_FILES= %%LUA_MODLIBDIR%%/lpeg.so
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e \
|
||||
"s|%%INCDIR%%|${LUA_INCDIR}|" ${WRKSRC}/makefile
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
||||
${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.so ${STAGEDIR}/${LUA_MODLIBDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
devel/lua-lpeg/distinfo
Normal file
2
devel/lua-lpeg/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (lpeg-0.12.tar.gz) = efa545144cd219eee823af7624d90f78c2230677ba740b7151c5d0c303778b76
|
||||
SIZE (lpeg-0.12.tar.gz) = 66649
|
18
devel/lua-lpeg/files/patch-makefile
Normal file
18
devel/lua-lpeg/files/patch-makefile
Normal file
@ -0,0 +1,18 @@
|
||||
--- makefile.orig 2015-01-17 20:16:06.330635290 +0300
|
||||
+++ makefile 2015-01-17 20:16:18.745634849 +0300
|
||||
@@ -1,5 +1,5 @@
|
||||
LIBNAME = lpeg
|
||||
-LUADIR = /usr/include/lua5.1/
|
||||
+LUADIR = %%INCDIR%%
|
||||
|
||||
COPT = -O2
|
||||
# COPT = -DLPEG_DEBUG -g
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
|
||||
-CC = gcc
|
||||
+CC? = gcc
|
||||
|
||||
FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
|
||||
|
4
devel/lua-lpeg/pkg-descr
Normal file
4
devel/lua-lpeg/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
LPeg is a new pattern-matching library for Lua,
|
||||
based on Parsing Expression Grammars (PEGs).
|
||||
|
||||
WWW: http://www.inf.puc-rio.br/~roberto/lpeg/
|
9
devel/lua-lpeg51/Makefile
Normal file
9
devel/lua-lpeg51/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
# $FreeBSD$
|
||||
|
||||
COMMENT= Parsing Expression Grammars For Lua 5.1
|
||||
|
||||
USES= lua:51
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../lua-lpeg
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
Loading…
Reference in New Issue
Block a user