From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#34283] [PATCH-1/4]Add: mypaint@1.2.1 References: <20190202044421.44toqidrwk2f6acn@WaraToNora> In-Reply-To: <20190202044421.44toqidrwk2f6acn@WaraToNora> Resent-Message-ID: Date: Fri, 8 Feb 2019 16:22:40 +0900 From: Yoshinori Arai Message-ID: <20190208072240.sbx6xmzheyxyinkw@WaraToNora> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34283@debbugs.gnu.org >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+))) -- 2.20.1