Date: Wed, 28 Oct 2015 18:05:03 +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: r400405 - in head/devel: . pecl-jsonnet pecl-jsonnet/files Message-ID: <201510281805.t9SI53Nd055800@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <gasol.wu@gmail.com> 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 <gasol.wu@gmail.com> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510281805.t9SI53Nd055800>