guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.
commit 3d17122da396011c9a780e32895367f89685aa7d
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Sun Sep 28 18:56:18 2025 +0200
gnu: Add ipe.
* gnu/packages/pdf.scm (ipe): New variable.
---
gnu/packages/pdf.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 63af78ec26..5712ac1e7c 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -97,6 +97,7 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages lua)
#:use-module (gnu packages man)
+ #:use-module (gnu packages maths)
#:use-module (gnu packages markup)
#:use-module (gnu packages ninja)
#:use-module (gnu packages nss)
@@ -390,6 +391,58 @@ times. If you have a second page, Flyer Composer can
arrange it the same way
This package contains only the command line tool. If you like to use the gui,
please install the @code{flyer-composer-gui} package.")))
+(define-public ipe
+ (package
+ (name "ipe")
+ (version "7.2.30")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/otfried/ipe")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00fj1ky1bmjyaaxsyj4wqzm2d2zbpp3syj9chbi2jwpz8f009z3f"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (substitute* (find-files "src" "Makefile$")
+ (("-L\\$\\(buildlib\\)")
+ "-L$(buildlib) -Wl,-rpath=$(IPELIBDIR)"))))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:make-flags
+ #~(list (string-append "IPEPREFIX=" #$output)
+ "LUA_PACKAGE=lua-5.4"
+ (string-append
+ "MOC="
+ (search-input-file %build-inputs "lib/qt6/libexec/moc")))
+ #:tests? #f ; no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "src"))))))
+ (inputs (list cairo
+ curl
+ freetype
+ gsl
+ libjpeg-turbo
+ libspiro
+ lua-5.4
+ qtbase
+ qtspell
+ qtsvg
+ zlib))
+ (native-inputs (list pkg-config))
+ (home-page "http://ipe.otfried.org/")
+ (synopsis "Extensible drawing editor")
+ (description "Ipe is an editor to create figures in PDF format,
+for inclusion into LaTeX (or plain TeX) documents as well as
+stand-alone documents.")
+ (license license:gpl3+)))
+
(define-public poppler
(package
(name "poppler")