From patchwork Tue Feb 21 13:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 47193 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 5AF1316B23; Tue, 21 Feb 2023 13:47:26 +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=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 19B6D16B17 for ; Tue, 21 Feb 2023 13:47:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUSzA-0001hh-D1; Tue, 21 Feb 2023 08:47:12 -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 1pUSz1-0001gx-Gp for guix-patches@gnu.org; Tue, 21 Feb 2023 08:47:05 -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 1pUSz1-0002Mu-4v for guix-patches@gnu.org; Tue, 21 Feb 2023 08:47:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUSz0-000860-JS for guix-patches@gnu.org; Tue, 21 Feb 2023 08:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61675] [PATCH 2/2] gnu: Add latino. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 13:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61675@debbugs.gnu.org Received: via spool by 61675-submit@debbugs.gnu.org id=B61675.167698718631069 (code B ref 61675); Tue, 21 Feb 2023 13:47:02 +0000 Received: (at 61675) by debbugs.gnu.org; 21 Feb 2023 13:46:26 +0000 Received: from localhost ([127.0.0.1]:55041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUSyP-000852-J0 for submit@debbugs.gnu.org; Tue, 21 Feb 2023 08:46:26 -0500 Received: from knopi.disroot.org ([178.21.23.139]:44742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUSyK-00084s-Jz for 61675@debbugs.gnu.org; Tue, 21 Feb 2023 08:46:24 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 36EA744620 for <61675@debbugs.gnu.org>; Tue, 21 Feb 2023 14:46:19 +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 jqQzCC-SqJ1c for <61675@debbugs.gnu.org>; Tue, 21 Feb 2023 14:46:17 +0100 (CET) Message-ID: <1ad50ca0-c218-d602-3026-5c2441105b5f@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1676987177; bh=Zys7ImctJ7hZUewZJ9+7/U4ylaJ+YvMDvK99gdzHV0w=; h=Date:Subject:From:To:References:In-Reply-To; b=jZUOrtdbCdG+R4ykXpqOXvscw+Dyx3otZWCSppaBU081M1bP6mD38XmhclVTywL0/ /tvyuhVzaiQ7i3rrlEaOZWIV1FfcFkpn5Rb3cwTNwSeVhVqlhgeqF+OmiYe1X7gFLF 9S2mTIK6AdXxfO+fAwTzS4w9PSMClh6gorMCFAkeyHfFAhMx529B92jUqqwia8BF7o BQWnItXIrvCInaBaId7gNm+dr9qPNw0dPDWc8Nn0ffEajZRg2Y5RdD9goLhR30qbHY uwujxEagqcflS+XJDmBgrtXY3gNQ5Y1z1ywch8jrpCQZZWe8veIbuRfUF29E772MIu p2FbM0rZygglg== Date: Tue, 21 Feb 2023 21:46:11 +0800 MIME-Version: 1.0 Content-Language: en-US References: In-Reply-To: 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 From cb275653fdd7bb8562708e7865a0be8d903998d6 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <8739b1b5d6eb9de504d7799e22efd7996acfac83.1676986321.git.adam.faiz@disroot.org> References: <8739b1b5d6eb9de504d7799e22efd7996acfac83.1676986321.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Tue, 21 Feb 2023 17:06:04 +0800 Subject: [PATCH 2/2] gnu: Add latino. * gnu/packages/latino.scm: New file. --- gnu/packages/latino.scm | 66 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 gnu/packages/latino.scm diff --git a/gnu/packages/latino.scm b/gnu/packages/latino.scm new file mode 100644 index 0000000000..ae12702b8a --- /dev/null +++ b/gnu/packages/latino.scm @@ -0,0 +1,66 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Adam Faiz +;;; +;;; 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 latino) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (gnu packages readline) + #:use-module (gnu packages shells)) + +(define-public latino + (let ((commit "c9ba798aeebd733c0986eced78021394b2d87d4c") + (revision "0")) + (package + (name "latino") + (version (git-version "1.4.3" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/lenguaje-latino/latino-core") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "1pmplp32i5c546mcij9cks3lgqysz1bixy8ll4v9bb8c3f5pmaa1")) + (modules '((guix build utils))) + (snippet + #~(begin + ; Unbundle linenoise + (for-each delete-file-recursively + '("src/lib" "src/linenoise")) + (substitute* "src/CMakeLists.txt" + ((".*linenoise.*") "") + (("latuilib.c") "latuilib.c)") + (("link_libraries.m.") + (string-append "link_libraries(m)\n" + " link_libraries(linenoise)"))))))) + (build-system cmake-build-system) + (inputs + (list linenoise readline)) + (synopsis "Programming language with Spanish syntax") + (description + "Latino is a programming language with Spanish syntax, +inspired by Lua and Python.") + (home-page "https://www.lenguajelatino.org") + (license license:gpl3+))))