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: Re: [PATCH] gnu: Add nestopiaue. Date: Sun, 01 Nov 2015 21:48:52 +0100 Message-ID: <877fm1bg3v.fsf@T420.taylan> References: <87h9l5bm01.fsf@T420.taylan> <87d1vtbllz.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZszYF-0007e7-Ow for guix-devel@gnu.org; Sun, 01 Nov 2015 15:48:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZszYE-0007Dy-C0 for guix-devel@gnu.org; Sun, 01 Nov 2015 15:48:31 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZszYE-0007DB-1d for guix-devel@gnu.org; Sun, 01 Nov 2015 15:48:30 -0500 Received: by wmff134 with SMTP id f134so44715611wmf.1 for ; Sun, 01 Nov 2015 12:48:29 -0800 (PST) Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id bo7sm18585343wjb.46.2015.11.01.12.48.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Nov 2015 12:48:28 -0800 (PST) In-Reply-To: <87d1vtbllz.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Sun, 01 Nov 2015 19:50:00 +0100") 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 --=-=-= Content-Type: text/plain Seems I forgot our commit message guidelines; here's a patch with a fixed commit message. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-nestopiaue.patch >From 06d1fe3145052d7b660bba98db751fcc670a6602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?= Date: Sun, 1 Nov 2015 19:38:53 +0100 Subject: [PATCH] gnu: Add nestopiaue. * gnu/packages/games.scm (nestopiaue): New variable. --- gnu/packages/games.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 546944a..1ba9f3f 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -38,10 +38,12 @@ #:use-module (guix svn-download) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages admin) #:use-module (gnu packages audio) #:use-module (gnu packages boost) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages fribidi) #:use-module (gnu packages game-development) #:use-module (gnu packages gettext) @@ -1212,3 +1214,61 @@ world}, @uref{http://evolonline.org, Evol Online} and ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA. ;; The rest is under GPL2+. (license (list license:gpl2+ license:zlib license:cc-by-sa4.0)))) + +(define-public nestopiaue + (package + (name "nestopiaue") + (version "1.46.2") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/rdanbrook/nestopia/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p")) + (modules '((guix build utils))) + ;; We don't need libretro for the GNU/Linux build. + (snippet + '(delete-file-recursively "libretro")))) + (build-system gnu-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("xdg-utils" ,xdg-utils))) + (inputs `(("ao" ,ao) + ("glu" ,glu) + ("gtk+" ,gtk+) + ("libarchive" ,libarchive) + ("mesa" ,mesa) + ("sdl2" ,sdl2))) + (arguments + '(#:phases (modify-phases %standard-phases + ;; The Nestopia build system consists solely of a Makefile. + (delete 'configure) + ;; XXX Should be unnecessary with the next release. + (add-before + 'build 'patch-makefile + (lambda _ + (substitute* "Makefile" + (("@mkdir \\$@") "@mkdir -p $@") + (("CC =") "CC ?=") + (("CXX =") "CXX ?=") + (("PREFIX =") "PREFIX ?=") + (("^install:\n$") + "install:\n\tmkdir -p $(BINDIR)\n")))) + (add-before + 'build 'remove-xdg-desktop-menu-call + (lambda _ + (substitute* "Makefile" + (("xdg-desktop-menu install .*") ""))))) + #:make-flags (let ((out (assoc-ref %outputs "out"))) + (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out))) + ;; There are no tests. + #:tests? #f)) + (home-page "http://0ldsk00l.ca/nestopia/") + (synopsis "Nintendo Entertainment System (NES/Famicom) emulator") + (description + "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment +System (NES/Famicom) emulator Nestopia, with enhancements from members of the +emulation community. It provides highly accurate emulation.") + (license license:gpl2+))) -- 2.5.0 --=-=-=--