From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40943) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCDT6-0005tO-Nd for guix-patches@gnu.org; Wed, 11 Mar 2020 22:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCDT4-0006qR-Go for guix-patches@gnu.org; Wed, 11 Mar 2020 22:21:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCDT4-0006qJ-Bk for guix-patches@gnu.org; Wed, 11 Mar 2020 22:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCDT4-0005H9-7e for guix-patches@gnu.org; Wed, 11 Mar 2020 22:21:02 -0400 Subject: [bug#40033] Vice emulator, now with patch References: <87ftees4d6.fsf@dustycloud.org> In-Reply-To: <87ftees4d6.fsf@dustycloud.org> Resent-Message-ID: From: Christopher Lemmer Webber Date: Wed, 11 Mar 2020 22:20:06 -0400 Message-ID: <87eetys4a1.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40033@debbugs.gnu.org --=-=-= Content-Type: text/plain Oops, patch below: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-vice.patch Content-Transfer-Encoding: quoted-printable >From 3377e3b59203502c065d7c86cbb5e0f5e246862f Mon Sep 17 00:00:00 2001 From: Christopher Lemmer Webber Date: Wed, 11 Mar 2020 22:04:53 -0400 Subject: [PATCH] gnu: Add vice. * gnu/packages/emulators.scm (vice): New variable. --- gnu/packages/emulators.scm | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 7e4c98fbc7..40f81d1cc7 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2019 Pierre Neidhardt ;;; Copyright =C2=A9 2019 David Wilson ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka +;;; Copyright =C2=A9 2020 Christopher Lemmer Webber ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,12 +42,14 @@ #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages backup) #:use-module (gnu packages cdrom) #:use-module (gnu packages compression) #:use-module (gnu packages curl) #:use-module (gnu packages elf) + #:use-module (gnu packages flex) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) @@ -1628,3 +1631,58 @@ derived from Gens. Project goals include clean sour= ce code, combined features from various forks of Gens, and improved platform portability.") (supported-systems '("i686-linux" "x86_64-linux")) (license license:gpl2+))) + +(define-public vice + (package + (name "vice") + (version "3.4") + (source (origin + (method url-fetch) + (uri (string-append "https://sourceforge.net/projects" + "/vice-emu/files/releases/vice-" + version ".tar.gz/download")) + (sha256 + (base32 + "1svsw3z18nsj3vmpxdp456y79xsj9f1k405r07zd336kccf0rl2b")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-sh + (lambda _ + (substitute* (find-files "." "configure") + (("-/bin/sh") (string-append "-" (which "sh"))) + (("=3D /bin/sh") (string-append "=3D " (which "sh")))))) + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; The 'configure' script is a wrapper for Waf and + ;; doesn't recognize things like '--enable-fast-install'. + (invoke "./configure" + (string-append "--prefix=3D" out)))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("bison" ,bison) + ("texinfo" ,texinfo))) + (inputs + `(("flex" ,flex) + ("xa" ,xa) + ("sdl2" ,sdl2) + ("libpng" ,libpng) + ("libjpeg" ,libjpeg-turbo) + ("ffmpeg" ,ffmpeg) + ("giflib" ,giflib) + ("zlib" ,zlib) + ("alsa-lib" ,alsa-lib) + ("pulseaudio" ,pulseaudio) + ("portaudio" ,portaudio) + ("mesa" ,mesa) + ("glu" ,glu))) + (home-page "http://vice-emu.sourceforge.net/") + (synopsis "Versatile Commodore emulator") + (description + "VICE emulates the C64, the C64DTV, the C128, the VIC20, practically +all PET models, the PLUS4 and the CBM-II (aka C610/C510). An extra +emulator is provided for C64 expanded with the CMD SuperCPU.") + (license license:gpl2+))) --=20 2.25.1 --=-=-=--