guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.

commit 915ff425228826d67adb29e29555eb091b71b7c7
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Sun Sep 28 18:56:27 2025 +0200

    gnu: Add ipe-tools.
    
    * gnu/packages/pdf.scm (ipe-tools): New variable.
---
 gnu/packages/pdf.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 5712ac1e7c..a3a542c6cd 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -57,6 +57,7 @@
   #:use-module (guix build-system ant)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system ocaml)
   #:use-module (guix build-system pyproject)
@@ -443,6 +444,54 @@ for inclusion into LaTeX (or plain TeX) documents as well 
as
 stand-alone documents.")
     (license license:gpl3+)))
 
+(define-public ipe-tools
+  (package
+    (name "ipe-tools")
+    (version "7.2.29.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/otfried/ipe-tools";)
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 
"1n093nmwgsxz67xc0slk5w5jr0zp86wbg8dc012n63kbnij38lp8"))))
+    (build-system copy-build-system)
+    (arguments
+     (list
+      #:install-plan
+      #~`(("annotate/annotate.py" "bin/annotate")
+          ("figtoipe" "bin" #:include ("figtoipe"))
+          ("ipe5toxml" "bin" #:include ("ipe5toxml"))
+          ("pdftoipe" "bin" #:include ("pdftoipe"))
+          ("svgtoipe/svgtoipe.py" "bin/svgtoipe")
+          ("figtoipe" "share/man/1/" #:include ("figtoipe.1"))
+          ("ipe5toxml" "share/man/1/" #:include ("ipe5toxml.1"))
+          ("pdftoipe" "share/man/1/" #:include ("pdftoipe.1"))
+          ("svgtoipe" "share/man/1/" #:include ("svgtoipe.1")))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'install 'build
+            (lambda* (#:key install-plan #:allow-other-keys)
+              (for-each
+               (lambda (dir)
+                 (with-directory-excursion dir
+                   (when (file-exists? "Makefile")
+                     (invoke "make"
+                             (string-append "CC=" #$(cc-for-target))
+                             (string-append "CXX=" #$(cxx-for-target))))))
+               (filter file-is-directory? (map car install-plan))))))))
+    (inputs (list poppler
+                  python
+                  python-pypdf2
+                  zlib))
+    (native-inputs (list pkg-config))
+    (home-page "http://ipe.otfried.org/";)
+    (synopsis "Tools to use with ipe drawing editor")
+    (description "This package provides various tools and helper programs
+to use alongside Ipe.")
+    (license license:gpl3+)))
+
 (define-public poppler
   (package
    (name "poppler")

Reply via email to