unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: guix@lprndn.info
To: 40214@debbugs.gnu.org
Cc: L p R n d n <guix@lprndn.info>
Subject: [bug#40214] [PATCH 4/4] gnu: Add mypaint.
Date: Tue, 24 Mar 2020 16:35:08 +0100	[thread overview]
Message-ID: <20200324153508.14166-3-guix@lprndn.info> (raw)
In-Reply-To: <20200324153508.14166-1-guix@lprndn.info>

From: L  p R n  d n <guix@lprndn.info>

* gnu/packages/drawing.scm (mypaint): New variable.
---
 gnu/packages/drawing.scm | 54 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/drawing.scm b/gnu/packages/drawing.scm
index 8b9e6a2ea9..be8a40300a 100644
--- a/gnu/packages/drawing.scm
+++ b/gnu/packages/drawing.scm
@@ -21,10 +21,16 @@
   #:use-module (guix download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system python)
   #:use-module (gnu packages)
   #: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
@@ -87,3 +93,51 @@ MyPaint.")
                                   version ".tar.xz"))
               (sha256 (base32
                        "0rmmkvj24gdk2ramqbv3dyimdads98i9nqnhfbc72igrvr7ag13r"))))))
+
+(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-2)
+       ("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+)))
-- 
2.25.1

  parent reply	other threads:[~2020-03-24 15:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-24 13:34 [bug#40214] [PATCH 1/4] gnu: libmypaint: Update to 1.5.1 Lprndn
2020-03-24 15:35 ` [bug#40214] [PATCH 2/4] gnu: mypaint-brushes: Update to 1.3.1 guix
2020-03-24 15:35   ` [bug#40214] [PATCH 3/4] gnu: Add mypaint-brushes-2 guix
2020-03-24 15:35   ` guix [this message]
2020-04-29 19:48 ` [bug#40214] [PATCH 1/4] gnu: libmypaint: Update to 1.5.1 Leo Famulari
2020-04-30 17:12   ` L p R n d n
2020-04-30 17:48     ` Leo Famulari
2020-04-30 21:13       ` L p R n d n
2020-04-30 21:42         ` Leo Famulari
2020-05-01 10:40           ` L p R n d n
2020-05-01 21:05             ` Leo Famulari
2020-05-02  8:09               ` L p R n d n
2020-05-02 22:40               ` L p R n d n
2020-12-08 20:11                 ` bug#40214: " Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200324153508.14166-3-guix@lprndn.info \
    --to=guix@lprndn.info \
    --cc=40214@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).