unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Yoshinori Arai <kumagusu08@gmail.com>
To: 34283@debbugs.gnu.org
Subject: [bug#34283] [PATCH]Add: mypaint
Date: Sat, 2 Feb 2019 13:44:21 +0900	[thread overview]
Message-ID: <20190202044421.44toqidrwk2f6acn@WaraToNora> (raw)

Hello,

I made mypaint package from git version.
libmypaint-git, mypaint-brushes-git may be conflict with gimp package.

From c9d5b440a6affccd0852e8686482b64aaef06bea Mon Sep 17 00:00:00 2001
From: Yoshinori Arai <kumagusu08@gmail.com>
Date: Sat, 2 Feb 2019 13:23:33 +0900
Subject: [PATCH] Add: mypaint

---
 gnu/packages/mypaint.scm | 132 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 132 insertions(+)
 create mode 100644 gnu/packages/mypaint.scm

diff --git a/gnu/packages/mypaint.scm b/gnu/packages/mypaint.scm
new file mode 100644
index 000000000..8c6edeffb
--- /dev/null
+++ b/gnu/packages/mypaint.scm
@@ -0,0 +1,132 @@
+(define-module (gnu packages mypaint)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix utils)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix build-system python)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages gettext)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages swig)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages ghostscript)
+  #:use-module (gnu packages gimp)
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages web)
+  #:use-module (gnu packages python))
+
+(define-public libmypaint-git
+  (let ((commit "0c07191409bd257084d4ea7576deb832aac8868b")
+        (revision "1"))
+    (package
+      (name "libmypaint-git")
+      (version (git-version "2.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/mypaint/libmypaint.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0x5yacdj4bfm298ijv64igv06yjr401g6giln5wrdpv0pixg8ig3"))))
+      ;;Using glib-or-gtk-build-system, I got error as follows.
+      ;;configure.ac:243: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
+      ;;If this token and others are legitimate, please use m4_pattern_allow.
+      ;;See the Autoconf documentation.
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("intltool" ,intltool)
+         ("libtool" ,libtool)
+         ("automake" ,automake)
+         ("autoconf" ,autoconf)
+         ("python-2" ,python-2)  ;need to generate headers in autogen.sh
+         ("pkg-config" ,pkg-config)))
+      ;; As needed by 'libmypaint.pc'.
+      (propagated-inputs
+       `(("json-c" ,json-c)
+         ("gobject-introspection" ,gobject-introspection)))
+      (inputs
+       `(("glib" ,glib)))
+      (home-page "http://mypaint.org/")
+      (synopsis "Brush library")
+      (description "This library used by MyPaint and other painting programs use it too")
+      (license license:isc))))
+
+(define-public mypaint-brushes-git
+  (let ((commit "769ec941054725a195e77d8c55080344e2ab77e4")
+        (revision "1"))
+    (package
+      (name "mypaint-brushes-git")
+      (version (git-version "2.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/mypaint/mypaint-brushes.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0viilmad809qg12xw11p1yv0lwbgjfkcv82g2avwzdaa6wy783pf"))))
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("autoconf" ,autoconf)
+         ("automake" ,automake)))
+      (home-page "http://mypaint.org/")
+      (synopsis "Brushes for MyPaint")
+      (description "Brushes used by MyPaint and other software using libmypaint")
+      (license license:cc0))))
+
+(define-public mypaint-git
+  (let ((commit "57685af8dbd65719d7874bc501094bade85d94e7")
+        (revision "1"))
+    (package
+      (name "mypaint-git")
+      (version (git-version "2.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/mypaint/mypaint.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "14dmnwma8gsfd5hv3cvwkzyd3v392h4g1zp7i38295cf39yf61y6"))))
+      (build-system python-build-system)
+      (arguments
+       `(#:python ,python-2
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'fix-for-buildconfig-and-test
+             (lambda _
+               (for-each make-file-writable (find-files "." ".*"))
+               ;; FATAL: Cannot create cache dir '/homeless-shelter
+               (setenv "HOME" "/tmp")))
+           (replace 'install
+             (lambda _
+               (invoke "python" "setup.py" "managed_install"
+                       (string-append "--prefix=" (assoc-ref %outputs "out"))))))))
+      (native-inputs
+       `(("pkg-config" ,pkg-config)
+         ("lcms" ,lcms)
+         ("libmypaint" ,libmypaint-git)
+         ("mypaint-brushes" ,mypaint-brushes-git)))
+      (inputs
+       `(("python2-pygobject" ,python2-pygobject)
+         ("swig" ,swig)
+         ("gettext" ,gettext-minimal)
+         ("python2-numpy" ,python2-numpy)
+         ("python2-pycairo" ,python2-pycairo)))
+      (propagated-inputs
+       `(("gtk+" ,gtk+)
+         ("librsvg" ,librsvg)
+         ("gdk-pixbuf" ,gdk-pixbuf+svg)))
+      (home-page "http://mypaint.org/")
+      (synopsis "Simple drawing and painting program")
+      (description "MyPaint is a fast, free, and easy graphics app
+for digital painters.  MyPaint works best with a graphics tablet.")
+      (license license:gpl2+))))
-- 
2.20.1

             reply	other threads:[~2019-02-02  4:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-02  4:44 Yoshinori Arai [this message]
2019-02-05  5:43 ` [bug#34283] [PATCH]Add: mypaint swedebugia
2019-02-05  5:52 ` [bug#34283] [PATCH] Add: mypaint Maxim Cournoyer
2019-02-05  9:23   ` Yoshinori Arai
2019-02-05 11:42 ` [bug#34283] [PATCH]Add: mypaint Björn Höfling
2019-02-06 11:03   ` Yoshinori Arai
2019-02-07 11:13   ` Yoshinori Arai
2019-02-10 19:57     ` Danny Milosavljevic
2019-02-10 22:15       ` Yoshinori Arai
2019-02-08  4:26   ` Yoshinori Arai
2019-02-08  4:30     ` Brett Gilio
2019-02-09 22:54       ` Yoshinori Arai
2019-02-10  1:24         ` Brett Gilio
2019-02-10  2:36           ` Yoshinori Arai
2019-02-08  7:22 ` [bug#34283] [PATCH-1/4]Add: mypaint@1.2.1 Yoshinori Arai
2019-06-28  5:34   ` swedebugia
2019-02-08  7:24 ` [bug#34283] [PATCH-2/4]Add: libmypaint@2.0.0-alpha Yoshinori Arai
2019-02-08  7:25 ` [bug#34283] [PATCH-3/4]Add: mypaint-blushes@2.0.1 Yoshinori Arai
2019-02-08  7:27 ` [bug#34283] [PATCH-4/4]Add: mypaint@2.0.0-alpha.2 Yoshinori Arai
2021-01-15 19:50 ` bug#34283: [PATCH]Add: mypaint Julien Lepiller

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=20190202044421.44toqidrwk2f6acn@WaraToNora \
    --to=kumagusu08@gmail.com \
    --cc=34283@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).