pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import lua51-mpack-1.0.2 as wip/lua-mpack.



Module Name:	pkgsrc-wip
Committed By:	Jonathan Buschmann <jonthn+pkgsrc%pinacea.com@localhost>
Pushed By:	jonthn
Date:		Sat Jul 2 01:00:19 2016 +0200
Changeset:	5c1e5b47eee6c976977456736097ee3880ee13b3

Added Files:
	lua-mpack/DESCR
	lua-mpack/Makefile
	lua-mpack/PLIST
	lua-mpack/distinfo

Log Message:
Import lua51-mpack-1.0.2 as wip/lua-mpack.

libmpack is a small binary serialization/RPC library that implements both
the msgpack and msgpack-rpc specifications.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5c1e5b47eee6c976977456736097ee3880ee13b3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lua-mpack/DESCR    |  2 ++
 lua-mpack/Makefile | 33 +++++++++++++++++++++++++++++++++
 lua-mpack/PLIST    |  2 ++
 lua-mpack/distinfo |  6 ++++++
 4 files changed, 43 insertions(+)

diffs:
diff --git a/lua-mpack/DESCR b/lua-mpack/DESCR
new file mode 100644
index 0000000..b3949e7
--- /dev/null
+++ b/lua-mpack/DESCR
@@ -0,0 +1,2 @@
+libmpack is a small binary serialization/RPC library that implements both
+the msgpack and msgpack-rpc specifications.
diff --git a/lua-mpack/Makefile b/lua-mpack/Makefile
new file mode 100644
index 0000000..32e24bf
--- /dev/null
+++ b/lua-mpack/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+DISTNAME=	libmpack-1.0.2
+PKGNAME=	${DISTNAME:S/libmpack/${LUA_PKGPREFIX}-mpack/}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=tarruda/}
+GITHUB_PROJECT=	libmpack
+
+HOMEPAGE=	https://github.com/tarruda/libmpack
+COMMENT=	Simple implementation of msgpack in C
+LICENSE=	mit
+
+USE_LANGUAGES=	c
+
+LUA_VERSIONS_ACCEPTED=	51
+
+INSTALLATION_DIRS+=	${LUA_CDIR}
+
+.include "../../mk/bsd.prefs.mk"
+
+do-build:
+	cd ${WRKSRC}/binding/lua/ && ${CC} -O2 -fPIC -I${PREFIX}/${LUA_INCDIR} -c lmpack.c -o lmpack.o
+.if ${_OPSYS_SHLIB_TYPE} == "dylib"
+	cd ${WRKSRC}/binding/lua/ && ${CC} -bundle -undefined dynamic_lookup -all_load lmpack.o -o mpack.so
+.else
+	cd ${WRKSRC}/binding/lua/ && ${CC} -shared -fPIC lmpack.o -o mpack.so
+.endif
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/binding/lua/mpack.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-mpack/PLIST b/lua-mpack/PLIST
new file mode 100644
index 0000000..a5727bd
--- /dev/null
+++ b/lua-mpack/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+${LUA_CDIR}/mpack.so
diff --git a/lua-mpack/distinfo b/lua-mpack/distinfo
new file mode 100644
index 0000000..feb72d9
--- /dev/null
+++ b/lua-mpack/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
+
+SHA1 (libmpack-1.0.2.tar.gz) = 1cf9c3f98b09ccc70b79c76f06208e0a777d09c5
+RMD160 (libmpack-1.0.2.tar.gz) = 683ca4ce202f60b0c9b4633cebd16f4af1bae371
+SHA512 (libmpack-1.0.2.tar.gz) = 307ae26799e59224dd624d1f5473c86d5cf975155c58b7ccfd17be98321afb0f7235d06a7a2c50112d4630b3cc7c185c9b307007be5cdbd792819ec2991fa3d2
+Size (libmpack-1.0.2.tar.gz) = 44671 bytes


Home | Main Index | Thread Index | Old Index