gnu: aria-maestosa: Use scons-build-system.

* gnu/packages/music.scm (aria-maestosa)[build-system]: Use
scons-build-system.
[native-inputs]: Remove scons-python2.
[arguments]: Use scons-python2.
<#:phases>: Remove custom phases "build" and "install".
Add custom phase "fix-directory-permissions".
master
Danny Milosavljevic 2018-01-22 16:13:12 +01:00
parent 7ff72b3601
commit 3081244652
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 7 additions and 15 deletions

View File

@ -134,11 +134,11 @@
(sha256 (sha256
(base32 (base32
"1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d")))) "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
(build-system gnu-build-system) (build-system scons-build-system)
(arguments (arguments
`(#:tests? #f ;no tests `(#:tests? #f ;no tests
#:scons ,scons-python2
#:phases #:phases
;; TODO: Add scons-build-system and use it here.
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(add-after 'unpack 'scons-propagate-environment (add-after 'unpack 'scons-propagate-environment
@ -161,26 +161,18 @@
" or \"score/\" in file" " or \"score/\" in file"
" or \"Documentation/\" in file"))) " or \"Documentation/\" in file")))
#t)) #t))
(replace 'build (lambda _ (zero? (system* "scons")))) (add-after 'install 'fix-directory-permissions
(replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(and (chmod (string-append out "/share/Aria/Documentation") #o555)
(zero? (system* "scons" (chmod (string-append out "/share/Aria/score") #o555)
(string-append "prefix=" out) #t))))))
"install"))
;; Fix directory permissions
(begin
(chmod (string-append out "/share/Aria/Documentation") #o555)
(chmod (string-append out "/share/Aria/score") #o555)
#t))))))))
(inputs (inputs
`(("wxwidgets" ,wxwidgets) `(("wxwidgets" ,wxwidgets)
("glib" ,glib) ("glib" ,glib)
("alsa-lib" ,alsa-lib))) ("alsa-lib" ,alsa-lib)))
(native-inputs (native-inputs
`(("scons" ,scons-python2) `(("pkg-config" ,pkg-config)))
("pkg-config" ,pkg-config)))
(home-page "http://ariamaestosa.sourceforge.net/") (home-page "http://ariamaestosa.sourceforge.net/")
(synopsis "MIDI sequencer and editor") (synopsis "MIDI sequencer and editor")
(description (description