gnu: gnome: Version splitting and line wrapping.
* gnu/packages/gnome.scm (orbit2): Wrape code to 80 characters. Use string-split/string-join to get version major/minor numbers. (libbonoboui): Likewise.
This commit is contained in:
parent
221ed17a58
commit
5becd02510
|
@ -694,16 +694,17 @@ featuring mature C, C++ and Python bindings.")
|
||||||
(version "2.32.1")
|
(version "2.32.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append "mirror://gnome/sources/" name "/"
|
||||||
"mirror://gnome/sources/" name "/" (string-take version 4) "/" name "-"
|
(string-join (take (string-split version #\.) 2)
|
||||||
version
|
".")
|
||||||
".tar.bz2"))
|
"/" name "-" version ".tar.bz2"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))))
|
(base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; The programmer kindly gives us a hook to turn off deprecation warnings ...
|
;; The programmer kindly gives us a hook to turn off deprecation warnings ...
|
||||||
`(#:configure-flags '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
|
`(#:configure-flags
|
||||||
|
'("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
|
||||||
;; ... which they then completly ignore !!
|
;; ... which they then completly ignore !!
|
||||||
#:phases
|
#:phases
|
||||||
(alist-cons-before
|
(alist-cons-before
|
||||||
|
@ -1063,9 +1064,9 @@ widgets built in the loading process.")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"mirror://gnome/sources/" name "/" (string-take version 3) "/" name "-"
|
"mirror://gnome/sources/" name "/"
|
||||||
version
|
(string-join (take (string-split version #\.) 2) ".")
|
||||||
".tar.bz2"))
|
"/" name "-" version ".tar.bz2"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
|
"1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
|
||||||
|
|
Loading…
Reference in New Issue