From patchwork Tue Sep 27 17:40:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Craven X-Patchwork-Id: 16078 Received: (qmail 91479 invoked by uid 89); 27 Sep 2016 17:42:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=mk, dallas, z80, Dallas X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Sep 2016 17:41:55 +0000 Received: from localhost ([::1]:52619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bowOA-0007rX-15 for patchwork@sourceware.org; Tue, 27 Sep 2016 13:41:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bowN8-0007J4-Fc for guix-devel@gnu.org; Tue, 27 Sep 2016 13:40:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bowN4-0003Rw-9m for guix-devel@gnu.org; Tue, 27 Sep 2016 13:40:49 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:47305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bowN2-0003P0-Lh for guix-devel@gnu.org; Tue, 27 Sep 2016 13:40:45 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=craven.ch; q=dns/txt; s=mx; t=1474998040; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=NiB8yU1lIVgRC6gfsUckEHdf8w5apWONImtAZd8kstA=; b=ltEcwq1We/wtHI7VtD5xo2Ko0gHFkT9jDlSvg6bcJ9SKX3dKy3KtkYflvpgRl/QXhI4O8ejJ fPglxYgCeKa6A0g+grOCKyqack6ROdaUainDmlFnzjwXOamjbhKx2XrdQTgCw87+jKnWFuyK 6o+JBlRNhiVcqCqu24hR+jeqvKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=craven.ch; s=mx; q=dns; h=Sender: From: To: Cc: Subject: Date: Message-Id: MIME-Version: Content-Type: Content-Transfer-Encoding; b=UEc6Omc3cO0JqhgKDHx0BiYR+hfDqavppsqcMPIv/zuNXPlGhLNbukOKS7BjwBdanqqEkl fS5ffxVq3+d3dneXOP4SIYTgYT8DqT1oO5BeanZmDlUKv46k5ilBBijWVvEn1ZokqpND11Fh UhU9yLJMpXmMdT7eSQmsh3YBDW9cA= X-Mailgun-Sending-Ip: 198.61.254.10 X-Mailgun-Sid: WyIxMzZlMCIsICJndWl4LWRldmVsQGdudS5vcmciLCAiMDFiMjAiXQ== Received: from xps.craven.ch (pub151248146013.dh-hfc.datazug.ch [151.248.146.13]) by mxa.mailgun.org with ESMTP id 57eaaf18.7fa69cb63f10-in2; Tue, 27 Sep 2016 17:40:40 -0000 (UTC) From: David Craven To: guix-devel@gnu.org Subject: [PATCH] gnu: Add sdcc. Date: Tue, 27 Sep 2016 19:40:26 +0200 Message-Id: <20160927174026.26800-1-david@craven.ch> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 198.61.254.10 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/sdcc.scm (sdcc): New variable. --- gnu/packages/sdcc.scm | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 gnu/packages/sdcc.scm diff --git a/gnu/packages/sdcc.scm b/gnu/packages/sdcc.scm new file mode 100644 index 0000000..b08479a --- /dev/null +++ b/gnu/packages/sdcc.scm @@ -0,0 +1,70 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2016 David Craven +;;; +;;; 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 sdcc) + #:use-module (gnu packages bison) + #:use-module (gnu packages boost) + #:use-module (gnu packages flex) + #:use-module (gnu packages python) + #:use-module (gnu packages texinfo) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module (guix packages) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public sdcc + (package + (name "sdcc") + (version "3.6.0") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/sdcc/files/sdcc" + "/" version "/sdcc-src-" version ".tar.bz2" + "/download")) + (sha256 + (base32 + "0x53gh5yrrfjvlnkk29mjn8hq4v52alrsf7c8nsyzzq13sqwwpg8")))) + (build-system gnu-build-system) + (native-inputs + `(("bison" ,bison) + ("boost" ,boost) + ("flex" ,flex) + ("python-2" ,python-2) + ("texinfo" ,texinfo))) + (arguments + `(;; gputils is required for PIC ports + #:configure-flags + '("--disable-pic14-port" "--disable-pic16-port") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-makefile + (lambda _ + (substitute* (find-files "." "(\\.mk$|\\.in$)") + (("/bin/sh") (which "sh"))) + #t))))) + (home-page "http://sdcc.sourceforge.net") + (synopsis "Small devices C compiler") + (description "SDCC is a retargettable, optimizing Standard C compiler suite +that targets the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, ...), +Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola) +HC08 based (hc08, s08), Zilog Z80 based MCUs (z80, z180, gbz80, Rabbit +2000/3000, Rabbit 3000A, TLCS-90) and STMicroelectronics STM8. +Work is in progress on supporting the Microchip PIC16 and PIC18 targets. +It can be retargeted for other microprocessors.") + (license license:gpl2+)))