From patchwork Sun Oct 6 23:59:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 68665 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E2DF627BBEA; Mon, 7 Oct 2024 01:02:51 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6A88427BBE2 for ; Mon, 7 Oct 2024 01:02:51 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxbCa-0005FG-F5; Sun, 06 Oct 2024 20:02:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxbCU-0005BL-QF for guix-patches@gnu.org; Sun, 06 Oct 2024 20:02:11 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxbCS-00018h-1d for guix-patches@gnu.org; Sun, 06 Oct 2024 20:02:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=rjFWn5ydRxJOVAA93S+9KJ4XQIuXCpaymnISsWy+6LU=; b=MITQIzW3OuLiadSJTK/nf5NVtjrTufoWAbZYcpWu24luG1iiLfwYl6jRsT4xzr3aucyecvDka669b3Y82OUQmiUWPpIVGGutQwTTlbanQ8NtENoV9viDSytNpcLMdXesyO7zn5nq1r0K0qYHe3tByqBV1+yZz6Jz6n45fwAfqV8HFkMck80klsi0mKBVmWXKHVfff0s6cZkGRq34Ozaa0BW254uWtmVkbG0QG3ZMPSQ9dZMtcHCwmqgo7TJCDK3r5jdc1lClNJUaow7CoWq6GDauUWBLKbTy80MDhRxk5OEhJ8Js3GuENcENUD0HmRylaWgBwhcGkQQBhrFEfB4Xhw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxbCY-0002FO-G5 for guix-patches@gnu.org; Sun, 06 Oct 2024 20:02:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#67902] [PATCH v3 25/96] gnu: Add php-phpstan-phpdoc-parser. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Oct 2024 00:02:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67902 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67902@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 67902-submit@debbugs.gnu.org id=B67902.17282593318576 (code B ref 67902); Mon, 07 Oct 2024 00:02:14 +0000 Received: (at 67902) by debbugs.gnu.org; 7 Oct 2024 00:02:11 +0000 Received: from localhost ([127.0.0.1]:43042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxbCR-0002DG-Dy for submit@debbugs.gnu.org; Sun, 06 Oct 2024 20:02:11 -0400 Received: from 1.mo582.mail-out.ovh.net ([46.105.56.136]:56829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxbCO-0002CF-M3 for 67902@debbugs.gnu.org; Sun, 06 Oct 2024 20:02:05 -0400 Received: from director2.ghost.mail-out.ovh.net (unknown [10.108.17.23]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 4XMK8472QXz185X for <67902@debbugs.gnu.org>; Mon, 7 Oct 2024 00:01:56 +0000 (UTC) Received: from ghost-submission-55b549bf7b-rnhqs (unknown [10.108.54.182]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id B357A1FDEB; Mon, 7 Oct 2024 00:01:56 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-55b549bf7b-rnhqs with ESMTPSA id /4XOFPQkA2d/lQcAJichJw (envelope-from ); Mon, 07 Oct 2024 00:01:56 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-98R002e3040efa-ce13-4d6b-aa30-64eaa51eca9d, A12302D5D8CF0E033BA678025A323BF4FAD59D46) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 86.246.19.221 Date: Mon, 7 Oct 2024 01:59:20 +0200 Message-ID: <20241007000046.25625-25-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241007000046.25625-1-ngraves@ngraves.fr> References: <20241007000046.25625-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 2662753282026693346 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvkedgvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkeeirddvgeeirdduledrvddvuddpfeejrdehledrudegvddrleeknecuvehluhhsthgvrhfuihiivgepfeenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeeijeeltddvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedvpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=rjFWn5ydRxJOVAA93S+9KJ4XQIuXCpaymnISsWy+6LU=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1728259317; v=1; b=avdIKE27uuBU8oIXCmNYjMkTjVZS+xvdYruTEAmqMgXgep7b5SOqKNB7offD6VJ5XexjufCp Bu5X0QK/I94Mhf/ctbS42J8DUtUmuYKQNOntlFzFvs+zSTLeLURQA8rblr3hL4ylO3ZXsbMoBsq 3m3UvOKMAE2439kVmzPoQUzgsSrEqwbFTFF4zmpEQS8Fsk9dA+otijluGLtzNRmvqY1/CTZ1V/w 7pb9j+UXS7PTrj3oIa/SAnAZQ043BQEybZjaDRn6hnm1U9q//9JgRlGubQLVUjUray+2mxyJ9MT ZV0cy10t5YpG/ok07TI4+rMvmWZlH7ZLD/9O1gkesLVlA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/php-xyz.scm (php-phpstan-phpdoc-parser): New variable. Change-Id: Ia6fc12ef3b3ccccde0dec0528f473369c0ddc4a1 --- gnu/packages/php-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm index 9822bba3de..7f48a9cf67 100644 --- a/gnu/packages/php-xyz.scm +++ b/gnu/packages/php-xyz.scm @@ -639,3 +639,43 @@ (define-public php-phpspec-prophecy (home-page "https://github.com/phpspec/prophecy") (license license:expat))) +(define-public php-phpstan-phpdoc-parser + (package + (name "php-phpstan-phpdoc-parser") + (version "1.24.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/phpstan/phpdoc-parser") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sdnij33y0baqi4wzspzr67id00vk1p0n851s2a056njpyym65lv")) + (snippet '(begin + (delete-file "tests/abnfgen-0.20.tar.gz") + (delete-file "build-abnfgen.sh"))))) + (build-system composer-build-system) + (arguments + (list + #:test-flags ''("--bootstrap" "vendor/autoload.php") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'unbundle-abnfgen + (lambda _ + (substitute* "tests/PHPStan/Parser/FuzzyTest.php" + (("__DIR__ \\. '/\\.\\./\\.\\./\\.\\./tools/abnfgen/abnfgen'") + (string-append "'" #$(this-package-native-input "abnfgen") + "/bin/abnfgen'")))))))) + (native-inputs + (list abnfgen + php-phpunit-phpunit + php-symfony-process + php-doctrine-annotations)) + (synopsis "PHPDoc parser") + (description + "This package provides a PHPDoc parser with support for nullable, +intersection and generic types.") + (home-page "https://github.com/phpstan/phpdoc-parser") + (license license:expat))) +