From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: [PATCH] gnu: Add gambc. Date: Mon, 16 Feb 2015 19:46:31 +0100 Message-ID: <87iof1d794.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: text/x-diff; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNQgm-00072n-HF for guix-devel@gnu.org; Mon, 16 Feb 2015 13:46:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNQgl-0004QC-1R for guix-devel@gnu.org; Mon, 16 Feb 2015 13:46:36 -0500 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:60696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNQgk-0004Q3-Q8 for guix-devel@gnu.org; Mon, 16 Feb 2015 13:46:34 -0500 Received: by mail-we0-f171.google.com with SMTP id p10so30870062wes.2 for ; Mon, 16 Feb 2015 10:46:34 -0800 (PST) Received: from taylan.uni.cx (p200300514A1A69F50213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a1a:69f5:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id uo6sm23991199wjc.49.2015.02.16.10.46.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 10:46:33 -0800 (PST) Content-Disposition: inline; filename=0001-gnu-Add-gambc.patch Content-Description: patch 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org >From 81fdfe2ef50f0cb9f92ae4d913e9d1705926b3ab Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Taylan=3D20Ulrich=3D20Bay=3DC4=3DB1rl=3DC4=3DB1/Kammer?=3D Date: Mon, 16 Feb 2015 13:29:36 +0100 Subject: [PATCH] gnu: Add gambc. * gnu/packages/scheme.scm (gambc): New variable. --- gnu/packages/scheme.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index 8afc0ab..b8466e5 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2013, 2014, 2015 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2015 Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +22,7 @@ #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages m4) #:use-module (gnu packages multiprecision) @@ -428,3 +430,47 @@ R6RS) and related languages, such as Typed Racket. It= features a compiler and a virtual machine with just-in-time native compilation, as well as a large= set of libraries.") (license lgpl2.0+))) + +(define-public gambc + (package + (name "gambc") + (version "v4.7.4") + (source + (origin + (method url-fetch) + (uri (string-append + "http://www.iro.umontreal.ca/~gambit/download/gambit/" + (version-major+minor version) "/source/gambc-" + (string-map (lambda (c) (if (char=3D? c #\.) #\_ c)) version) + ".tgz")) + (sha256 + (base32 "0y2pklh4k65yrmxv63ass76xckrk9wqimbdad2gha35v2mi7blhs")))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags + ;; According to the ./configure script, this makes the build slower= and + ;; use >=3D 1 GB memory, but makes Gambit much faster. + '("--enable-single-host") + #:phases + (alist-cons-before + 'check 'fix-tests + (lambda _ + (substitute* '("tests/makefile") + ;; '-:' is how run-time options are set. 'tl' sets some termi= nal + ;; option, which makes it fail in our build environment. It + ;; recommends using 'd-' as a solution, which sets the REPL + ;; interaction channel to stdin/stdout. + (("gsi -:tl") "gsi -:d-,tl"))) + %standard-phases))) + (home-page "http://www.iro.umontreal.ca/~gambit/") + (synopsis "Efficient Scheme interpreter and compiler") + (description + "Gambit consists of two main programs: gsi, the Gambit Scheme +interpreter, and gsc, the Gambit Scheme compiler. The interpreter contains +the complete execution and debugging environment. The compiler is the +interpreter extended with the capability of generating executable files. = The +compiler can produce standalone executables or compiled modules which can = be +loaded at run time. Interpreted code and compiled code can be freely +mixed.") + ;; Dual license. + (license (list lgpl2.1+ asl2.0)))) --=20 2.2.1