From patchwork Tue Sep 6 15:39:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 42257 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 92CD727BBEA; Tue, 6 Sep 2022 17:09:09 +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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 39C6927BBE9 for ; Tue, 6 Sep 2022 17:09:09 +0100 (BST) Received: from localhost ([::1]:45300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVb8N-0004F5-1O for patchwork@mira.cbaines.net; Tue, 06 Sep 2022 12:09:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVaj9-0000g5-99 for guix-patches@gnu.org; Tue, 06 Sep 2022 11:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVaj9-0000CN-0K for guix-patches@gnu.org; Tue, 06 Sep 2022 11:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVaj8-00071p-SE for guix-patches@gnu.org; Tue, 06 Sep 2022 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH 2/3] gnu: Add treecc. References: <9d424667-868f-03f2-c521-8c10e106d6d3@disroot.org> In-Reply-To: <9d424667-868f-03f2-c521-8c10e106d6d3@disroot.org> Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Sep 2022 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57625 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57625@debbugs.gnu.org Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.166247892626876 (code B ref 57625); Tue, 06 Sep 2022 15:43:02 +0000 Received: (at 57625) by debbugs.gnu.org; 6 Sep 2022 15:42:06 +0000 Received: from localhost ([127.0.0.1]:52374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVaiE-0006zP-B7 for submit@debbugs.gnu.org; Tue, 06 Sep 2022 11:42:06 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVaiC-0006zH-TQ for 57625@debbugs.gnu.org; Tue, 06 Sep 2022 11:42:05 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3C9334006E for <57625@debbugs.gnu.org>; Tue, 6 Sep 2022 17:42:04 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id V8AFwAm5ADvM for <57625@debbugs.gnu.org>; Tue, 6 Sep 2022 17:42:02 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662478811; bh=rRaAnC2CMHv9DBamogthmCK6g/g79teU8gUtepIhct4=; h=Date:To:From:Subject; b=PeaSwkcQMLxQaxl1dQeTduWPwLS/Hm5+qhNCEfzLpGBjsK3a2sXPXO5X/h7snOJeV KNlrLpqttuz0zJZP71V6wC2/cpwt4xIsFUrU6qlCVSbbfqGuxlyht8RU9QrojWRI2a XQCEKqbsZxuAud4ee9ZGPf5Yam9BUyF6KCNJQ3i6VALa6NhbsseJr9rjo7jZH2rIP6 t5MmZrL8AIk8uVzCqhatKP0NFgNDliM8i27ru1oElYQYhFo1hGqAFc60FmwlGkJH48 +Amx4d36+5SLa3/RM7yeUxH2W6O5g+rtltLc7kDlNa/QajQsLG0d2huCujxr/SMVjW iY7NVEYodZMPQ== Date: Tue, 6 Sep 2022 23:39:54 +0800 Mime-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 06 Sep 2022 12:04:31 -0400 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" Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz X-getmail-retrieved-from-mailbox: Patches From 72b17b99a7318626dd41db831201c9df64e4defd Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Tue, 6 Sep 2022 15:51:16 +0800 Subject: [PATCH 2/3] gnu: Add treecc. * gnu/packages/dotgnu.scm: New file. --- gnu/packages/dotgnu.scm | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 gnu/packages/dotgnu.scm handle +abstract syntax trees and operations upon the trees.") + (license license:gpl2+))) diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm new file mode 100644 index 0000000000..14e11b3653 --- /dev/null +++ b/gnu/packages/dotgnu.scm @@ -0,0 +1,52 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2016 Jan Nieuwenhuizen +;;; Copyright © 2020 Pierre Neidhardt +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages dotgnu) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (gnu packages autotools) + #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages libffi) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix build-system gnu)) + +(define-public treecc + (package + (name "treecc") + (version "0.3.10") + (source (origin + (method url-fetch) + (uri (string-append + "https://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-" + version ".tar.gz")) + (sha256 + (base32 + "1rzgnspg2xccdq3qsx0vi3j28h4qkrzbrjnhzvnny34fjfk217ay")))) + (build-system gnu-build-system) + (home-page "http://www.gnu.org/software/dotgnu/") + (synopsis "Abstract syntax tree compiler compiler") + (description + "The treecc program is designed to assist in the development of compilers +and other language-based tools. It manages the generation of code to