;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014, 2015 Ludovic Courtès ;;; Copyright © 2016, 2018 Ricardo Wurmus ;;; Copyright © 2016, 2017, 2018, 2020 Efraim Flashner ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2018 Leo Famulari ;;; Copyright © 2018 Thorsten Wilms ;;; Copyright © 2020, L p R n d n ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages drawing) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (gnu packages autotools) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python-xyz) #:use-module (gnu packages swig) #:use-module (gnu packages web)) (define-public libmypaint (package (name "libmypaint") (version "1.5.1") (source (origin (method url-fetch) (uri (string-append "https://github.com/mypaint/libmypaint/" "releases/download/v" version "/libmypaint-" version ".tar.xz")) (sha256 (base32 "0aqcv4fyscpfhknxgfpq0v84aj2nzigqvpi4zgv2zkl41h51by5f")))) (build-system gnu-build-system) (native-inputs `(("intltool" ,intltool) ("pkg-config" ,pkg-config))) ;; As needed by 'libmypaint.pc'. (propagated-inputs `(("json-c" ,json-c) ("gobject-introspection" ,gobject-introspection))) (inputs `(("glib" ,glib))) (synopsis "Artistic brushes library") (description "Libmypaint, also called \"brushlib\", is a library for making brushstrokes which is used by MyPaint and GIMP.") (home-page "http://mypaint.org") (license license:isc))) (define-public mypaint-brushes (package (name "mypaint-brushes") (version "2.0.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mypaint/mypaint-brushes.git") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0kcqz13vzpy24dhmrx9hbs6s7hqb8y305vciznm15h277sabpmw9")))) (build-system gnu-build-system) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake))) (synopsis "Default brushes for MyPaint") (description "This package provides the default set of brushes for MyPaint.") (home-page "https://github.com/mypaint/mypaint-brushes/") ;; Scripts are distributed under GPL2+ terms, brushes are provided as ;; public domain or under CC0 terms. (license (list license:gpl2+ license:cc0 license:public-domain)))) (define-public mypaint-brushes-1.3 (package (inherit mypaint-brushes) (name "mypaint-brushes") (version "1.3.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mypaint/mypaint-brushes.git") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1c95l1vfz7sbrdlzrbz7h1p6s1k113kyjfd9wfnxlm0p6562cz3j")))))) (define-public mypaint (package (name "mypaint") (version "2.0.0") (source (origin (method url-fetch) (uri (string-append "https://github.com/mypaint/mypaint/" "releases/download/v" version "/mypaint-" version ".tar.xz")) (sha256 (base32 "0pja0w005qn0qzy01y0nwbvi7xnmpq5s2bdlhhg8r4s2wdk7imni")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'fix-relinfo (lambda _ ;; #1058 https://github.com/mypaint/mypaint/pull/1058 (substitute* "lib/meta.py" (("relinfo_fp,") "relinfo_fp.read(),")) #t)) (add-before 'check 'pre-check (lambda _ ;; Tests need writing access (setenv "HOME" "/tmp") #t))))) (native-inputs `(("pkg-config" ,pkg-config) ("gobject-introspection" ,gobject-introspection) ("swig" ,swig) ("gettext" ,gettext-minimal))) (inputs `(("gtk+" ,gtk+) ("gdk-pixbuf" ,gdk-pixbuf) ("libmypaint" ,libmypaint) ("mypaint-brushes" ,mypaint-brushes) ("json-c" ,json-c) ("lcms" ,lcms) ("python-numpy" ,python-numpy) ("python-pycairo" ,python-pycairo) ("python-pygobject" ,python-pygobject))) (home-page "http://mypaint.org/") (synopsis "Fast and dead-simple painting app for artists") (description "MyPaint is a simple drawing and painting program that works well with Wacom-style graphics tablets.") (license license:gpl2+)))