mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
This is a binding of libevent to Lua. It will serve as a drop-in
replacement for copas, and eventually support more features (async DNS, HTTP, RPC...). WWW: https://github.com/harningt/luaevent PR: 216750 Submitted by: Sir l33tname <sirl33tname@gmail.com>
This commit is contained in:
parent
db1bb10b97
commit
23f142258f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434553
4 changed files with 53 additions and 0 deletions
|
@ -1568,6 +1568,7 @@
|
|||
SUBDIR += lua-posix
|
||||
SUBDIR += lua-pty
|
||||
SUBDIR += lua-sysctl
|
||||
SUBDIR += lua51-libevent
|
||||
SUBDIR += luabind
|
||||
SUBDIR += luafilesystem
|
||||
SUBDIR += luafilesystem-51
|
||||
|
|
44
devel/lua51-libevent/Makefile
Normal file
44
devel/lua51-libevent/Makefile
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Created by: Sir l33tname <sirl33tname@gmail.com>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= lua51
|
||||
PORTVERSION= 0.4.4
|
||||
DISTVERSIONPREFIX=v
|
||||
CATEGORIES= devel
|
||||
PKGNAMESUFFIX= -libevent
|
||||
|
||||
MAINTAINER= sirl33tname@gmail.com
|
||||
COMMENT= Lua libevent binding
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
LIB_DEPENDS= libevent.so:devel/libevent
|
||||
RUN_DEPENDS= ${LUA_MODLIBDIR}/socket/core.so:net/luasocket
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= harningt
|
||||
GH_PROJECT= luaevent
|
||||
|
||||
USES= gmake pkgconfig lua:51
|
||||
|
||||
MAKE_ENV+= INSTALL_DIR_LUA=${LUA_MODSHAREDIR}
|
||||
MAKE_ENV+= INSTALL_DIR_BIN=${LUA_MODLIBDIR}
|
||||
|
||||
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` \
|
||||
`pkgconf --cflags libevent` \
|
||||
-I${LUA_INCDIR}
|
||||
LDFLAGS+= -shared -L${LOCALBASE}/lib \
|
||||
`pkgconf --libs lua-${LUA_VER}` \
|
||||
`pkgconf --libs libevent`
|
||||
|
||||
PLIST_FILES= ${LUA_MODLIBDIR}/luaevent/core.so \
|
||||
${LUA_MODSHAREDIR}/luaevent.lua
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's/CFLAGS[[:blank:]]*=/CFLAGS\+=/g' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e 's/LDFLAGS[[:blank:]]*=/LDFLAGS\+=/g' ${WRKSRC}/Makefile
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/lua51-libevent/distinfo
Normal file
3
devel/lua51-libevent/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1485710369
|
||||
SHA256 (harningt-luaevent-v0.4.4_GH0.tar.gz) = 242c95b9cacd87201aa35ba618eb1cd0b0e2a7d1a8fc6734c0bc06dd742e2455
|
||||
SIZE (harningt-luaevent-v0.4.4_GH0.tar.gz) = 22249
|
5
devel/lua51-libevent/pkg-descr
Normal file
5
devel/lua51-libevent/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
This is a binding of libevent to Lua. It will serve as a drop-in
|
||||
replacement for copas, and eventually support more features (async DNS,
|
||||
HTTP, RPC...).
|
||||
|
||||
WWW: https://github.com/harningt/luaevent
|
Loading…
Add table
Reference in a new issue