From nobody Thu Jun 09 23:34:44 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 87AFC84262F; Thu, 9 Jun 2022 23:34:44 +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 4LK0n03P8Dz4nLD; Thu, 9 Jun 2022 23:34:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654817684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OTzi+7IDFPle7Z82KU3gLjfPw2yUcUbVkGgBL95xm+I=; b=n5/rCklDHtHiCJO9difuIOS23wHUFXgAK5/3DJ0cvbeWmh6bGkjGCnEOZoHolrFywyneMj CX89j5lz8A/ccnkBTRUFsGDL+QKb551onHadCiQvFNSqADR0Pm368G3zQdURyuup/pZ45/ K3QyyXakFdkTn3J1YxPRl11llj6lA1zQMr/HCsCloqh0yWxQ77aSsyzf6hl4Tm9sLzve0a nBFHRflYB9hQNcKQgYM9oELfZi8Ra1L+SijfugIrY058LGHMnLjfyBWb33GMvkj1ZigYp+ 7erIsk71SK83OqYf56+9VBwXvihsYOrMCIyAWx375+sPgBm8pbuvRYZG+0oiXg== 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 45E3158D4; Thu, 9 Jun 2022 23:34:44 +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 259NYiTk070838; Thu, 9 Jun 2022 23:34:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 259NYijj070837; Thu, 9 Jun 2022 23:34:44 GMT (envelope-from git) Date: Thu, 9 Jun 2022 23:34:44 GMT Message-Id: <202206092334.259NYijj070837@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 9f10edecc027 - main - devel/py-lark: Add py-lark 1.1.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f10edecc0273931d628fe778df04d80d1a94279 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654817684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OTzi+7IDFPle7Z82KU3gLjfPw2yUcUbVkGgBL95xm+I=; b=SF4quggO9haLlJJNYfyR0IumKbhz1ovo/LMP54qTBMMKSbnVzckYMrymGS5jUEggvwc3Y9 6r1MlDlGMISa6UTE99swkTGk20ayogWhhCYRg2UnQgNtqgXM2dSQeJJMM74irZ4MKiOnU2 RSwjrsPofrxGaFLPvXVX5DbtL10gnnRwYhCH/eTdcsCspyIpekWo1ZIyCIxpt4KtgPKQHO USFUuizNGZLRicspLa8KsIKM2hdKu0sq1LUGDr0kXZXldHMSHNOz4B7ciTDTCR6KVk9DoW rKaAyz9lAQpl+NRSbncgJRaR2fMeEHvX/uPTB7Sxf5Ik/PT6p2RluA/1LSrwkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654817684; a=rsa-sha256; cv=none; b=Ie02+P5X08473ZYAX8jeU6KlMgCCr2YP3zo44yk/4/bA9iCydbNXm2R9ob1tTAkm9tl45I VX04P6XOtTKGGjSxYlwYaClGIPAUi59CyWkUX1rpy6lslrpNgtpUhgWY0LQFXTgyMiNPoP BFiFXYfXQXBt3w2Ta4mWyPKdQDsgARMT82DkAbpq1QJ5YSYM1roj6AlGMXln2eDr3Cv7fD J83t//RLxp3O+1JJaHcTUL8sCqdN6rI7/H2O+AGmUhxgDslVfj0fXKGrZvfdFJ8XVv1HBU 2/XBp9ZEBwIOF+VCuT+72ciD5b6ex78JKERpCgA+hv1gxsEEfnC32YsvXLRisw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9f10edecc0273931d628fe778df04d80d1a94279 commit 9f10edecc0273931d628fe778df04d80d1a94279 Author: Po-Chuan Hsieh AuthorDate: 2022-06-09 23:32:45 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-09 23:32:45 +0000 devel/py-lark: Add py-lark 1.1.2 ark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity. Lark can parse all context-free languages. To put it simply, it means that it is capable of parsing almost any programming language out there, and to some degree most natural languages too. What can it do? - Parse all context-free grammars, and handle any ambiguity gracefully - Build an annotated parse-tree automagically, no construction code required. - Provide first-rate performance in terms of both Big-O complexity and measured run-time (considering that this is Python ;) - Run on every Python interpreter (it's pure-python) - Generate a stand-alone parser (for LALR(1) grammars) - And many more features. Read ahead and find out! Most importantly, Lark will save you time and prevent you from getting parsing headaches. WWW: https://github.com/lark-parser/lark --- devel/Makefile | 1 + devel/py-lark/Makefile | 30 ++++++++++++++++++++++++++++++ devel/py-lark/distinfo | 3 +++ devel/py-lark/pkg-descr | 20 ++++++++++++++++++++ 4 files changed, 54 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d2d6b4771d85..7bfde6d375e9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4749,6 +4749,7 @@ SUBDIR += py-kitchen SUBDIR += py-knack SUBDIR += py-l18n + SUBDIR += py-lark SUBDIR += py-lark-parser SUBDIR += py-launchpadlib SUBDIR += py-lazr.config diff --git a/devel/py-lark/Makefile b/devel/py-lark/Makefile new file mode 100644 index 000000000000..a5a7168969e9 --- /dev/null +++ b/devel/py-lark/Makefile @@ -0,0 +1,30 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= lark +PORTVERSION= 1.1.2 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Modern parsing library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= ATOMIC_CACHE NEARLEY REGEX +OPTIONS_DEFAULT=ATOMIC_CACHE REGEX +ATOMIC_CACHE_DESC= Multiprocess caching and crash recovery support +NEARLEY_DESC= Import grammars from Nearley.js +REGEX_DESC= Use third-party regex instead of standard library re + +ATOMIC_CACHE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}atomicwrites>=0:devel/py-atomicwrites@${PY_FLAVOR} +NEARLEY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Js2Py>=0:devel/py-Js2Py@${PY_FLAVOR} +REGEX_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}regex>=0:textproc/py-regex@${PY_FLAVOR} + +.include diff --git a/devel/py-lark/distinfo b/devel/py-lark/distinfo new file mode 100644 index 000000000000..c862c4b8b14b --- /dev/null +++ b/devel/py-lark/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654805366 +SHA256 (lark-1.1.2.tar.gz) = 7a8d0c07d663da9391d7faee1bf1d7df4998c47ca43a593cbef5c7566acd057a +SIZE (lark-1.1.2.tar.gz) = 243201 diff --git a/devel/py-lark/pkg-descr b/devel/py-lark/pkg-descr new file mode 100644 index 000000000000..faa89427aaba --- /dev/null +++ b/devel/py-lark/pkg-descr @@ -0,0 +1,20 @@ +ark is a parsing toolkit for Python, built with a focus on ergonomics, +performance and modularity. + +Lark can parse all context-free languages. To put it simply, it means that it is +capable of parsing almost any programming language out there, and to some degree +most natural languages too. + +What can it do? +- Parse all context-free grammars, and handle any ambiguity gracefully +- Build an annotated parse-tree automagically, no construction code required. +- Provide first-rate performance in terms of both Big-O complexity and measured + run-time (considering that this is Python ;) +- Run on every Python interpreter (it's pure-python) +- Generate a stand-alone parser (for LALR(1) grammars) +- And many more features. Read ahead and find out! + +Most importantly, Lark will save you time and prevent you from getting parsing +headaches. + +WWW: https://github.com/lark-parser/lark