From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add chromium-bsu. Date: Tue, 21 Jun 2016 21:07:25 -0400 Message-ID: <871t3qm3oy.fsf@openmailbox.org> References: <87h9cmtzgc.fsf@openmailbox.org> <20160621214419.GA9515@jasmine> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFWdr-0005GD-Qo for guix-devel@gnu.org; Tue, 21 Jun 2016 21:07:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFWdn-0002GP-Ij for guix-devel@gnu.org; Tue, 21 Jun 2016 21:07:42 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:56878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFWdn-0002Ef-4m for guix-devel@gnu.org; Tue, 21 Jun 2016 21:07:39 -0400 In-Reply-To: <20160621214419.GA9515@jasmine> (Leo Famulari's message of "Tue, 21 Jun 2016 17:44:19 -0400") 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" To: Leo Famulari Cc: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Leo Famulari writes: > On Tue, Jun 21, 2016 at 09:59:31AM -0400, Kei Kebreau wrote: >> * gnu/packages/games (chromium-bsu): New variable. > >> + (arguments >> + `(#:phases (modify-phases %standard-phases >> + (add-after 'set-paths 'set-sdl-paths >> + (lambda* (#:key inputs #:allow-other-keys) >> + (setenv "CPATH" >> + (string-append (assoc-ref inputs "sdl-union") >> + "/include/SDL")) >> + #t))))) > > If you move (modify-phases) underneath #:phases, then this will be > comfortably shorter than 80 characters :) > >> + (native-inputs `(("pkg-config" ,pkg-config))) >> + (inputs `(("freeglut" ,freeglut) >> + ("glu" ,glu) >> + ("quesoglc" ,quesoglc) >> + ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer))))) > > The output doesn't refer to freeglut. I wonder if it should be > native, propagated, or if it's not needed, etc? > > I ran the game on GuixSD, and it did work, although it was much slower > than on my Debian system. I don't know if that was merely a consequence > of the GuixSD system using much older hardware, or if it's related to > the missing reference to freeglut. The freeglut library is not needed. I mistakenly left out pkg-config in an earlier build and added it because Chromium B.S.U. complained of a missing glut library. A corrected patch is attached. (Also, I noticed no speed difference between the two builds.) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=0001-gnu-Add-chromium-bsu.patch Content-Transfer-Encoding: quoted-printable Content-Description: Fixed patch. From=20c1075872bba7ea3150c13ab7983ffd6b48bae4ad Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Tue, 21 Jun 2016 20:52:24 -0400 Subject: [PATCH] gnu: Add chromium-bsu. * gnu/packages/games.scm (chromium-bsu): New variable. =2D-- gnu/packages/games.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 4141d5e..9ec8e8e 100644 =2D-- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2447,3 +2447,39 @@ tactics.") license:expat license:gpl2+ license:lgpl2.1+)))) + +(define-public chromium-bsu + (package + (name "chromium-bsu") + (version "0.9.15.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/" name + "/Chromium B.S.U. source code/" + name "-" version ".tar.gz")) + (sha256 + (base32 + "01c4mki0rpz6wrqbf18fj4vd7axln5v0xqm80cyksbv63g04s6w6")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'set-paths 'set-sdl-paths + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CPATH" + (string-append (assoc-ref inputs "s= dl-union") + "/include/SDL")) + #t))))) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("glu" ,glu) + ("quesoglc" ,quesoglc) + ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer))))) + (home-page "http://chromium-bsu.sourceforge.net/") + (synopsis "Fast-paced, arcade-style, top-scrolling space shooter") + (description + "In this game you are the captain of the cargo ship Chromium B.S.U. a= nd +are responsible for delivering supplies to the troops on the front line. = Your +ship has a small fleet of robotic fighters which you control from the rela= tive +safety of the Chromium vessel.") + ;; Clarified Artistic License for everything but sound, which is cover= ed + ;; by the Expat License. + (license (list license:clarified-artistic license:expat)))) =2D-=20 2.8.3 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Kei (GPG Key: 4096R/E6A5EE3C19467A0D) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXaeTOAAoJEOal7jwZRnoN5owQAMEtQPAkHBReGUXESxNyeNK6 lR+20fPWuGURhNiS3FdK6EXNJCco+iQ84QTSsiSZgmjz2VmZskoIpht6FnVrB89h Rj/DN0AoQa5k9RCawzO5nuMcy27Yrbp8yaTIhjn5wcqo+UbUVCkHAVT50lL00ZfE dFRA0B14i65oZyfCPpNdUdjmh9/djf1930vXy7fQ8Mw3ulF4Q+QKeIO4fXtqUlQu jwxziSRbXzjhqBS0iI8j7Cq6Ndecw7NwUIi1ND67a/QtB4XzPecIwgVjAObYJdO2 T5bogSaO9kCyZM2/AmiSFWeqJfMMv9piuWATTk1A9UWMkwVpSuE8q1AYSU2hVBPZ /tyo1Qqn9d5v7EBF0AfG7HEvhSMfJKLRyMd8l+vKuhnFLfJgtuBEWJtdK7nG5jFu 11oCEt3qdO+Y312x/atPMrdwPMYCXED7KBmzIb2b36umQW0go6qDJJuG3ga+9VaQ 9/xU0dmM2BTtxshRght6oupOAKv47Yb52kgjwNn2S05OWmfhGt23Vf5JiyMbQHKX GBK+ogq0mfTVnFWk6Qc/j47LNmNENFUkEL09IvwcICc0pKyZ+vSmFvQSySn0Okag vpZRjxaNuedPm2pCaQqqrVkKJ6+PAAvT7RLwBbL8RqG6mSA2Kpl6gN+xuKo8uD02 Gw7gpO4ENnE4nB4Y7xFk =ztno -----END PGP SIGNATURE----- --==-=-=--