Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2015 17:41:45 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r400404 - in head/devel: . jsonnet jsonnet/files
Message-ID:  <201510281741.t9SHfjFd049219@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Oct 28 17:41:45 2015
New Revision: 400404
URL: https://svnweb.freebsd.org/changeset/ports/400404

Log:
  Jsonnet is a domain specific configuration language that helps you define JSON
  data. Jsonnet lets you compute fragments of JSON within the structure, bringing
  the same benefit to structured data that templating languages bring to plain
  text. The example below illustrates a few features -- referring to another part
  of the structure, overriding object fields, and string operations.
  
  WWW: https://github.com/google/jsonnet
  
  PR:		200671
  Submitted by:	Gasol Wu <gasol.wu@gmail.com>

Added:
  head/devel/jsonnet/
  head/devel/jsonnet/Makefile   (contents, props changed)
  head/devel/jsonnet/distinfo   (contents, props changed)
  head/devel/jsonnet/files/
  head/devel/jsonnet/files/patch-jsonnet.cpp   (contents, props changed)
  head/devel/jsonnet/files/patch-libjsonnet.cpp   (contents, props changed)
  head/devel/jsonnet/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Oct 28 17:26:41 2015	(r400403)
+++ head/devel/Makefile	Wed Oct 28 17:41:45 2015	(r400404)
@@ -1053,6 +1053,7 @@
     SUBDIR += json-c
     SUBDIR += json-glib
     SUBDIR += jsoncpp
+    SUBDIR += jsonnet
     SUBDIR += jtag
     SUBDIR += judy
     SUBDIR += jwasm

Added: head/devel/jsonnet/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/jsonnet/Makefile	Wed Oct 28 17:41:45 2015	(r400404)
@@ -0,0 +1,31 @@
+# Created by: Gasol Wu <gasol.wu@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	jsonnet
+PORTVERSION=	0.7.6
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+
+MAINTAINER=	gasol.wu@gmail.com
+COMMENT=	JSON data templating language
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	google
+
+USES=		compiler:c++11-lib gmake
+USE_CXXSTD=	c++11
+USE_LDCONFIG=	yes
+
+ALL_TARGET=	jsonnet libjsonnet.so
+CXXFLAGS+=	-fPIC
+PLIST_FILES=	bin/jsonnet include/libjsonnet.h lib/libjsonnet.so
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/lib${PORTNAME}.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
+
+.include <bsd.port.mk>

Added: head/devel/jsonnet/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/jsonnet/distinfo	Wed Oct 28 17:41:45 2015	(r400404)
@@ -0,0 +1,2 @@
+SHA256 (google-jsonnet-v0.7.6_GH0.tar.gz) = e7687bbbb395e11451d4a4eac9101f2f960df40b30475abc96cd62f3c1344b7a
+SIZE (google-jsonnet-v0.7.6_GH0.tar.gz) = 1034707

Added: head/devel/jsonnet/files/patch-jsonnet.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/jsonnet/files/patch-jsonnet.cpp	Wed Oct 28 17:41:45 2015	(r400404)
@@ -0,0 +1,10 @@
+--- jsonnet.cpp.orig	2015-10-28 17:29:36 UTC
++++ jsonnet.cpp
+@@ -14,6 +14,7 @@ See the License for the specific languag
+ limitations under the License.
+ */
+ 
++#include <cerrno>
+ #include <cstdlib>
+ #include <cstring>
+ #include <cassert>

Added: head/devel/jsonnet/files/patch-libjsonnet.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/jsonnet/files/patch-libjsonnet.cpp	Wed Oct 28 17:41:45 2015	(r400404)
@@ -0,0 +1,10 @@
+--- libjsonnet.cpp.orig	2015-06-03 01:28:56 UTC
++++ libjsonnet.cpp
+@@ -14,6 +14,7 @@ See the License for the specific languag
+ limitations under the License.
+ */
+ 
++#include <cerrno>
+ #include <cstdlib>
+ #include <cstring>
+ 

Added: head/devel/jsonnet/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/jsonnet/pkg-descr	Wed Oct 28 17:41:45 2015	(r400404)
@@ -0,0 +1,7 @@
+Jsonnet is a domain specific configuration language that helps you define JSON
+data. Jsonnet lets you compute fragments of JSON within the structure, bringing
+the same benefit to structured data that templating languages bring to plain
+text. The example below illustrates a few features -- referring to another part
+of the structure, overriding object fields, and string operations.
+
+WWW: https://github.com/google/jsonnet



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