diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-03-24 15:28:33 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-03-24 20:50:44 +0200 |
commit | 2aab587f842908a886e3bd08b028885dddd650e0 (patch) | |
tree | 87c0723a9ae2c69ab6920d90b6e87ad8510492fe /gnu/packages/imagemagick.scm | |
parent | 5664bcdcb0e4c10dfe48dd5e4730fc3c746a21e2 (diff) | |
parent | 65c46e79e0495fe4d32f6f2725d7233fff10fd70 (diff) | |
download | guix-2aab587f842908a886e3bd08b028885dddd650e0.tar.gz guix-2aab587f842908a886e3bd08b028885dddd650e0.zip |
Merge remote-tracking branch 'origin/master' into core-updates
Diffstat (limited to 'gnu/packages/imagemagick.scm')
-rw-r--r-- | gnu/packages/imagemagick.scm | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/gnu/packages/imagemagick.scm b/gnu/packages/imagemagick.scm index 02a627f17e..a3562f2e13 100644 --- a/gnu/packages/imagemagick.scm +++ b/gnu/packages/imagemagick.scm @@ -51,6 +51,7 @@ ;; maintained. Don't update to 7 until we've made sure that the ImageMagick ;; users are ready for the 7-series API. (version "6.9.11-48") + (replacement imagemagick/fixed) (source (origin (method url-fetch) (uri (string-append "mirror://imagemagick/ImageMagick-" @@ -84,7 +85,8 @@ (let ((doc (assoc-ref outputs "doc"))) (string-append "DOCUMENTATION_PATH = " doc "/share/doc/" - ,name "-" ,version "\n")))) + ,name "-" + ,(package-version this-package) "\n")))) #t)) (add-before 'configure 'strip-configure-xml @@ -126,6 +128,45 @@ transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.") (license (license:fsf-free "http://www.imagemagick.org/script/license.php")))) +(define-public imagemagick/fixed + (package + (inherit imagemagick) + (name "imagemagick") + ;; 'g' for 'guix', appended character to retain version length so grafting + ;; works properly. + (version "6.9.12-2g") + (source (origin + (method url-fetch) + (uri (string-append "mirror://imagemagick/ImageMagick-" + ;; Hardcode the version here since we had to + ;; change it above. + "6.9.12-2.tar.xz")) + (sha256 + (base32 + "17da5zihz58qm41y61sbvw626m5xfwr2nzszlikrvxyq1j1q7asa")))) + (arguments + (substitute-keyword-arguments (package-arguments imagemagick) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'install 'fix-compat-cheat-rename-so + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion + (string-append (assoc-ref outputs "out") + "/lib") + (symlink "libMagick++-6.Q16.so.9.0.0" + "libMagick++-6.Q16.so.8.0.0") + (symlink "libMagick++-6.Q16.so.9" + "libMagick++-6.Q16.so.8") + (symlink "libMagickCore-6.Q16.so.7.0.0" + "libMagickCore-6.Q16.so.6.0.0") + (symlink "libMagickCore-6.Q16.so.7" + "libMagickCore-6.Q16.so.6") + (symlink "libMagickWand-6.Q16.so.7.0.0" + "libMagickWand-6.Q16.so.6.0.0") + (symlink "libMagickWand-6.Q16.so.7" + "libMagickWand-6.Q16.so.6")) + #t)))))))) + (define-public perl-image-magick (package (name "perl-image-magick") |