From patchwork Fri Nov 18 09:20:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 44587 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 A2FDD27BBEC; Fri, 18 Nov 2022 09:21:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 1549727BBE9 for ; Fri, 18 Nov 2022 09:21:32 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovxYg-0003uC-0R; Fri, 18 Nov 2022 04:21:15 -0500 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 1ovxYU-0003oV-Rr for guix-patches@gnu.org; Fri, 18 Nov 2022 04:21:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovxYU-0006Im-JB for guix-patches@gnu.org; Fri, 18 Nov 2022 04:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovxYU-0006ta-Fp for guix-patches@gnu.org; Fri, 18 Nov 2022 04:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH v1 02/03] gnu: Add treecc. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Nov 2022 09:21: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 moreinfo To: 57625@debbugs.gnu.org Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.166876324626460 (code B ref 57625); Fri, 18 Nov 2022 09:21:02 +0000 Received: (at 57625) by debbugs.gnu.org; 18 Nov 2022 09:20:46 +0000 Received: from localhost ([127.0.0.1]:35277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovxYD-0006sg-VF for submit@debbugs.gnu.org; Fri, 18 Nov 2022 04:20:46 -0500 Received: from knopi.disroot.org ([178.21.23.139]:34608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovxYC-0006sW-4s for 57625@debbugs.gnu.org; Fri, 18 Nov 2022 04:20:45 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id ECE5840FFF for <57625@debbugs.gnu.org>; Fri, 18 Nov 2022 10:20:42 +0100 (CET) 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 ESMTP id LDJ1zvOdjn7z for <57625@debbugs.gnu.org>; Fri, 18 Nov 2022 10:20:41 +0100 (CET) Message-ID: <809493d4-0a97-e04c-73df-e0d2f75402cb@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1668763241; bh=yIteG0K66iRnDjjYwG0G03G1Nl9Iq/ERWpQPMMYYR5c=; h=Date:Subject:From:To:References:In-Reply-To:From; b=QQJB/1nNTcKQrhPF+j7QVRh5u6uzj3fmH1kfKfKMpe6NCUQh8qf8sUIIgXWuRkL81 ptGdEdugyNCrDPxm/TqDji8AqnzEHMNmoFNahguMGvUglmkziAgA87gJbRwAWMeawu jkQKlPfdqjRlAScsn7Z5xK/PKtwA7feNf5gfwA+OGSuOopZjWJ1PX4HdzPIsE+5+Yx 5XNc6ExviEtoHSQmDn+W8kvab5DbzJ5PoXTQn1xFbmu040WfZzeetUZeltJopL6eJ1 AON+ZOM62yfHEsmC/d9wS+XMew+/Gq+wGTjQLSDmWhYgqkLqnr2Y3wUgH6EPjbUZjW dxIYuG/hxFTWA== Date: Fri, 18 Nov 2022 17:20:30 +0800 MIME-Version: 1.0 References: <1b3a9c28-436c-252a-e556-76b18b040b42@disroot.org> Content-Language: en-US In-Reply-To: <1b3a9c28-436c-252a-e556-76b18b040b42@disroot.org> 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: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz 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 On 11/18/22 17:15, Adam Faiz wrote: From 38a45d7451442a4905cab043adb5f3a514929495 Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 08:31:56 +0800 Subject: [PATCH v1 02/03] gnu: Add treecc. * gnu/packages/dotgnu.scm: New file. --- gnu/packages/dotgnu.scm | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 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..ad3b6c74e5 --- /dev/null +++ b/gnu/packages/dotgnu.scm @@ -0,0 +1,50 @@ +;;; 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 build-system gnu) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (gnu packages autotools) + #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages libffi)) + +(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