[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
169/334: gnu: Add poly2tri-c.
From: |
guix-commits |
Subject: |
169/334: gnu: Add poly2tri-c. |
Date: |
Sat, 15 Aug 2020 16:26:56 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit bc5d3bc4ee4654584b481e20a37b2e02960520b4
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Mon Jul 20 08:45:05 2020 -0400
gnu: Add poly2tri-c.
* gnu/packages/gimp.scm (poly2tri-c): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gimp.scm | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index f72cd27..ad00818 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -34,6 +34,8 @@
#:use-module (gnu packages)
#:use-module (gnu packages algebra)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages base)
+ #:use-module (gnu packages documentation)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
@@ -50,6 +52,81 @@
#:use-module (gnu packages web)
#:use-module (gnu packages xorg))
+(define-public poly2tri-c
+ (package
+ (name "poly2tri-c")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://storage.googleapis.com/"
+ "google-code-archive-source/v2/code.google.com/"
+ "poly2tri-c/source-archive.zip"))
+ (file-name
+ (string-append name "-" version ".zip"))
+ (sha256
+ (base32 "17cw0zhbnf2gb59jm26z0wcarqgdwir9jr1fpi3v9lcvyb2s3mqj"))))
+ (build-system glib-or-gtk-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ `(#:configure-flags
+ (list
+ "--disable-static")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-strict-rules
+ (lambda _
+ (substitute* "configure.ac"
+ (("\\$CFLAGS -Wall -ansi -pedantic")
+ "$CFLAGS")
+ (("\\$CFLAGS -Werror")
+ "$CFLAGS"))
+ #t))
+ (add-after 'disable-strict-rules 'fix-build-errors
+ (lambda _
+ (substitute* "poly2tri-c/refine/Makefile.am"
+ (("cdt.c")
+ "rcdt.c")
+ (("cdt.h")
+ "rcdt.h")
+ (("utils.c")
+ "rutils.c")
+ (("utils.h")
+ "rutils.h"))
+ #t))
+ (add-before 'bootstrap 'configure-later
+ (lambda _
+ (setenv "NOCONFIGURE" "set")
+ #t))
+ (add-after 'build 'generate-doc
+ (lambda _
+ (invoke "doxygen")
+ #t))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (copy-recursively
+ "doc"
+ (string-append doc "/share/doc/poly2tri-c"))
+ #t))))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("doxygen" ,doxygen)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ("unzip" ,unzip)
+ ("which" ,which)))
+ (propagated-inputs
+ `(("glib" ,glib)))
+ (synopsis "2D constrained Delaunay triangulation library")
+ (description "Poly2Tri-C is a library for generating, refining and
rendering
+2-Dimensional Constrained Delaunay Triangulations.")
+ (home-page "https://code.google.com/archive/p/poly2tri-c/")
+ (license license:bsd-3)))
+
(define-public babl
(package
(name "babl")
- 149/334: gnu: Add libsigc++-2., (continued)
- 149/334: gnu: Add libsigc++-2., guix-commits, 2020/08/15
- 150/334: gnu: cairomm: Update package definition., guix-commits, 2020/08/15
- 154/334: gnu: atkmm: Update package definition., guix-commits, 2020/08/15
- 155/334: gnu: pangomm: Update package definition., guix-commits, 2020/08/15
- 157/334: gnu: java-jakarta-oro: Update hash., guix-commits, 2020/08/15
- 161/334: gnu: gobject-introspection: Propagate glib., guix-commits, 2020/08/15
- 162/334: gnu: amtk: Update package definition., guix-commits, 2020/08/15
- 163/334: gnu: babl: Update package definition., guix-commits, 2020/08/15
- 166/334: gnu: Add dee., guix-commits, 2020/08/15
- 168/334: gnu: folks: Update package definition., guix-commits, 2020/08/15
- 169/334: gnu: Add poly2tri-c.,
guix-commits <=
- 173/334: gnu: geocode-glib: Update package definition., guix-commits, 2020/08/15
- 176/334: gnu: gnome-autoar: Update package definition., guix-commits, 2020/08/15
- 181/334: gnu: gobject-introspection: Add patches back., guix-commits, 2020/08/15
- 183/334: gnu: gom: Update package definition., guix-commits, 2020/08/15
- 184/334: gnu: grilo: Update package definition., guix-commits, 2020/08/15
- 185/334: gnu: Add pedansee., guix-commits, 2020/08/15
- 187/334: gnu: gssdp: Update package definition., guix-commits, 2020/08/15
- 191/334: gnu: gupnp-dlna: Update package definition., guix-commits, 2020/08/15
- 189/334: gnu: gupnp-av: Update package definition., guix-commits, 2020/08/15
- 193/334: gnu: gspell: Update package definition., guix-commits, 2020/08/15