From owner-dev-commits-ports-main@freebsd.org Sat May 22 11:04:18 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A93E564B196; Sat, 22 May 2021 11:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FnLFt4RRZz4qwm; Sat, 22 May 2021 11:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 813B923155; Sat, 22 May 2021 11:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14MB4I0s019121; Sat, 22 May 2021 11:04:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14MB4Ifm019120; Sat, 22 May 2021 11:04:18 GMT (envelope-from git) Date: Sat, 22 May 2021 11:04:18 GMT Message-Id: <202105221104.14MB4Ifm019120@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: ef0c7ddce0b1 - main - textproc/py-jq: NEW: lightweight and flexible JSON processor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ef0c7ddce0b18552743aaba4f13167826182a349 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 11:04:18 -0000 The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=ef0c7ddce0b18552743aaba4f13167826182a349 commit ef0c7ddce0b18552743aaba4f13167826182a349 Author: Matthias Andree AuthorDate: 2021-05-22 10:18:21 +0000 Commit: Matthias Andree CommitDate: 2021-05-22 11:04:07 +0000 textproc/py-jq: NEW: lightweight and flexible JSON processor --- textproc/py-jq/Makefile | 25 +++++++++++++++++++++++++ textproc/py-jq/distinfo | 3 +++ textproc/py-jq/files/patch-setup.py | 24 ++++++++++++++++++++++++ textproc/py-jq/pkg-descr | 5 +++++ 4 files changed, 57 insertions(+) diff --git a/textproc/py-jq/Makefile b/textproc/py-jq/Makefile new file mode 100644 index 000000000000..45372fc5db5f --- /dev/null +++ b/textproc/py-jq/Makefile @@ -0,0 +1,25 @@ +PORTNAME= jq +PORTVERSION= 1.1.3 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= mandree@FreeBSD.org +COMMENT= jq.py: a lightweight and flexible JSON processor + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libjq.so:textproc/jq \ + libonig.so:devel/oniguruma + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} +BUILD_DEPENDS= ${RUN_DEPENDS} + +USES= localbase python:3.4+ +USE_PYTHON= autoplist distutils + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jq.*.so + +.include diff --git a/textproc/py-jq/distinfo b/textproc/py-jq/distinfo new file mode 100644 index 000000000000..a6397f5fe49e --- /dev/null +++ b/textproc/py-jq/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621674990 +SHA256 (jq-1.1.3.tar.gz) = f9ec1dfa7f9875b04495f3e08e85ee96f37a3b843e5bca738a3300732865dde7 +SIZE (jq-1.1.3.tar.gz) = 71393 diff --git a/textproc/py-jq/files/patch-setup.py b/textproc/py-jq/files/patch-setup.py new file mode 100644 index 000000000000..a2237eb148a5 --- /dev/null +++ b/textproc/py-jq/files/patch-setup.py @@ -0,0 +1,24 @@ +--- setup.py.orig 2021-05-03 13:00:29 UTC ++++ setup.py +@@ -43,8 +43,6 @@ class jq_build_ext(build_ext): + def run(self): + if not os.path.exists(dependency_path(".")): + os.makedirs(dependency_path(".")) +- self._build_oniguruma() +- self._build_libjq() + build_ext.run(self) + + def _build_oniguruma(self): +@@ -103,11 +101,7 @@ jq_extension = Extension( + "jq", + sources=["jq.c"], + include_dirs=[os.path.join(jq_lib_dir, "src")], +- extra_link_args=["-lm"], +- extra_objects=[ +- os.path.join(jq_lib_dir, ".libs/libjq.a"), +- os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"), +- ], ++ extra_link_args=["-lm", "-ljq", "-lonig"], + ) + + setup( diff --git a/textproc/py-jq/pkg-descr b/textproc/py-jq/pkg-descr new file mode 100644 index 000000000000..13ad46f3dcdd --- /dev/null +++ b/textproc/py-jq/pkg-descr @@ -0,0 +1,5 @@ +jq.py: a lightweight and flexible JSON processor + +py-jq contains Python bindings for jq. + +WWW: https://github.com/mwilliamson/jq.py