Skip to content

Commit

Permalink
devel/luajson: new port
Browse files Browse the repository at this point in the history
Fails tests
  • Loading branch information
czarkoff committed Jun 23, 2015
1 parent 5aff5b7 commit 2f3fdfd
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
27 changes: 27 additions & 0 deletions devel/luajson/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# $OpenBSD$

COMMENT = JSON Parser/Creator for Lua

DISTNAME = luajson-${GH_TAGNAME}
CATEGORIES = devel

HOMEPAGE = http://www.eharning.us/wiki/luajson/

# MIT
PERMIT_PACKAGE_CDROM = Yes

MODULES = lang/lua
RUN_DEPENDS = devel/lpeg,${FLAVOR}
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/luafs,${FLAVOR} \
devel/lunit,${FLAVOR}

GH_ACCOUNT = harningt
GH_PROJECT = luajson
GH_TAGNAME = 1.3.3

TEST_TARGET = check
TEST_FLAGS = LUA_BIN=${MODLUA_BIN}
FAKE_FLAGS = INSTALL_LMOD=${MODLUA_LIBDIR} INSTALL_CMOD=${MODLUA_LIBDIR}

.include <bsd.port.mk>
1 change: 1 addition & 0 deletions devel/luajson/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fails tests
2 changes: 2 additions & 0 deletions devel/luajson/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (luajson-1.3.3.tar.gz) = aphu+iEKkSoEyObK6PO15yFywC+XQVLhSBivZZil4ts=
SIZE (luajson-1.3.3.tar.gz) = 42653
9 changes: 9 additions & 0 deletions devel/luajson/patches/patch-Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$OpenBSD$
--- Makefile.orig Tue Jun 23 23:34:02 2015
+++ Makefile Tue Jun 23 23:34:07 2015
@@ -53,4 +53,4 @@ distcheck: distcheck-zip distcheck-tar

install:
$(MKDIR) $(DESTDIR)$(INSTALL_LMOD)
- cp -p -r lua/* $(DESTDIR)$(INSTALL_LMOD)
+ cp -r lua/* $(DESTDIR)$(INSTALL_LMOD)
3 changes: 3 additions & 0 deletions devel/luajson/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
JSON parser/encoder for Lua Parses JSON using LPEG for speed and flexibility.
Depending on parser/encoder options, various values are preserved as best as
possible.
22 changes: 22 additions & 0 deletions devel/luajson/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@comment $OpenBSD$
lib/lua/${MODLUA_VERSION}/json/
lib/lua/${MODLUA_VERSION}/json.lua
lib/lua/${MODLUA_VERSION}/json/decode/
lib/lua/${MODLUA_VERSION}/json/decode.lua
lib/lua/${MODLUA_VERSION}/json/decode/composite.lua
lib/lua/${MODLUA_VERSION}/json/decode/number.lua
lib/lua/${MODLUA_VERSION}/json/decode/others.lua
lib/lua/${MODLUA_VERSION}/json/decode/state.lua
lib/lua/${MODLUA_VERSION}/json/decode/strings.lua
lib/lua/${MODLUA_VERSION}/json/decode/util.lua
lib/lua/${MODLUA_VERSION}/json/encode/
lib/lua/${MODLUA_VERSION}/json/encode.lua
lib/lua/${MODLUA_VERSION}/json/encode/array.lua
lib/lua/${MODLUA_VERSION}/json/encode/calls.lua
lib/lua/${MODLUA_VERSION}/json/encode/number.lua
lib/lua/${MODLUA_VERSION}/json/encode/object.lua
lib/lua/${MODLUA_VERSION}/json/encode/others.lua
lib/lua/${MODLUA_VERSION}/json/encode/output.lua
lib/lua/${MODLUA_VERSION}/json/encode/output_utility.lua
lib/lua/${MODLUA_VERSION}/json/encode/strings.lua
lib/lua/${MODLUA_VERSION}/json/util.lua

0 comments on commit 2f3fdfd

Please sign in to comment.