From patchwork Wed Mar 11 16:11:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christine Lemmer-Webber X-Patchwork-Id: 20637 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 7E70227BBEB; Wed, 11 Mar 2020 16:12:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0E94327BBEA for ; Wed, 11 Mar 2020 16:12:15 +0000 (GMT) Received: from localhost ([::1]:55214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC3xu-0007kc-Hm for patchwork@mira.cbaines.net; Wed, 11 Mar 2020 12:12:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC3xj-0007hi-Ju for guix-patches@gnu.org; Wed, 11 Mar 2020 12:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC3xi-0006z9-7y for guix-patches@gnu.org; Wed, 11 Mar 2020 12:12:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC3xi-0006yh-3w for guix-patches@gnu.org; Wed, 11 Mar 2020 12:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC3xi-0003Ds-0M for guix-patches@gnu.org; Wed, 11 Mar 2020 12:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40026] Add "xa" assembler Resent-From: Christopher Lemmer Webber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Mar 2020 16:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40026 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 40026@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158394310312362 (code B ref -1); Wed, 11 Mar 2020 16:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 16:11:43 +0000 Received: from localhost ([127.0.0.1]:55397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3xO-0003DK-Kd for submit@debbugs.gnu.org; Wed, 11 Mar 2020 12:11:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:59924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3xN-0003DD-L8 for submit@debbugs.gnu.org; Wed, 11 Mar 2020 12:11:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36571) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC3xM-0007Ln-CJ for guix-patches@gnu.org; Wed, 11 Mar 2020 12:11:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC3xK-000610-WB for guix-patches@gnu.org; Wed, 11 Mar 2020 12:11:40 -0400 Received: from dustycloud.org ([50.116.34.160]:38898) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jC3xK-0005sW-Q9 for guix-patches@gnu.org; Wed, 11 Mar 2020 12:11:38 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id BA6472661A for ; Wed, 11 Mar 2020 12:11:36 -0400 (EDT) User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Lemmer Webber Date: Wed, 11 Mar 2020 12:11:35 -0400 Message-ID: <87mu8mswg8.fsf@dustycloud.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches Hello! New patch, new patch. It's been a while for me. This is for the 6502 "xa" assembler. It's necessary for use with the "vice" emulator, which I've been also trying to package, but is also useful standalone. From f9a241faa405bb695b4e13175722014f8a291410 Mon Sep 17 00:00:00 2001 From: Christopher Lemmer Webber Date: Wed, 11 Mar 2020 11:14:59 -0400 Subject: [PATCH] gnu: Add xa. * gnu/packages/assembly.scm (xa): New variable. --- gnu/packages/assembly.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index 1ad49baf8e..ec1ed50b2d 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2019 Guy Fleury Iteriteka ;;; Copyright © 2019 Andy Tai ;;; Copyright © 2020 Jakub Kądziołka +;;; Copyright © 2020 Christopher Lemmer Webber ;;; ;;; This file is part of GNU Guix. ;;; @@ -342,3 +343,32 @@ Supported architectures are: @item spc700 @end itemize") (license license:gpl2))) + +(define-public xa + (package + (name "xa") + (version "2.3.10") + (source (origin + (method url-fetch) + (uri (string-append "https://www.floodgap.com/retrotech/xa" + "/dists/xa-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0y5sd247g11jfk5msxy91hz2nhpy7smj125dzfyfhjsjnqk5nyw6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; TODO: custom test harness, not sure how it works + #:phases + (modify-phases %standard-phases + (delete 'configure)) ; no "configure" script + #:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))))) + (native-inputs `(("perl" ,perl))) + (home-page "https://www.floodgap.com/retrotech/xa/") + (synopsis "High-speed, two-pass portable cross-assembler") + (description + "xa is a high-speed, two-pass portable cross-assembler. +It understands mnemonics and generates code for NMOS 6502s (such +as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 ...), + CMOS 6502s (65C02 and Rockwell R65C02) and the 65816.") + (license license:gpl2))) -- 2.25.1