luapack-20061124, library for packing and unpacking binary data

ok pedro@
This commit is contained in:
jolan 2006-11-24 18:58:02 +00:00
parent e85f2746c5
commit 7e61af6aa0
5 changed files with 55 additions and 0 deletions

36
devel/luapack/Makefile Normal file
View File

@ -0,0 +1,36 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/24 18:58:02 jolan Exp $
COMMENT= "library for packing and unpacking binary data"
DISTNAME= luapack-20061124
CATEGORIES= devel
MASTER_SITES= http://mirrors.protection.cx/~jolan/
HOMEPAGE= http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
# PD
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
SHARED_ONLY= Yes
BUILD_DEPENDS= ::lang/lua
REGRESS_DEPENDS=::devel/luapack
RUN_DEPENDS= ${BUILD_DEPENDS}
do-build:
${CC} ${CFLAGS} -fPIC -I${LOCALBASE}/include -shared \
${WRKSRC}/lpack.c -o ${WRKDIST}/pack.so
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/lua/5.1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luapack
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/luapack
${INSTALL_DATA} ${WRKBUILD}/pack.so ${PREFIX}/lib/lua/5.1
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/luapack
${INSTALL_DATA} ${WRKSRC}/test.lua ${PREFIX}/share/examples/luapack
do-regress:
lua ${WRKSRC}/test.lua
.include <bsd.port.mk>

4
devel/luapack/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (luapack-20061124.tar.gz) = 026fd8ad462df311797d6d6d3b946770
RMD160 (luapack-20061124.tar.gz) = 9da7db18e684f9777fb5dd1e7467f88b193aeff6
SHA1 (luapack-20061124.tar.gz) = f22ffb841c53a58866acd5d348d0e0de004d4d36
SIZE (luapack-20061124.tar.gz) = 3885

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-test_lua,v 1.1.1.1 2006/11/24 18:58:02 jolan Exp $
--- test.lua.orig Mon Apr 26 22:06:27 2004
+++ test.lua Fri Nov 24 01:25:37 2006
@@ -1,3 +1,4 @@
+require("pack")
bpack=string.pack
bunpack=string.unpack

1
devel/luapack/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
luapack is a Lua library for packing and unpacking binary data.

6
devel/luapack/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/24 18:58:02 jolan Exp $
lib/lua/5.1/pack.so
share/doc/luapack/
share/doc/luapack/README
share/examples/luapack/
share/examples/luapack/test.lua