From owner-svn-ports-head@freebsd.org Sun Nov 1 09:13:16 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 82A62A23E3E; Sun, 1 Nov 2015 09:13:16 +0000 (UTC) (envelope-from pi@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 5216D15BB; Sun, 1 Nov 2015 09:13:16 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tA19DFkx022268; Sun, 1 Nov 2015 09:13:15 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tA19DEOO022261; Sun, 1 Nov 2015 09:13:14 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201511010913.tA19DEOO022261@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sun, 1 Nov 2015 09:13:14 +0000 (UTC) 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 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: Sun, 01 Nov 2015 09:13:16 -0000 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 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 +# $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 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