From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH] Add Aria Maestosa Date: Sun, 3 Apr 2016 22:41:42 +0300 Message-ID: <20160403194142.GH3620@debian-netbook> References: <87twjqirew.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cfJ13FhsvNR/yOpm" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amnu9-0004gr-Ni for guix-devel@gnu.org; Sun, 03 Apr 2016 15:41:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amnu6-0000QD-Fd for guix-devel@gnu.org; Sun, 03 Apr 2016 15:41:49 -0400 Received: from flashner.co.il ([178.62.234.194]:42976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amnu6-0000Pr-4I for guix-devel@gnu.org; Sun, 03 Apr 2016 15:41:46 -0400 Content-Disposition: inline In-Reply-To: <87twjqirew.fsf@elephly.net> 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: Ricardo Wurmus Cc: guix-devel --cfJ13FhsvNR/yOpm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 28, 2016 at 04:54:47PM +0200, Ricardo Wurmus wrote: > Hi Guix, >=20 > this patch adds a MIDI score editor. It depends on this change to > wxwidgets: >=20 > http://lists.gnu.org/archive/html/guix-devel/2016-03/msg01165.html >=20 > ~~ Ricardo >=20 > From d7b316fc86eefa8bfa8ecb51f5a471c0e720c31f Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Mon, 28 Mar 2016 16:52:50 +0200 > Subject: [PATCH] gnu: Add Aria Maestosa. >=20 > * gnu/packages/music.scm (aria-maestosa): New variable. > --- > gnu/packages/music.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 67 insertions(+) >=20 > diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm > index adda16a..bbb9e68 100644 > --- a/gnu/packages/music.scm > +++ b/gnu/packages/music.scm > @@ -83,12 +83,79 @@ > #:use-module (gnu packages texlive) > #:use-module (gnu packages video) > #:use-module (gnu packages web) > + #:use-module (gnu packages wxwidgets) > #:use-module (gnu packages xml) > #:use-module (gnu packages xorg) > #:use-module (gnu packages xiph) > #:use-module (gnu packages zip) > #:use-module ((srfi srfi-1) #:select (last))) > =20 > +(define-public aria-maestosa > + (package > + (name "aria-maestosa") > + (version "1.4.11") > + (source (origin > + (method url-fetch) > + (uri (string-append "mirror://sourceforge/ariamaestosa/ari= amaestosa/" > + version "/AriaSrc-" version ".tar.bz2"= )) > + (sha256 > + (base32 > + "0gf9z96z83jiabxhpl856j15vl9flfgs6x1r0r6hc7g2xvwag0vy"))= )) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ;no tests > + #:phases > + ;; TODO: Add scons-build-system and use it here. > + (modify-phases %standard-phases > + (delete 'configure) > + (add-after 'unpack 'scons-propagate-environment > + (lambda _ > + ;; By design, SCons does not, by default, propagate > + ;; environment variables to subprocesses. See: > + ;; > + ;; Here, we modify the SConstruct file to arrange for > + ;; environment variables to be propagated. > + (substitute* "SConstruct" > + (("env =3D Environment\\(\\)") > + "env =3D Environment(ENV=3Dos.environ)") > + ;; Scons errors out when copying subdirectories from Reso= urces, > + ;; so we move them instead. > + (("Copy") "Move") > + ;; We move the "score" and "Documentation" directories at= once, > + ;; so we have to ignore files contained therein. > + (("if \".svn\" in file" line) > + (string-append line > + " or \"score/\" in file" > + " or \"Documentation/\" in file"))) > + #t)) > + (replace 'build (lambda _ (zero? (system* "scons")))) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out"))) > + (and > + (zero? (system* "scons" > + (string-append "prefix=3D" out) > + "install")) > + ;; Fix directory permissions > + (begin > + (chmod (string-append out "/share/Aria/Documentation")= #o555) > + (chmod (string-append out "/share/Aria/score") #o555) > + #t)))))))) > + (inputs > + `(("wxwidgets" ,wxwidgets) > + ("glib" ,glib) > + ("alsa-lib" ,alsa-lib))) > + (native-inputs > + `(("scons" ,scons) > + ("pkg-config" ,pkg-config))) > + (home-page "http://ariamaestosa.sourceforge.net/") > + (synopsis "MIDI sequencer and editor") > + (description > + "Aria Maestosa is a MIDI sequencer and editor. It lets you compose= , edit > +and play MIDI files with a few clicks in a user-friendly interface offer= ing > +score, keyboard, guitar, drum and controller views.") > + (license license:gpl3+))) > + > (define-public cmus > (package > (name "cmus") > --=20 > 2.7.3 >=20 This built successfully for me with the wxwidgets patch. I opened it to see that it worked. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --cfJ13FhsvNR/yOpm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXAXHxAAoJEPTB05F+rO6TMgwP/3Ux3rJDm35jb38htI/I7Sul gQqnyoJ2reAEF4l8p+X+FMAlPL5/xzvZ54Dt5fSkyO9qL0BWU6fpNaNTkBZUmQ0o xc895ghPBi7ChXuKTfAZ60satHeUb24MnRvxYuQSZJfm9Mb4W7kbXzK/+bHmEodC H1QxwEJREeG0w7OEyh6F6ohqBewAjvf7sUkbzMv28ZNy95iAsxFmjlBCK8hvdiZy 54Lz+3dJ4RyvODM7kqxyISflhxtmy4z/5LDXzQqUfpDV1yPakDII63viogw/cj72 VaS6ugn2LWh7guENA3QgS6HBdRnm+XNQGZMMNbqwwKPOj0nq93z3ehLzg41pK09D NJC7XTo4Y+6sNl6IcaN2gSTacW8pJfPEqdSBt9KwIoieXpmVrYdT25q53mqKGTZB QtZs4F0iH+bFcG2U5124ZEiNC2Ad5kc2H6neAFSFBzU+00jj0xxZxWqlvpLjV6SV rYiVKLI2+lStimSwKhDftm+H/Zl7jEZuFWfd+uVSIHZT/YZpTAu+/H50nrR+BlZP sgp+QkDXpnb8NuhlvAjI8by2sYq+G5ISgGRLDQVU56gEa/HaY+iEKJVtirylyu1q gWwYdxT6Nn5A6T/UKAcPANkihXQUNpvNkKyw+ok43jpTf7PBMXIPYxRJw3I3dNXu rcYdHia3riFyL41Ib1yR =naLf -----END PGP SIGNATURE----- --cfJ13FhsvNR/yOpm--