all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#34105] [PATCH] Add pencil2d.
@ 2019-01-16 15:27 pkill9
  2019-01-20 18:21 ` bug#34105: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: pkill9 @ 2019-01-16 15:27 UTC (permalink / raw)
  To: 34105

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

This patch adds the Pencil2D software package (https://www.pencil2d.org). I've run `guix lint`, and checked that it builds/runs fine.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-pencil2d.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-pencil2d.patch", Size: 2788 bytes --]

From d0c680e629b4c85ee462b624c65683a0a52306d9 Mon Sep 17 00:00:00 2001
From: Pkill -9 <pkill9@runbox.com>
Date: Wed, 16 Jan 2019 15:14:45 +0000
Subject: [PATCH] gnu: Add pencil2d.

* gnu/packages/animation.scm (pencil2d): New variable.
---
 gnu/packages/animation.scm | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm
index a10747ef3..5b9ca033b 100644
--- a/gnu/packages/animation.scm
+++ b/gnu/packages/animation.scm
@@ -26,6 +26,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
+  #:use-module (gnu packages bash)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fontutils)
@@ -258,3 +259,43 @@ easy to lip sync animated characters by making the process very simple – just
 type in the words being spoken, then drag the words on top of the sound’s
 waveform until they line up with the proper sounds.")
       (license license:gpl3+))))
+
+(define-public pencil2d
+  (package
+    (name "pencil2d")
+    (version "0.6.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/pencil2d/pencil")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1iv7drwxs32mqs3hybjx2lxyqn8cv2b4rw9ny7gzdacsbhi65knr"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("bash" ,bash) ;; Bash is used for wrap-program
+       ("qtbase" ,qtbase)
+       ("qtxmlpatterns" ,qtxmlpatterns)
+       ("qtmultimedia" ,qtmultimedia)
+       ("qtsvg" ,qtsvg)))
+    (arguments
+     `(#:phases
+       (modify-phases standard-phases
+         (replace 'configure
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out"))
+                   (qmake (string-append (assoc-ref inputs "qtbase")
+                                         "/bin/qmake")))
+               (invoke qmake (string-append "PREFIX=" out)))))
+         (add-after 'install 'wrap-executable
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out"))
+                   (plugin-path (getenv "QT_PLUGIN_PATH")))
+               (wrap-program (string-append out "/bin/pencil2d")
+                 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path)))))))))
+    (home-page "https://www.pencil2d.org")
+    (synopsis "Tool to make 2D hand-drawn animations")
+    (description "Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations.")
+    (license license:gpl2)))
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#34105: [PATCH] Add pencil2d.
  2019-01-16 15:27 [bug#34105] [PATCH] Add pencil2d pkill9
@ 2019-01-20 18:21 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-01-20 18:21 UTC (permalink / raw)
  To: pkill9; +Cc: 34105-done

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

Hello,

<pkill9@runbox.com> skribis:

> From d0c680e629b4c85ee462b624c65683a0a52306d9 Mon Sep 17 00:00:00 2001
> From: Pkill -9 <pkill9@runbox.com>
> Date: Wed, 16 Jan 2019 15:14:45 +0000
> Subject: [PATCH] gnu: Add pencil2d.
>
> * gnu/packages/animation.scm (pencil2d): New variable.

Applied with the minor changes below.  Thank you!

Ludo’.


[-- Attachment #2: Type: text/x-patch, Size: 2718 bytes --]

diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm
index 5b9ca033b5..965fff6d46 100644
--- a/gnu/packages/animation.scm
+++ b/gnu/packages/animation.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2019 Pkill -9 <pkill9@runbox.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -26,7 +27,6 @@
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
-  #:use-module (gnu packages bash)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fontutils)
@@ -275,27 +275,28 @@ waveform until they line up with the proper sounds.")
                 "1iv7drwxs32mqs3hybjx2lxyqn8cv2b4rw9ny7gzdacsbhi65knr"))))
     (build-system gnu-build-system)
     (inputs
-     `(("bash" ,bash) ;; Bash is used for wrap-program
-       ("qtbase" ,qtbase)
+     `(("qtbase" ,qtbase)
        ("qtxmlpatterns" ,qtxmlpatterns)
        ("qtmultimedia" ,qtmultimedia)
        ("qtsvg" ,qtsvg)))
     (arguments
      `(#:phases
-       (modify-phases standard-phases
+       (modify-phases %standard-phases
          (replace 'configure
            (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out"))
-                   (qmake (string-append (assoc-ref inputs "qtbase")
-                                         "/bin/qmake")))
-               (invoke qmake (string-append "PREFIX=" out)))))
+             (let ((out (assoc-ref outputs "out")))
+               (invoke "qmake" (string-append "PREFIX=" out)))))
          (add-after 'install 'wrap-executable
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))
                    (plugin-path (getenv "QT_PLUGIN_PATH")))
                (wrap-program (string-append out "/bin/pencil2d")
-                 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path)))))))))
+                 `("QT_PLUGIN_PATH" ":" prefix (,plugin-path)))
+               #t))))))
     (home-page "https://www.pencil2d.org")
-    (synopsis "Tool to make 2D hand-drawn animations")
-    (description "Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations.")
+    (synopsis "Make 2D hand-drawn animations")
+    (description
+     "Pencil2D is an easy-to-use and intuitive animation and drawing tool.  It
+lets you create traditional hand-drawn animations (cartoons) using both bitmap
+and vector graphics.")
     (license license:gpl2)))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-20 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 15:27 [bug#34105] [PATCH] Add pencil2d pkill9
2019-01-20 18:21 ` bug#34105: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.