From patchwork Sat Feb 2 04:44:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Arai X-Patchwork-Id: 944 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2061816B58; Sat, 2 Feb 2019 04:46:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A3E0B16AFA for ; Sat, 2 Feb 2019 04:46:22 +0000 (GMT) Received: from localhost ([127.0.0.1]:37289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpnC9-0000Cb-RR for patchwork@mira.cbaines.net; Fri, 01 Feb 2019 23:46:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpnBx-0000BR-TK for guix-patches@gnu.org; Fri, 01 Feb 2019 23:46:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpnBw-0001OK-Fz for guix-patches@gnu.org; Fri, 01 Feb 2019 23:46:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpnBq-0001Kx-QM for guix-patches@gnu.org; Fri, 01 Feb 2019 23:46:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpnBq-00085M-KI for guix-patches@gnu.org; Fri, 01 Feb 2019 23:46:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34283] [PATCH]Add: mypaint Resent-From: Yoshinori Arai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Feb 2019 04:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34283@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154908270230980 (code B ref -1); Sat, 02 Feb 2019 04:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Feb 2019 04:45:02 +0000 Received: from localhost ([127.0.0.1]:55385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpnAr-00083H-F6 for submit@debbugs.gnu.org; Fri, 01 Feb 2019 23:45:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpnAo-000831-8K for submit@debbugs.gnu.org; Fri, 01 Feb 2019 23:44:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:35213) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpnAi-0000Ez-Vf for submit@debbugs.gnu.org; Fri, 01 Feb 2019 23:44:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpnAh-00080M-OS for guix-patches@gnu.org; Fri, 01 Feb 2019 23:44:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpnAc-0000CU-BV for guix-patches@gnu.org; Fri, 01 Feb 2019 23:44:48 -0500 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:40714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpnAY-00005I-OX for guix-patches@gnu.org; Fri, 01 Feb 2019 23:44:44 -0500 Received: by mail-pf1-x442.google.com with SMTP id i12so4244779pfo.7 for ; Fri, 01 Feb 2019 20:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=LMw36Ra7YoYpjvwAsajHUi/AgJtLaRafLLLjPCcTjq8=; b=AWl79LRU69kH8bqK35yf8hGmauKM6MOD6xVvVU/86siJCbxqnVuwWF7H6kFeC/RrO8 M7rwEyqiA/kdESnBfRaWoiq9S+N70vcLeVEalG0Fy4SfpN1NofyCbhDF3P4l4geSiPn/ UE8P/Z3ArV+nUbXC5qmKiKiCtn3Zzn9J8TXRsPWrpahF+am9tQtmhrzKK0dfECrmgc/N JnsqclS4c1GaXgHn7jupTmeDIpJymfv7xZFCCBHO+RJdRDGXRkMkXuyxkwO1BOMs1Pzq e4TNQi8mPOBBqSXOOPGxrYMmyiR48G3Uc4soUw+yDgem3AGDx6LxnoIi22gZmKcVNkzU xMgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=LMw36Ra7YoYpjvwAsajHUi/AgJtLaRafLLLjPCcTjq8=; b=JDTwZs3/nrYbGCuMess/rJk81ws097RMDu4pJM23DKWVdpoxcmWyq93/uyPl/oklYp IwvFSEhDGdTpuIZnR8OSAMIysf+rJwaTteobOmcR1wav5nwkIFCGQ9a63USmjgoOD1KZ p8a/gXvwfdsNurbdOaKus0arWYjDLf3Z2WDFA2Vg/ZmHB8osZfc5rOBTSgYBKmJ1Cl+z QFCnb/iAc09+sPZz2zinfHbt285evlAiqWhqhok3LJF8UuPUW6/Hi1u8Tq6jIKuzfubh hLQ7a9KDJ5z5lEN/p+rYEH08FSMnRH/IC0w9fu2nL+cjFxQZms1vhFBzbmPFzzLEEz21 Vz1g== X-Gm-Message-State: AJcUukdj0LLORPBzr1OT3Tnl5HzzDJfJlow6yixOt+XF7cBqgqVrKwqr CHmC1Lt0CUVDNAvVvCLOh0SXQJ7cqcKQDw== X-Google-Smtp-Source: ALg8bN63H6BxGvrUp0bryR/99zkosB/aKjLNhKgjgoxKb2DJVtyZJEmYc3GSkO2PwIut9Cdu8gQ7rg== X-Received: by 2002:a62:8add:: with SMTP id o90mr41948355pfk.210.1549082670149; Fri, 01 Feb 2019 20:44:30 -0800 (PST) Received: from localhost ([2409:11:4a40:3600:afd4:3247:4a32:242a]) by smtp.gmail.com with ESMTPSA id 125sm13529310pfd.124.2019.02.01.20.44.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Feb 2019 20:44:29 -0800 (PST) Date: Sat, 2 Feb 2019 13:44:21 +0900 From: Yoshinori Arai Message-ID: <20190202044421.44toqidrwk2f6acn@WaraToNora> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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 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+))))