mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
gnu: tuxguitar: Update to 1.4.
* gnu/packages/music.scm (tuxguitar): Update to 1.4. [arguments]: Replace build phase "build-editor-utils" with "build-libraries"; install resources to the expected locations.
This commit is contained in:
parent
8723fe23fa
commit
750e54ecbe
1 changed files with 34 additions and 23 deletions
|
@ -1268,7 +1268,7 @@ (define-public bristol
|
||||||
(define-public tuxguitar
|
(define-public tuxguitar
|
||||||
(package
|
(package
|
||||||
(name "tuxguitar")
|
(name "tuxguitar")
|
||||||
(version "1.3.2")
|
(version "1.4")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
|
@ -1276,11 +1276,14 @@ (define-public tuxguitar
|
||||||
version "/tuxguitar-" version "-src.tar.gz"))
|
version "/tuxguitar-" version "-src.tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0ldml31zvywid1w28mfd65ramyiics55fdl0ch846vm7j7nwv58j"))
|
"041275vwfr82kass7wiq9g2y82w9qrbzfinzcvfij2f2q45njwmc"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
;; Delete pre-built classes
|
'(begin
|
||||||
'(delete-file-recursively "TuxGuitar-android/bin"))))
|
;; Delete pre-built classes
|
||||||
|
(delete-file-recursively "TuxGuitar-android-gdrive/bin")
|
||||||
|
(delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
|
||||||
|
#t))))
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:build-target "build"
|
`(#:build-target "build"
|
||||||
|
@ -1289,23 +1292,31 @@ (define-public tuxguitar
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'enter-dir
|
(add-after 'unpack 'enter-dir
|
||||||
(lambda _ (chdir "TuxGuitar-lib") #t))
|
(lambda _ (chdir "TuxGuitar-lib") #t))
|
||||||
(add-after 'build 'build-editor-utils
|
(add-after 'build 'build-libraries
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(chdir "..")
|
(let* ((initial-classpath (getenv "CLASSPATH"))
|
||||||
(let ((cwd (getcwd)))
|
(build-dir (lambda (dir)
|
||||||
(setenv "CLASSPATH"
|
(chdir "..")
|
||||||
(string-append
|
(setenv "CLASSPATH"
|
||||||
cwd "/TuxGuitar-lib/tuxguitar-lib.jar" ":"
|
(string-join (cons initial-classpath
|
||||||
cwd "/TuxGuitar-editor-utils/build/jar/tuxguitar-editor-utils.jar" ":"
|
(find-files (getcwd) "\\.jar$"))
|
||||||
(getenv "CLASSPATH"))))
|
":"))
|
||||||
(chdir "TuxGuitar-editor-utils")
|
(chdir dir)
|
||||||
;; Generate default build.xml
|
(if (file-exists? "build.xml")
|
||||||
((@@ (guix build ant-build-system) default-build.xml)
|
((assoc-ref %standard-phases 'build)
|
||||||
"tuxguitar-editor-utils.jar"
|
#:build-target "build")
|
||||||
(string-append (assoc-ref outputs "out")
|
(begin
|
||||||
"/share/java"))
|
;; Generate default build.xml
|
||||||
((assoc-ref %standard-phases 'build))))
|
((@@ (guix build ant-build-system) default-build.xml)
|
||||||
(add-after 'build-editor-utils 'build-application
|
(string-append (string-downcase dir) ".jar")
|
||||||
|
(string-append (assoc-ref outputs "out")
|
||||||
|
"/share/java"))
|
||||||
|
((assoc-ref %standard-phases 'build)))))))
|
||||||
|
(map build-dir '("TuxGuitar-editor-utils"
|
||||||
|
"TuxGuitar-ui-toolkit"
|
||||||
|
"TuxGuitar-ui-toolkit-swt"
|
||||||
|
"TuxGuitar-awt-graphics")))))
|
||||||
|
(add-after 'build-libraries 'build-application
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "../TuxGuitar")
|
(chdir "../TuxGuitar")
|
||||||
((assoc-ref %standard-phases 'build)
|
((assoc-ref %standard-phases 'build)
|
||||||
|
@ -1322,10 +1333,10 @@ (define-public tuxguitar
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(install-file file lib))
|
(install-file file lib))
|
||||||
(find-files ".." "\\.jar$"))
|
(find-files ".." "\\.jar$"))
|
||||||
|
|
||||||
;; install all resources
|
;; install all resources
|
||||||
(for-each (lambda (file)
|
(copy-recursively "share" share)
|
||||||
(install-file file share))
|
|
||||||
(find-files "share" ".*"))
|
|
||||||
;; create wrapper
|
;; create wrapper
|
||||||
(call-with-output-file (string-append bin "/tuxguitar")
|
(call-with-output-file (string-append bin "/tuxguitar")
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
|
|
Loading…
Reference in a new issue