From patchwork Fri Feb 8 07:22:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Arai X-Patchwork-Id: 991 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 41AC816B51; Fri, 8 Feb 2019 07:23:08 +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=ham 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 CAD4916AF2 for ; Fri, 8 Feb 2019 07:23:07 +0000 (GMT) Received: from localhost ([127.0.0.1]:52389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs0V9-00076X-7b for patchwork@mira.cbaines.net; Fri, 08 Feb 2019 02:23:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs0V6-00076R-My for guix-patches@gnu.org; Fri, 08 Feb 2019 02:23:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gs0V5-0007yj-4Q for guix-patches@gnu.org; Fri, 08 Feb 2019 02:23:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gs0V4-0007yP-9F for guix-patches@gnu.org; Fri, 08 Feb 2019 02:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gs0V4-0002yw-34 for guix-patches@gnu.org; Fri, 08 Feb 2019 02:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34283] [PATCH-1/4]Add: mypaint@1.2.1 References: <20190202044421.44toqidrwk2f6acn@WaraToNora> In-Reply-To: <20190202044421.44toqidrwk2f6acn@WaraToNora> Resent-From: Yoshinori Arai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Feb 2019 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34283@debbugs.gnu.org Received: via spool by 34283-submit@debbugs.gnu.org id=B34283.154961057211430 (code B ref 34283); Fri, 08 Feb 2019 07:23:02 +0000 Received: (at 34283) by debbugs.gnu.org; 8 Feb 2019 07:22:52 +0000 Received: from localhost ([127.0.0.1]:38846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs0Uu-0002yH-3I for submit@debbugs.gnu.org; Fri, 08 Feb 2019 02:22:52 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:40781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs0Us-0002y3-28 for 34283@debbugs.gnu.org; Fri, 08 Feb 2019 02:22:50 -0500 Received: by mail-pg1-f172.google.com with SMTP id z10so1196733pgp.7 for <34283@debbugs.gnu.org>; Thu, 07 Feb 2019 23:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=A8cx7t5Tt6ijX3PIfxwYVEIlRNJsFKV4z2AUvPI9wYw=; b=r8bjqbx6rVQQqFfgA1vqld6GSvdMLv5upW2S3HtYyN55GOhA7Qa6DG3VUenWOTcePY vgwLq9GWU3ElXf8KgE+XCHNqKm4CuHraRM71QtugHX6yAC67OAwT7ccLRRBdEPf2eZt/ LXrDOMPtJaoR03e5ydfoPo1K6RYPAnhUXp5URkfio47IRcxryfF3WG2wEFWpQF5hI+n+ 5zIMTPFcelDogfTwsYucvOHjbajz5yWe1iemh2ZPrMwyZPGhkYZrSsdau5YQ2e5AFyAa IPUkuJ5QFoxKsXvKU6zbZsuniZatm9f42JALUmxUhrm8mL634EDNWOTAYcREQEKJ4MIT Cupw== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=A8cx7t5Tt6ijX3PIfxwYVEIlRNJsFKV4z2AUvPI9wYw=; b=IEjwrZ+eZF0CMNTfFSyVHo9zlnUBW4hKuKufDsOF2wYaMdnhjV+a1v65CRvyW75o1q IZCWj2i0r5VjR7agCj7TuY7l7wjVjQ7Vn1OoNTCy65strD1WX7zaLyVI6mN2nkilZbLv X8hYLCArsilUuNnnkoFqZudr6ihaqA5M6m45nO09Eg1OvNfLHd/ZwAlz5wclATdIim92 7ZJ9MbfalkDc/GCgfKmRHJolJJ2OqC7NLKS0Ck6maPF8eHcGvZwlJbW9afIwSVCiRj0m CfxtdfQObKLbnfv6NtNFwy4I6yYc0FJNVE/D+Jz2VF/o97/LB5xZbrLQdNqjIRPki43e /KSw== X-Gm-Message-State: AHQUAuZFBZA5HtxTsdf1DSDsSFQOemMgDDZeVi7kDQBaxHWYQbBcatM+ jJv5Qm0enUvAYxw7Rt2iJzjxmnIeho8= X-Google-Smtp-Source: AHgI3IZQoX5F3S4YcezXyizwNFwfeHWcyk0oZI0cDILx92NTn39X5kv8Udb6uDXpCAw0AnAtaj0dEw== X-Received: by 2002:a65:628e:: with SMTP id f14mr2051419pgv.193.1549610563699; Thu, 07 Feb 2019 23:22:43 -0800 (PST) Received: from localhost ([2409:11:4a40:3600:afd4:3247:4a32:242a]) by smtp.gmail.com with ESMTPSA id g136sm2112177pfb.154.2019.02.07.23.22.42 for <34283@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 23:22:43 -0800 (PST) Date: Fri, 8 Feb 2019 16:22:40 +0900 From: Yoshinori Arai Message-ID: <20190208072240.sbx6xmzheyxyinkw@WaraToNora> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 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 From 9fe8e0b3cb260da2bae0de7c2c5d0963c4f543a6 Mon Sep 17 00:00:00 2001 From: Yoshinori Arai Date: Fri, 8 Feb 2019 12:41:11 +0900 Subject: [PATCH 1/4] Add: mypaint@1.2.1 --- gnu/packages/graphics.scm | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index bf4cc89b0..6663ff7dc 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -41,7 +41,9 @@ #:use-module (gnu packages flex) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) + #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) + #:use-module (gnu packages gimp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) @@ -70,6 +72,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system scons) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -856,3 +859,55 @@ your terminal. It comes bundled with predefined styles: look. The result can be uploaded on any web server without additional requirements.") (license license:gpl2+))) + +(define-public mypaint + (package + (name "mypaint") + (version "1.2.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/" name "/" name + "/releases/download/v" version + "/" name "-" version ".tar.xz")) + (sha256 + (base32 + "1iykjvfis5y71wn9wyxpmha7vb4pgr10dbpgglymh33a5ww4j8zd")))) + (build-system scons-build-system) + (arguments + `(#:tests? #f ;; need graphical environment + #:scons ,scons-python2 + #:scons-flags + (list (string-append "numpy_include=" + (assoc-ref %build-inputs "python2-numpy") + "/lib/python2.7/site-packages/numpy/core/include") + (string-append "prefix=" (assoc-ref %outputs "out"))))) + ;; README_LINUX.md + ;;-If testing outside a graphical environment (anywhere Gdk refuses + ;; to initialize), limit the doctests to just `lib/` and `brushlib/`. + ;;-There are several interactive GUI tests in the `tests/` folder + ;; which `nosetests` does not run - quite intentionally - + ;; because their executable bit is set. + ;;#:phases + ;;(modify-phases %standard-phases + ;; (replace 'check + ;; (lambda _ + ;; (invoke "nosetests" "--with-doctest")))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("python" ,python-2) + ("lcms" ,lcms) + ("swig" ,swig))) + ;;("python-nose" ,python2-nose))) ;; for test + (inputs + `(("gettext" ,gettext-minimal) + ("libmypaint" ,libmypaint) + ("mypaint-brushes" ,mypaint-brushes))) + (propagated-inputs + `(("gtk+" ,gtk+) + ("python2-pygobject" ,python2-pygobject) + ("python2-numpy" ,python2-numpy) + ("python2-pycairo" ,python2-pycairo))) + (home-page "http://mypaint.org/") + (synopsis "Simple drawing and painting program") + (description "MyPaint is a fast and easy graphics app for digital painters.") + (license license:gpl2+)))