From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add libsmpeg. Date: Fri, 22 Jul 2016 17:12:12 -0400 Message-ID: <8737n1tm1f.fsf@openmailbox.org> References: <87bn1pu4lx.fsf@openmailbox.org> <877fcdtq97.fsf@openmailbox.org> 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]:53733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQhkF-0003U0-3m for guix-devel@gnu.org; Fri, 22 Jul 2016 17:12:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQhk9-00021f-Sr for guix-devel@gnu.org; Fri, 22 Jul 2016 17:12:30 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:59091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQhk9-00021X-Dr for guix-devel@gnu.org; Fri, 22 Jul 2016 17:12:25 -0400 In-Reply-To: (Vincent Legoll's message of "Fri, 22 Jul 2016 21:53:57 +0200") 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: Vincent Legoll Cc: guix-devel --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Vincent Legoll writes: >> Pygame's config.py is not finding smpeg-config. This will be fun! Anyone >> with skill in Python is welcome to offer me assistance! > > Maybe I can help, could you elaborate on how to reproduce ? Sure. Apply the libsmpeg patch and the attached Pygame patch to a copy of the Guix repo and attempt to build python-pygame. The error is contained in the build log. I'll copy it below: starting phase `build' running "python setup.py" with command "build" and parameters () WARNING, No "Setup" File Exists, Running "config.py" Using UNIX configuration... /gnu/store/b1yqjimbdh5bf9jnizd4h7yf110744j2-bash-4.3.42/bin/sh: smpeg-confi= g: c ommand not found=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Hunting dependencies... WARNING: "smpeg-config" failed! SDL : found 1.2.15 FONT : not found IMAGE : not found MIXER : not found SMPEG : not found PNG : not found JPEG : not found SCRAP : found PORTMIDI: not found PORTTIME: not found Warning, some of the pygame dependencies were not found. Pygame can still compile and install, but games that depend on those missing dependencies will not run. Would you like to continue the configuration? [Y/n]:Traceback= (mo st recent call last):=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 File "setup.py", line 132, in config.main() File "/tmp/guix-build-python-pygame-1.9.1.drv-0/pygame-1.9.1release/confi= g.py ", line 137, in main=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 deps =3D CFG.main() File "/tmp/guix-build-python-pygame-1.9.1.drv-0/pygame-1.9.1release/confi= g_un ix.py", line 180, in main=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 will not run. Would you like to continue the configuration?"""): File "/tmp/guix-build-python-pygame-1.9.1.drv-0/pygame-1.9.1release/confi= g_un ix.py", line 24, in confirm=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 reply =3D raw_input('\n' + message + ' [Y/n]:') EOFError: EOF when reading a line phase `build' failed after 0.8 seconds builder for `/gnu/store/fgrm7ph1z050mldbzwg4s872373lqj1j-python-pygame-1.9.= 1.dr v' failed with exit code 1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 guix package: error: build failed: build of `/gnu/store/fgrm7ph1z050mldbzwg= 4s87 2373lqj1j-python-pygame-1.9.1.drv' failed=20 --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=0001-gnu-Add-python-pygame.patch Content-Transfer-Encoding: quoted-printable From=20f15ce6a6050543ad6da623dd5758c114ec95fd60 Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Fri, 22 Jul 2016 17:06:11 -0400 Subject: [PATCH] gnu: Add python-pygame. * gnu/packages/game-development.scm (python-pygame): Add python-pygame. =2D-- gnu/packages/game-development.scm | 44 +++++++++++++++++++++++++++++++++++= +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm= ent.scm index 7067a71..e3ecc79 100644 =2D-- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -31,6 +31,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages curl) #:use-module (gnu packages databases) @@ -41,6 +42,7 @@ #:use-module (gnu packages gnunet) #:use-module (gnu packages guile) #:use-module (gnu packages multiprecision) + #:use-module (gnu packages music) #:use-module (gnu packages ncurses) #:use-module (gnu packages qt) #:use-module (gnu packages compression) @@ -60,7 +62,8 @@ #:use-module (gnu packages xiph) #:use-module (gnu packages lua) #:use-module (gnu packages mp3) =2D #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (gnu packages video)) =20 (define-public bullet (package @@ -512,3 +515,42 @@ It offers the following features: OpenGL programs with character rendering services via an application progr= amming interface (API).") (license (list license:expat license:lgpl2.1+)))) + + +(define-public python-pygame + (package + (name "python-pygame") + (version "1.9.1") + (source (origin + (method url-fetch) + (uri (string-append "http://www.pygame.org/ftp/pygame-" + version "release.tar.gz")) + (sha256 + (base32 + "0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52")))) + (build-system python-build-system) + (inputs `(("libpng" ,libpng) + ("libjpeg" ,libjpeg) + ("libsmpeg" ,libsmpeg) + ("portmidi" ,portmidi) + ("sdl" ,sdl) + ("sdl-ttf" ,sdl-ttf) + ("sdl-image" ,sdl-image) + ("sdl-mixer" ,sdl-mixer))) + (home-page "http://www.pygame.org") + (synopsis "Set of Python modules designed for writing games using SDL") + (description + "Pygame is a cross-platform library designed to make it easy to write +multimedia software, such as games, in Python. Pygame requires the Python +language and SDL multimedia library. It can also make use of several other +popular libraries.") + (license (list license:bsd-2 + ;; python numeric license as listed by Debian looks like + ;; an Expat-style license with a warranty disclaimer for + ;; the U.S. government and the University of California. + license:expat + license:lgpl2.0+ + license:lgpl2.1+ + license:gpl3+ + license:psfl + license:public-domain)))) =2D-=20 2.9.1 --=-=-= 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 iQIcBAEBCAAGBQJXkowsAAoJEOal7jwZRnoNAaQP/1gXYJauDXnpHQ06BxCplv6r w/saR9U9Vsg+F/8bFTZ0PAsmwRvIGTebdfhSdeAPQC/Qni11dE8S1bugXXoH0bjw akJ8xQlmNXFXhke34xjQ8fQTyhqmgkU7BwYfiKGXRq5oSqUvh8xWRkKfqKNhKYHz Z44hGgQrqDv9v/PvT7Y9SyzYUz8xAh264iE7PLwbB2TDtjipQW5QZgka0NLQFfXh Jrj8NZ8jOncIRolmeP4wbeThMLVlFbnqyQhuCK6/h8pSAVP3kgQlAMSuyNB40DuB 6Go+GtIH//OVwT+PL9Rfsfmrt5fPKFJ1JCcUW4yVGYzbVVQSaSl65NWSsNnPIn83 2Q1+jICT/xkjS1JUhgSE18yXPNP+jGSYwZ7TdT7ry1O5+zOsl806yW02hijhDbr/ CplueWHdkrar4gWQA0DlzAybGAHxtEggUgansD/BOjrmXGV2yaxrQAshDnc/uamg yE7NeSkBUNfKSaW4GdZNO63glOPYBF0zmZEHsI/qltYd+KCwffACcfanvXPpKiUt stH4/nhsKrE5yadjDZ0YcPMtuqSyAm1+rgAw9AHDQQL5/HC6bK2RPp/lM6wVNe8r uSdpUr7jWah0s2MZYcg59OO2NHH2KR8jZpAx3PhSk7SLYbunW7fQHh5Kra0UfXKg MyycuqgzruqEZXGF7d+y =Owsz -----END PGP SIGNATURE----- --==-=-=--