Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2017 20:27:14 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r434553 - in head/devel: . lua51-libevent
Message-ID:  <201702212027.v1LKREIw061372@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Tue Feb 21 20:27:14 2017
New Revision: 434553
URL: https://svnweb.freebsd.org/changeset/ports/434553

Log:
  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>

Added:
  head/devel/lua51-libevent/
  head/devel/lua51-libevent/Makefile   (contents, props changed)
  head/devel/lua51-libevent/distinfo   (contents, props changed)
  head/devel/lua51-libevent/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Feb 21 20:12:51 2017	(r434552)
+++ head/devel/Makefile	Tue Feb 21 20:27:14 2017	(r434553)
@@ -1568,6 +1568,7 @@
     SUBDIR += lua-posix
     SUBDIR += lua-pty
     SUBDIR += lua-sysctl
+    SUBDIR += lua51-libevent
     SUBDIR += luabind
     SUBDIR += luafilesystem
     SUBDIR += luafilesystem-51

Added: head/devel/lua51-libevent/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/lua51-libevent/Makefile	Tue Feb 21 20:27:14 2017	(r434553)
@@ -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>

Added: head/devel/lua51-libevent/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/lua51-libevent/distinfo	Tue Feb 21 20:27:14 2017	(r434553)
@@ -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

Added: head/devel/lua51-libevent/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/lua51-libevent/pkg-descr	Tue Feb 21 20:27:14 2017	(r434553)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702212027.v1LKREIw061372>