import erl-ej

The ej module makes it easier to work with Erlang terms representing
JSON in the format returned by jiffy, mochijson2, or ejson. You can use
ej:get/2 to walk an object and return a particular value, ej:set/3 to
update a value within an object, or ej:delete/2 to remove a value from
an object.

ok aja@
This commit is contained in:
jasper 2013-03-08 11:53:57 +00:00
parent 431d57e4fc
commit b9ee446350
5 changed files with 64 additions and 0 deletions

36
devel/erl-ej/Makefile Normal file
View File

@ -0,0 +1,36 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/03/08 11:53:57 jasper Exp $
COMMENT= module for working with Erlang terms representing JSON
VERSION= 0.0.2.1
DISTNAME= ej-${VERSION}
PKGNAME= erl-${DISTNAME}
CATEGORIES= devel lang/erlang
HOMEPAGE= https://github.com/seth/ej
# Apache2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://distfiles.nl/
BUILD_DEPENDS= devel/rebar
RUN_DEPENDS= lang/erlang
REGRESS_TARGET= test
ERL_LIBDIR= ${PREFIX}/lib/erlang/lib/${DISTNAME}
SUBST_VARS+= VERSION
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/ej.app.src
do-install:
${INSTALL_DATA_DIR} ${ERL_LIBDIR}/{ebin,include,src}
${INSTALL_DATA} ${WRKSRC}/ebin/*.{app,beam} ${ERL_LIBDIR}/ebin/
${INSTALL_DATA} ${WRKSRC}/include/*.hrl ${ERL_LIBDIR}/include/
${INSTALL_DATA} ${WRKSRC}/src/*.erl ${ERL_LIBDIR}/src/
.include <bsd.port.mk>

2
devel/erl-ej/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (ej-0.0.2.1.tar.gz) = 2G6rbZidmewuYBgVf/9wGAwgJ0LbcY/TOwqhfNOnQ+I=
SIZE (ej-0.0.2.1.tar.gz) = 16913

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_ej_app_src,v 1.1.1.1 2013/03/08 11:53:57 jasper Exp $
--- src/ej.app.src.orig Mon Mar 4 14:57:28 2013
+++ src/ej.app.src Mon Mar 4 14:57:37 2013
@@ -1,7 +1,7 @@
{application, ej,
[
{description, "An Erlang JSON Helper Library"},
- {vsn, git},
+ {vsn, "${VERSION}"},
{registered, []},
{applications, [
kernel,

5
devel/erl-ej/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
The ej module makes it easier to work with Erlang terms representing
JSON in the format returned by jiffy, mochijson2, or ejson. You can use
ej:get/2 to walk an object and return a particular value, ej:set/3 to
update a value within an object, or ej:delete/2 to remove a value from
an object.

9
devel/erl-ej/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/08 11:53:57 jasper Exp $
lib/erlang/lib/ej-${VERSION}/
lib/erlang/lib/ej-${VERSION}/ebin/
lib/erlang/lib/ej-${VERSION}/ebin/ej.app
lib/erlang/lib/ej-${VERSION}/ebin/ej.beam
lib/erlang/lib/ej-${VERSION}/include/
lib/erlang/lib/ej-${VERSION}/include/ej.hrl
lib/erlang/lib/ej-${VERSION}/src/
lib/erlang/lib/ej-${VERSION}/src/ej.erl