From patchwork Thu Feb 7 11:13:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoshinori Arai X-Patchwork-Id: 978 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 125DA16BCD; Thu, 7 Feb 2019 11:15:14 +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 771AB16B45 for ; Thu, 7 Feb 2019 11:15:12 +0000 (GMT) Received: from localhost ([127.0.0.1]:37985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grheB-0003n8-C7 for patchwork@mira.cbaines.net; Thu, 07 Feb 2019 06:15:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grhe7-0003im-UI for guix-patches@gnu.org; Thu, 07 Feb 2019 06:15:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grhe5-000484-RZ for guix-patches@gnu.org; Thu, 07 Feb 2019 06:15:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grhe3-000473-Kw for guix-patches@gnu.org; Thu, 07 Feb 2019 06:15:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grhe3-0001tz-Ez for guix-patches@gnu.org; Thu, 07 Feb 2019 06:15:03 -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: Thu, 07 Feb 2019 11:15:03 +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: =?utf-8?b?QmrDtnJuIEjDtmZsaW5n?= Received: via spool by 34283-submit@debbugs.gnu.org id=B34283.15495380567209 (code B ref 34283); Thu, 07 Feb 2019 11:15:03 +0000 Received: (at 34283) by debbugs.gnu.org; 7 Feb 2019 11:14:16 +0000 Received: from localhost ([127.0.0.1]:36603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grhdD-0001s8-I3 for submit@debbugs.gnu.org; Thu, 07 Feb 2019 06:14:16 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grhd9-0001rp-PM for 34283@debbugs.gnu.org; Thu, 07 Feb 2019 06:14:10 -0500 Received: by mail-pl1-f193.google.com with SMTP id g9so4635731plo.3 for <34283@debbugs.gnu.org>; Thu, 07 Feb 2019 03:14:07 -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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Ys81h+sHH6GS21vD1lHrdYCPpeVz8o7utEaUqfMHMBc=; b=eTOANuTVflXvZKW1onl0gKr8KTwalK8tfezMFiCqjRGeSP88yw2HeXMtnn0jD3muxc UiO+Buip31QSi4evbwDrVC1ojXwb8ChWAkHNYPQkbLGWUyRDLWlXfiKhSS4B7eRrGcPX dZToYeS7qx5iv+F+fidh78upcf03WPTs4e5E5HdRSdw1JpBPFSkG2mJIGgji3q3Wsq2d BSqhkRh9gxBvsPNZsAq7L/rx8pEtAfp3Bcoupe+KjJsw8s+PNR3EpaHpxs5NgE1G27TV jdVaFI0gwQGC0ir30Lmpf4e3NKYIj026OklwYsc9x1dk0YJZAZwmQUIogLJjP5KK7K1d xJdg== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Ys81h+sHH6GS21vD1lHrdYCPpeVz8o7utEaUqfMHMBc=; b=GGYL8SnGUoJRx6rHQcKPX5eEkGdnwj2+gZ0f6Jm9J9R3gWjG1aRBb9bKV5vwSBkPOI GSyM0b5RB6yWphIfqSQUkGxeYHrXTOzGOHjJXMweC8JA6snCVIk5ZTLFO7/Ojpa8bnm5 VDrN1psnoMmo8ZsiefpDQ+LdDtK/rHYAZXj3BuNQYQW6SBQ1bEKo/6ayxC/n1W4XL6Jk DpjoXM++zmw5gk6TGJQ9NRd3S3Hfb1CSuCChSrAp9mwU08vosYNVTO3tqG4MmXihGfUv PgnIH4taVyZbQ1nS7tm2YWFV0uDXbAjDHFXuotLgYjjWuNbGpJyhJowIaIlKmEZMIX39 J8OA== X-Gm-Message-State: AHQUAubgvhyoBJB91rkDv2XlLkshnRsWYmdcNgU8VN6aWsfp6mbnTkL7 vbYn9DYGDRWGW4ah0HFSUqdvFeORWqc= X-Google-Smtp-Source: AHgI3IZzZEWQs2oaFKJiHIteTVGA6IMCd22AjQLvkzTWi5rXRgSSpiuYp2LOjxJMeAN8yTCODF5lgw== X-Received: by 2002:a17:902:34a:: with SMTP id 68mr16199085pld.268.1549538041798; Thu, 07 Feb 2019 03:14:01 -0800 (PST) Received: from localhost ([2409:11:4a40:3600:afd4:3247:4a32:242a]) by smtp.gmail.com with ESMTPSA id r130sm15047746pfr.48.2019.02.07.03.14.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 03:14:00 -0800 (PST) Date: Thu, 7 Feb 2019 20:13:52 +0900 From: Yoshinori Arai Message-ID: <20190207111352.7yczbfnjzd72xba3@WaraToNora> References: <20190202044421.44toqidrwk2f6acn@WaraToNora> <20190205124255.75e9f343@alma-ubu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190205124255.75e9f343@alma-ubu> 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: , Cc: 34283@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches On Tue, Feb 05, 2019 at 12:42:55PM +0100, Björn Höfling wrote: > Hi, > > On Sat, 2 Feb 2019 13:44:21 +0900 > Yoshinori Arai wrote: > > > 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 > > I have two more notes (hope I'm not redundant): > > We usually just add/modify one package per commit, unless really > necessary. Could you split your contribution into several patches? > > The commit message should conform to the GNU Changelog Guides, a link > can be found here: > > https://www.gnu.org/software/guix/manual/en/html_node/Submitting-Patches.html#Submitting-Patches > > For examples see other commits from the git repository. Could you adapt > your commit's log messages? > > Packaging can sometimes be tricky, so please ask the questions you have. > > Thank you for your contribution, > > Björn Hello, I made patch of mypaint, libmypaint, mypaint-brushes again but I am not accustomed to git operation. I don't know how to split patch one by one. Also, I don't know which is better my patch is in gimp or graphics. Please tell me how to make better separate patch or how to handle git/magit to make patch. Now, it's my patch as follows. From f1cb8c414916b777d68ed509d183bb10fb6a29f2 Mon Sep 17 00:00:00 2001 From: Yoshinori Arai Date: Thu, 7 Feb 2019 16:30:47 +0900 Subject: [PATCH] Add: mypaint@1.2.1 --- gnu/packages/gimp.scm | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm index cd0deac15..7836b8e66 100644 --- a/gnu/packages/gimp.scm +++ b/gnu/packages/gimp.scm @@ -29,6 +29,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system scons) #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) @@ -37,12 +38,15 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) #:use-module (gnu packages image) + #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) #:use-module (gnu packages compression) #:use-module (gnu packages xml) #:use-module (gnu packages pdf) #:use-module (gnu packages photo) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages swig) #:use-module (gnu packages web) #:use-module (gnu packages xorg)) @@ -307,6 +311,58 @@ MyPaint.") (home-page "https://github.com/Jehan/mypaint-brushes") (license license:cc0))) +(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+))) + (define-public gimp-resynthesizer ;; GIMP does not respect any plugin search path environment variable, so after ;; installation users have to edit their GIMP settings to include -- 2.20.1 From 9dfc630a8519fe06a8157cc9e57451648e5065a8 Mon Sep 17 00:00:00 2001 From: Yoshinori Arai Date: Thu, 7 Feb 2019 19:34:53 +0900 Subject: [PATCH] Add: libmypaint-2, mypaint-brushes-2, mypaint-2 --- gnu/packages/gimp.scm | 122 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm index cd0deac15..be9b3fdca 100644 --- a/gnu/packages/gimp.scm +++ b/gnu/packages/gimp.scm @@ -29,6 +29,8 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system scons) + #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) @@ -37,12 +39,15 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) #:use-module (gnu packages image) + #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) #:use-module (gnu packages compression) #:use-module (gnu packages xml) #:use-module (gnu packages pdf) #:use-module (gnu packages photo) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages swig) #:use-module (gnu packages web) #:use-module (gnu packages xorg)) @@ -275,6 +280,28 @@ brushstrokes which is used by MyPaint and GIMP.") (home-page "http://mypaint.org") (license license:isc))) +(define-public libmypaint-2 + (package (inherit libmypaint) + (version "2.0.0-alpha") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/mypaint/libmypaint/" + "archive/v" version ".0.tar.gz")) + (sha256 + (base32 + "1qbmjj7rammw4rma0jawff7q32d4gsy63f11af8dhk07bk4rkxph")))) + ;;MyPaint and libmypaint benefit dramatically from autovectorization + ;;and other compiler optimizations. from README.md + (arguments + `(#:make-flags (list "CFLAGS=-Ofast -ftree-vectorize -fopt-info-vec-optimized -march=native -mtune=native -funsafe-math-optimizations -funsafe-loop-optimizations"))) + (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))))) + (define-public mypaint-brushes (package (name "mypaint-brushes") @@ -307,6 +334,101 @@ MyPaint.") (home-page "https://github.com/Jehan/mypaint-brushes") (license license:cc0))) +(define-public mypaint-brushes-2 + (package (inherit mypaint-brushes) + (version "2.0.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/mypaint/mypaint-brushes/" + "archive/v" version ".tar.gz")) + (sha256 + (base32 + "0ap2b6n20lnvdm06x91qawk1k8jmxnf7zffxrqxw60fgqd4whwjm")))))) + +(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+))) + +(define-public mypaint-2 + (package (inherit mypaint) + (version "2.0.0-alpha.2") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/mypaint/mypaint/" + "archive/v" version ".tar.gz")) + (sha256 + (base32 + "0nmcvma2vg2iqlvg8v96d3mppc5cn46591hh8jhppgibcvifc81m")))) + (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"))) + (add-before 'build 'set-cflags + (lambda _ + (setenv "CFLAGS" "-Ofast -ftree-vectorize -fopt-info-vec-optimized -march=native -mtune=native -funsafe-math-optimizations -funsafe-loop-optimizations"))) + (replace 'install + (lambda _ + (invoke "python" "setup.py" "managed_install" + (string-append "--prefix=" (assoc-ref %outputs "out")))))))) + (inputs + `(("gettext" ,gettext-minimal) + ("libmypaint" ,libmypaint-2) + ("mypaint-brushes" ,mypaint-brushes-2))))) + (define-public gimp-resynthesizer ;; GIMP does not respect any plugin search path environment variable, so after ;; installation users have to edit their GIMP settings to include