[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: pdfarranger: Add 'wrap-for-typelib' phase.
From: |
guix-commits |
Subject: |
04/04: gnu: pdfarranger: Add 'wrap-for-typelib' phase. |
Date: |
Mon, 21 Oct 2019 17:30:58 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 8b438f85cf85c1a22273eb6164c7f67f41f29bf4
Author: Ludovic Courtès <address@hidden>
Date: Mon Oct 21 23:22:11 2019 +0200
gnu: pdfarranger: Add 'wrap-for-typelib' phase.
* gnu/packages/pdf.scm (pdfarranger)[arguments]: Add #:phases.
---
gnu/packages/pdf.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 03ffeec..7118afc 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -7,7 +7,7 @@
;;; Copyright © 2016 ng0 <address@hidden>
;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <address@hidden>
;;; Copyright © 2016, 2017 Marius Bakke <address@hidden>
-;;; Copyright © 2016, 2017 Ludovic Courtès <address@hidden>
+;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <address@hidden>
;;; Copyright © 2016 Julien Lepiller <address@hidden>
;;; Copyright © 2016, 2019 Arun Isaac <address@hidden>
;;; Copyright © 2017, 2018 Leo Famulari <address@hidden>
@@ -991,7 +991,16 @@ python-pypdf2 instead.")
(base32 "1f8m8r81322i97wkqpmf7a4kiwnq244n6cnbldh03jc49vwq2kxx"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f)) ; no tests
+ '(#:tests? #f ;no tests
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'wrap-for-typelib
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (program (string-append out "/bin/pdfarranger")))
+ (wrap-program program
+ `("GI_TYPELIB_PATH" ":" prefix
+ (,(getenv "GI_TYPELIB_PATH"))))
+ #t))))))
(native-inputs
`(("intltool" ,intltool)
("python-distutils-extra" ,python-distutils-extra)))