From patchwork Thu Oct 26 15:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie X-Patchwork-Id: 55370 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 EFCBC27BBEA; Thu, 26 Oct 2023 16:05:59 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 E875627BBE2 for ; Thu, 26 Oct 2023 16:05:57 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw1vS-0008So-KF; Thu, 26 Oct 2023 11:05:34 -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 1qw1vP-0008Rm-NL for guix-patches@gnu.org; Thu, 26 Oct 2023 11:05:31 -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 1qw1vP-0000tM-EN for guix-patches@gnu.org; Thu, 26 Oct 2023 11:05:31 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qw1vt-0002IM-T6 for guix-patches@gnu.org; Thu, 26 Oct 2023 11:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66761] [PATCH] gnu: Add guile-ts. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Oct 2023 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66761 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66761@debbugs.gnu.org Cc: andrew@trop.in X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16983327278759 (code B ref -1); Thu, 26 Oct 2023 15:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Oct 2023 15:05:27 +0000 Received: from localhost ([127.0.0.1]:34327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qw1vK-0002HD-IS for submit@debbugs.gnu.org; Thu, 26 Oct 2023 11:05:26 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qw1vI-0002Gr-1j for submit@debbugs.gnu.org; Thu, 26 Oct 2023 11:05:25 -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 1qw1ug-0008Ko-98 for guix-patches@gnu.org; Thu, 26 Oct 2023 11:04:47 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1qw1ub-0000W7-Jg for guix-patches@gnu.org; Thu, 26 Oct 2023 11:04:45 -0400 Received: from localhost.localdomain (unknown [111.0.51.85]) by APP-05 (Coremail) with SMTP id zQCowAAHoZTzfzplj2LxAA--.16836S2; Thu, 26 Oct 2023 23:04:20 +0800 (CST) From: Zheng Junjie Date: Thu, 26 Oct 2023 23:03:19 +0800 Message-ID: <2a31bb8b9704c7895a2c477543e294d7ded62005.1698332599.git.zhengjunjie@iscas.ac.cn> X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x07bOoGdUUUUU= X-Originating-IP: [111.0.51.85] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.84; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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/guile-xyz.scm (guile-ts): New variable. Change-Id: Icb681b6f2e5f2318291e5a4a4ff05d2cbbcf1856 --- gnu/packages/guile-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) base-commit: 33f5b747b4a0a508e1ffc94a5bf425cff707c6e3 diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 90f51cf741..0a2e0a04ae 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -119,6 +119,7 @@ (define-module (gnu packages guile-xyz) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls) + #:use-module (gnu packages tree-sitter) #:use-module (gnu packages version-control) #:use-module (gnu packages webkit) #:use-module (gnu packages xdisorg) @@ -4588,6 +4589,51 @@ (define-public guile-torrent according to Bitorrent BEP003.") (license license:gpl3+))) +(define-public guile-ts + (package + (name "guile-ts") + (version "0.1.0") + (source (origin (method git-fetch) + (uri (git-reference + (url + "https://github.com/Z572/guile-ts") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0xmq2d3mv921m0g1hqw6bjzh4m622g2c7pal11ks7vjn0m8d4bxj")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags #~(list "GUILE_AUTO_COMPILE=0") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-extension-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* + (find-files "." ".*\\.scm") + (("\\(load-extension \"libguile_ts\" *\"(.*)\"\\)" _ o) + (string-append + (object->string + `(or (false-if-exception + (load-extension "libguile_ts" ,o)) + (load-extension + ,(string-append + #$output + "/lib/libguile_ts.so") + ,o))))))))))) + (native-inputs + (list autoconf automake + libtool + texinfo + pkg-config + guile-3.0)) + (inputs (list guile-3.0 tree-sitter)) + (synopsis "Guile bindings to the Tree-sitter parsing library") + (description "This package provides Guile bindings to the Tree-sitter +parsing library.") + (home-page "https://github.com/Z572/guile-ts") + (license license:gpl3+))) + (define-public guile-irc (let ((commit "7d08ce6fdcb87ac668c5d3bfd5584247805507bb") (revision "1"))