From: Andreas Enge <andreas@enge.fr>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: tuxguitar: Update to 1.3.2.
Date: Thu, 4 Aug 2016 10:43:41 +0200 [thread overview]
Message-ID: <20160804084341.GA1715@solar> (raw)
In-Reply-To: <20160803164503.10103-1-rekado@elephly.net>
Hello,
On Wed, Aug 03, 2016 at 06:45:03PM +0200, Ricardo Wurmus wrote:
> * gnu/packages/music.scm (tuxguitar): Update to 1.3.2.
> [arguments]: Use ant-build-system and rearrange build phases.
> [native-inputs]: Remove field.
looks good!
> + (add-after 'unpack 'enter-dir-and-set-flags
> + (lambda _ (chdir "TuxGuitar-lib") #t))
The name of the phase seems to be inherited from a previous edition where
flags were set.
> + ;; create wrapper
> + (call-with-output-file (string-append bin "/tuxguitar")
> + (lambda (port)
> + (let ((classpath (string-join (append (find-files lib "\\.jar$")
> + (find-files swt "\\.jar$"))
> + ":")))
> + (format
> + port
> + (string-append "#!/bin/sh\n"
> + (which "java")
> + " -cp " classpath
> + " -Dtuxguitar.home.path=" out
> + " -Dtuxguitar.share.path=" out "/share"
> + " -Dswt.library.path=" swt "/lib"
> + " org.herac.tuxguitar.app.TGMainSingleton"
> + " \"$1\" \"$2\"")))))
> + (chmod (string-append bin "/tuxguitar") #o555)
> + #t))))))
This one I do not fully understand; my first impression was that it used
the file names from the build directory for the classpath variable. But this
is working since they are relative file names? And the "-D" parameters make
that they are searched for in the correct directories? Should these be
replaced by absolute file names (which might end up being too long)?
Andreas
next prev parent reply other threads:[~2016-08-04 8:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 16:45 [PATCH] gnu: tuxguitar: Update to 1.3.2 Ricardo Wurmus
2016-08-04 8:43 ` Andreas Enge [this message]
2016-08-04 12:41 ` Ricardo Wurmus
2016-08-04 12:45 ` Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160804084341.GA1715@solar \
--to=andreas@enge.fr \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.