Date: Sun, 1 Nov 2015 09:13:14 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400601 - in head/devel: . php-jq php-jq/files Message-ID: <201511010913.tA19DEOO022261@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Sun Nov 1 09:13:14 2015 New Revision: 400601 URL: https://svnweb.freebsd.org/changeset/ports/400601 Log: jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. WWW: https://github.com/kjdev/php-ext-jq PR: 200438 Submitted by: Gasol Wu <gasol.wu@gmail.com> Added: head/devel/php-jq/ head/devel/php-jq/Makefile (contents, props changed) head/devel/php-jq/distinfo (contents, props changed) head/devel/php-jq/files/ head/devel/php-jq/files/patch-config.m4 (contents, props changed) head/devel/php-jq/files/patch-jq.c (contents, props changed) head/devel/php-jq/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Nov 1 08:57:18 2015 (r400600) +++ head/devel/Makefile Sun Nov 1 09:13:14 2015 (r400601) @@ -3714,6 +3714,7 @@ SUBDIR += phabricator SUBDIR += php-Psr_Log SUBDIR += php-composer + SUBDIR += php-jq SUBDIR += php-libawl SUBDIR += php-memoize SUBDIR += php-scalar_objects Added: head/devel/php-jq/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-jq/Makefile Sun Nov 1 09:13:14 2015 (r400601) @@ -0,0 +1,30 @@ +# Created by: Gasol Wu <gasol.wu@gmail.com> +# $FreeBSD$ + +PORTNAME= jq +PORTVERSION= 0.0.1 +CATEGORIES= devel +PKGNAMEPREFIX= php- + +MAINTAINER= gasol.wu@gmail.com +COMMENT= Jq shared extension for php + +LICENSE= MIT + +LIB_DEPENDS= libjq.so:${PORTSDIR}/textproc/jq + +USE_GITHUB= yes +GH_ACCOUNT= kjdev +GH_PROJECT= php-ext-jq + +USE_PHP= yes +USE_PHPIZE= yes +USE_PHPEXT= yes +USES= tar:tgz + +JQ_CMD= ${LOCALBASE}/bin/jq + +pre-build: + (${JQ_CMD} -V | ${SED} 's,jq-\(.*\),#define JQ_VERSION "\1",' >> ${WRKSRC}/version.h) + +.include <bsd.port.mk> Added: head/devel/php-jq/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-jq/distinfo Sun Nov 1 09:13:14 2015 (r400601) @@ -0,0 +1,2 @@ +SHA256 (kjdev-php-ext-jq-0.0.1_GH0.tgz) = 084ef608e37551d75957dcf3870c3f8b056941693e65127eb4ca388869087f5b +SIZE (kjdev-php-ext-jq-0.0.1_GH0.tgz) = 615397 Added: head/devel/php-jq/files/patch-config.m4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-jq/files/patch-config.m4 Sun Nov 1 09:13:14 2015 (r400601) @@ -0,0 +1,17 @@ +--- config.m4.orig 2014-11-20 06:16:09 UTC ++++ config.m4 +@@ -32,11 +32,12 @@ PHP_ARG_ENABLE(jq, whether to enable jq + if test "$PHP_JQ" != "no"; then + + dnl Source jq +- PHP_ADD_INCLUDE("jq/") ++ PHP_ADD_INCLUDE("/usr/local/include") ++ PHP_ADD_LIBRARY("jq") + JQ_SOURCE="jq/locfile.c jq/bytecode.c jq/compile.c jq/execute.c jq/builtin.c jq/jv.c jq/jv_parse.c jq/jv_print.c jq/jv_dtoa.c jq/jv_unicode.c jq/jv_aux.c jq/jv_file.c jq/jv_alloc.c jq/lexer.c jq/parser.c" + + dnl PHP Extension +- PHP_NEW_EXTENSION(jq, jq.c $JQ_SOURCE, $ext_shared) ++ PHP_NEW_EXTENSION(jq, jq.c, $ext_shared) + fi + + dnl coverage Added: head/devel/php-jq/files/patch-jq.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-jq/files/patch-jq.c Sun Nov 1 09:13:14 2015 (r400601) @@ -0,0 +1,13 @@ +--- jq.c.orig 2014-11-20 06:16:09 UTC ++++ jq.c +@@ -10,8 +10,8 @@ + + #include "php_jq.h" + +-#include "jq/jq.h" +-#include "jq/version.h" ++#include "jq.h" ++#include "version.h" + + ZEND_DECLARE_MODULE_GLOBALS(jq) + Added: head/devel/php-jq/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-jq/pkg-descr Sun Nov 1 09:13:14 2015 (r400601) @@ -0,0 +1,5 @@ +jq is like sed for JSON data - you can use it to slice and filter +and map and transform structured data with the same ease that sed, +awk, grep and friends let you play with text. + +WWW: https://github.com/kjdev/php-ext-jq
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511010913.tA19DEOO022261>