From 6666350320098453a211cd98d041252162063c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 7 Oct 2013 23:45:55 +0200 Subject: [PATCH] gnu: Add Cairomm. * gnu/packages/gtk.scm (cairomm): New variable. --- gnu/packages/gtk.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 455d568490..44687e0072 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -382,3 +382,36 @@ importantly, it is pleasant to use. You get a powerful and well-maintained graphics library with all of the benefits of Scheme: memory management, exceptions, macros, and a dynamic programming environment.") (license license:lgpl3+))) + + +;;; +;;; C++ bindings. +;;; + +(define-public cairomm + (package + (name "cairomm") + (version "1.10.0") + (source (origin + (method url-fetch) + (uri (string-append "http://cairographics.org/releases/cairomm-" + version ".tar.gz")) + (sha256 + (base32 + "13rrp96px95m6xnvmsaqb0wcqsnizg3bz334k0yhlyxf7v29d386")))) + (build-system gnu-build-system) + (arguments + ;; The examples lack -lcairo. + '(#:make-flags '("LDFLAGS=-lcairo"))) + (inputs `(("pkg-config" ,pkg-config))) + (propagated-inputs + `(("libsigc++" ,libsigc++) + ("freetype" ,freetype) + ("fontconfig" ,fontconfig) + ("cairo" ,cairo))) + (home-page "http://cairographics.org/") + (synopsis "C++ bindings to the Cairo 2D graphics library") + (description + "Cairomm provides a C++ programming interface to the Cairo 2D graphics +library.") + (license license:lgpl2.0+)))