From owner-svn-ports-head@freebsd.org Wed Oct 28 18:05:05 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81E0DA1F356; Wed, 28 Oct 2015 18:05:05 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 32B99177A; Wed, 28 Oct 2015 18:05:05 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9SI54MZ055806; Wed, 28 Oct 2015 18:05:04 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9SI53Nd055800; Wed, 28 Oct 2015 18:05:03 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201510281805.t9SI53Nd055800@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Wed, 28 Oct 2015 18:05:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400405 - in head/devel: . pecl-jsonnet pecl-jsonnet/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 18:05:05 -0000 Author: pawel Date: Wed Oct 28 18:05:03 2015 New Revision: 400405 URL: https://svnweb.freebsd.org/changeset/ports/400405 Log: The Google JsonNet for PHP. Jsonnet language, from its most basic features to its powerful object model, punctuated with examples drawn from the world of cocktails. These examples are meant to be fun, and although a little contrived, do not restrict our thinking to any one particular application of Jsonnet. WWW: https://pecl.php.net/package/jsonnet PR: 200676 Submitted by: Gasol Wu Added: head/devel/pecl-jsonnet/ head/devel/pecl-jsonnet/Makefile (contents, props changed) head/devel/pecl-jsonnet/distinfo (contents, props changed) head/devel/pecl-jsonnet/files/ head/devel/pecl-jsonnet/files/patch-config.m4 (contents, props changed) head/devel/pecl-jsonnet/files/patch-jsonnet.c (contents, props changed) head/devel/pecl-jsonnet/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed Oct 28 17:41:45 2015 (r400404) +++ head/devel/Makefile Wed Oct 28 18:05:03 2015 (r400405) @@ -3668,6 +3668,7 @@ SUBDIR += pecl-jsmin SUBDIR += pecl-jsonc SUBDIR += pecl-jsond + SUBDIR += pecl-jsonnet SUBDIR += pecl-judy SUBDIR += pecl-libevent SUBDIR += pecl-mcve Added: head/devel/pecl-jsonnet/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-jsonnet/Makefile Wed Oct 28 18:05:03 2015 (r400405) @@ -0,0 +1,26 @@ +# Created by: Gasol Wu +# $FreeBSD$ + +PORTNAME= jsonnet +PORTVERSION= 1.0.0 +CATEGORIES= devel +MASTER_SITES= http://pecl.php.net/get/ +PKGNAMEPREFIX= pecl- +DISTNAME= JsonNet-${PORTVERSION} +DIST_SUBDIR= PECL + +MAINTAINER= gasol.wu@gmail.com +COMMENT= Google JsonNet for PHP + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libjsonnet.so:${PORTSDIR}/devel/jsonnet + +USES= tar:tgz +USE_PHP= json +USE_PHPEXT= yes +USE_PHP_BUILD= yes +CONFIGURE_ARGS= --with-jsonnet=${LOCALBASE} + +.include Added: head/devel/pecl-jsonnet/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-jsonnet/distinfo Wed Oct 28 18:05:03 2015 (r400405) @@ -0,0 +1,2 @@ +SHA256 (PECL/JsonNet-1.0.0.tgz) = 40b3c193d53f23feae84c5b3c7b4ffc9c9ea4be116877d01612418f7d78ebcb7 +SIZE (PECL/JsonNet-1.0.0.tgz) = 66922 Added: head/devel/pecl-jsonnet/files/patch-config.m4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-jsonnet/files/patch-config.m4 Wed Oct 28 18:05:03 2015 (r400405) @@ -0,0 +1,34 @@ +--- config.m4.orig 2015-06-05 23:06:29 UTC ++++ config.m4 +@@ -53,13 +53,9 @@ AC_DEFUN([AC_JSONNET_EPOLL], + ]) + + if test "$PHP_JSONNET" != "no"; then +- cd libjsonnet +- make libjsonnet.so +- cd ../ +- + # --with-jsonnet -> check with-path + SEARCH_PATH="/usr/lib/jsonnet" +- SEARCH_FOR="libjsonnet.h" ++ SEARCH_FOR="include/libjsonnet.h" + if test -r $PHP_JSONNET/$SEARCH_FOR; then # path given as parameter + JSONNET_DIR=$PHP_JSONNET + else # search default path list +@@ -78,13 +74,12 @@ if test "$PHP_JSONNET" != "no"; then + fi + + # --with-jsonnet -> add include path +- PHP_ADD_INCLUDE($JSONNET_DIR) ++ PHP_ADD_INCLUDE($JSONNET_DIR/include) + + # --with-jsonnet -> check for lib and symbol presence + +- PHP_ADD_INCLUDE($JSONNET_DIR) +- PHP_EVAL_LIBLINE($JSONNET_DIR, JSONNET_SHARED_LIBADD) +- PHP_ADD_LIBRARY_WITH_PATH(jsonnet, $JSONNET_DIR, JSONNET_SHARED_LIBADD) ++ PHP_EVAL_LIBLINE($JSONNET_DIR/lib, JSONNET_SHARED_LIBADD) ++ PHP_ADD_LIBRARY_WITH_PATH(jsonnet, $JSONNET_DIR/lib, JSONNET_SHARED_LIBADD) + + AC_JSONNET_EPOLL() + Added: head/devel/pecl-jsonnet/files/patch-jsonnet.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-jsonnet/files/patch-jsonnet.c Wed Oct 28 18:05:03 2015 (r400405) @@ -0,0 +1,11 @@ +--- jsonnet.c.orig 2015-06-05 23:08:06 UTC ++++ jsonnet.c +@@ -128,7 +128,7 @@ PHP_MINFO_FUNCTION(jsonnet) + { + php_info_print_table_start(); + php_info_print_table_header(2, "JsonNet support", "Enabled"); +- php_info_print_table_row(2, "jsonnet Information", JSONNET_VERSION); ++ php_info_print_table_row(2, "jsonnet Information", jsonnet_version()); + php_info_print_table_row(2, "Version", JSONNET_PHP_VERSION); + php_info_print_table_row(2, "Author", JSONNET_PHP_AUTHOR); + php_info_print_table_row(2,"Supports", "https://github.com/Neeke/JsonNet"); Added: head/devel/pecl-jsonnet/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-jsonnet/pkg-descr Wed Oct 28 18:05:03 2015 (r400405) @@ -0,0 +1,8 @@ +The Google JsonNet for PHP. + +Jsonnet language, from its most basic features to its powerful object model, +punctuated with examples drawn from the world of cocktails. These examples are +meant to be fun, and although a little contrived, do not restrict our thinking +to any one particular application of Jsonnet. + +WWW: https://pecl.php.net/package/jsonnet