mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ImageMagick: Refer to the version number in a more robust way.
* gnu/packages/imagemagick.scm (imagemagick)[arguments]: Replace use of VERSION with (PACKAGE-VERSION THIS-PACKAGE). (imagemagick/fixed): Adjust accordingly.
This commit is contained in:
parent
43cbb05f4b
commit
bb2427fa28
1 changed files with 9 additions and 45 deletions
|
@ -85,7 +85,8 @@
|
||||||
(let ((doc (assoc-ref outputs "doc")))
|
(let ((doc (assoc-ref outputs "doc")))
|
||||||
(string-append "DOCUMENTATION_PATH = "
|
(string-append "DOCUMENTATION_PATH = "
|
||||||
doc "/share/doc/"
|
doc "/share/doc/"
|
||||||
,name "-" ,version "\n"))))
|
,name "-"
|
||||||
|
,(package-version this-package) "\n"))))
|
||||||
#t))
|
#t))
|
||||||
(add-before
|
(add-before
|
||||||
'configure 'strip-configure-xml
|
'configure 'strip-configure-xml
|
||||||
|
@ -131,55 +132,18 @@ text, lines, polygons, ellipses and Bézier curves.")
|
||||||
(package
|
(package
|
||||||
(inherit imagemagick)
|
(inherit imagemagick)
|
||||||
(name "imagemagick")
|
(name "imagemagick")
|
||||||
(version "6.9.12-2g") ;; 'g' for 'guix', appended character to retain
|
;; 'g' for 'guix', appended character to retain version length so grafting
|
||||||
;; version length so grafting works properly.
|
;; works properly.
|
||||||
|
(version "6.9.12-2g")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://imagemagick/ImageMagick-"
|
(uri (string-append "mirror://imagemagick/ImageMagick-"
|
||||||
"6.9.12-2" ;; Hardcode version here since we
|
;; Hardcode the version here since we had to
|
||||||
;; had to change it up there.
|
;; change it above.
|
||||||
".tar.xz"))
|
"6.9.12-2.tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"17da5zihz58qm41y61sbvw626m5xfwr2nzszlikrvxyq1j1q7asa"))))
|
"17da5zihz58qm41y61sbvw626m5xfwr2nzszlikrvxyq1j1q7asa"))))))
|
||||||
(arguments
|
|
||||||
`(#:configure-flags '("--with-frozenpaths" "--without-gcc-arch"
|
|
||||||
|
|
||||||
;; Do not embed the build date in binaries.
|
|
||||||
"--enable-reproducible-build")
|
|
||||||
|
|
||||||
;; FIXME: The test suite succeeded before version 6.9.6-2.
|
|
||||||
;; Try enabling it again with newer releases.
|
|
||||||
#:tests? #f
|
|
||||||
#:phases (modify-phases %standard-phases
|
|
||||||
(add-before
|
|
||||||
'build 'pre-build
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(substitute* "Makefile"
|
|
||||||
;; Clear the `LIBRARY_PATH' setting, which otherwise
|
|
||||||
;; interferes with our own use.
|
|
||||||
(("^LIBRARY_PATH[[:blank:]]*=.*$")
|
|
||||||
"")
|
|
||||||
|
|
||||||
;; Since the Makefile overrides $docdir, modify it to
|
|
||||||
;; refer to what we want.
|
|
||||||
(("^DOCUMENTATION_PATH[[:blank:]]*=.*$")
|
|
||||||
(let ((doc (assoc-ref outputs "doc")))
|
|
||||||
(string-append "DOCUMENTATION_PATH = "
|
|
||||||
doc "/share/doc/"
|
|
||||||
,name "-" ,version "\n"))))
|
|
||||||
#t))
|
|
||||||
(add-before
|
|
||||||
'configure 'strip-configure-xml
|
|
||||||
(lambda _
|
|
||||||
(substitute* "config/configure.xml.in"
|
|
||||||
;; Do not record 'configure' arguments in the
|
|
||||||
;; configure.xml file that gets installed: That would
|
|
||||||
;; include --docdir, and thus retain a reference to the
|
|
||||||
;; 'doc' output.
|
|
||||||
(("@CONFIGURE_ARGS@")
|
|
||||||
"not recorded"))
|
|
||||||
#t)))))))
|
|
||||||
|
|
||||||
(define-public perl-image-magick
|
(define-public perl-image-magick
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue