GNU bug report logs - #26141
[PATCH] gnu: Add r-cairo.

Previous Next

Package: guix-patches;

Reported by: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>

Date: Fri, 17 Mar 2017 14:25:01 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26141 in the body.
You can then email your comments to 26141 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#26141; Package guix-patches. (Fri, 17 Mar 2017 14:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 17 Mar 2017 14:25:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
To: <guix-patches <at> gnu.org>
Cc: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
Subject: [PATCH] gnu: Add r-cairo.
Date: Fri, 17 Mar 2017 15:23:16 +0100
* gnu/packages/statistics.scm (r-cairo): New variable.
---
 gnu/packages/statistics.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index d8e50b998..c8d9e78ea 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -5150,3 +5150,38 @@ genome-wide association studies can be analyzed efficiently.")
     (description
      "This package provides a pure R implementation of the t-SNE algorithm.")
     (license license:gpl2+)))
+
+(define-public r-cairo
+  (package
+    (name "r-cairo")
+    (version "1.5-9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "Cairo" version))
+       (sha256
+        (base32
+         "1x1q99r3r978rlkkm5gixkv03p0mcr6k7ydcqdmisrwnmrn7p1ia"))))
+    (properties `((upstream-name . "Cairo")))
+    (build-system r-build-system)
+    (inputs
+     `(("cairo" ,cairo)
+       ("libxt" ,libxt)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "http://www.rforge.net/Cairo/")
+    (synopsis "R graphics device using cairo graphics library")
+    (description
+     "This package provides a Cairo graphics device that can be use to
+create high-quality vector (PDF, PostScript and SVG) and bitmap
+output (PNG,JPEG,TIFF), and high-quality rendering in displays (X11
+and Win32).  Since it uses the same back-end for all output, copying
+across formats is WYSIWYG.  Files are created without the dependence
+on X11 or other external programs.  This device supports alpha
+channel (semi-transparent drawing) and resulting images can contain
+transparent and semi-transparent regions.  It is ideal for use in
+server environments (file output) and as a replacement for other
+devices that don't have Cairo's capabilities such as alpha support or
+anti-aliasing.  Backends are modular such that any subset of backends
+is supported.")
+    (license license:gpl2)))
-- 
2.11.1





Information forwarded to guix-patches <at> gnu.org:
bug#26141; Package guix-patches. (Fri, 17 Mar 2017 14:35:01 GMT) Full text and rfc822 format available.

Message #8 received at 26141 <at> debbugs.gnu.org (full text, mbox):

From: John Darrington <john <at> darrington.wattle.id.au>
To: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
Cc: 26141 <at> debbugs.gnu.org
Subject: Re: bug#26141: [PATCH] gnu: Add r-cairo.
Date: Fri, 17 Mar 2017 15:34:54 +0100
[Message part 1 (text/plain, inline)]
On Fri, Mar 17, 2017 at 03:23:16PM +0100, Ricardo Wurmus wrote:
     * gnu/packages/statistics.scm (r-cairo): New variable.
     ---
      gnu/packages/statistics.scm | 35 +++++++++++++++++++++++++++++++++++
      1 file changed, 35 insertions(+)
     
     diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
     index d8e50b998..c8d9e78ea 100644
     --- a/gnu/packages/statistics.scm
     +++ b/gnu/packages/statistics.scm
     @@ -5150,3 +5150,38 @@ genome-wide association studies can be analyzed efficiently.")
          (description
           "This package provides a pure R implementation of the t-SNE algorithm.")
          (license license:gpl2+)))
     +
     +(define-public r-cairo
     +  (package
     +    (name "r-cairo")
     +    (version "1.5-9")
     +    (source
     +     (origin
     +       (method url-fetch)
     +       (uri (cran-uri "Cairo" version))
     +       (sha256
     +        (base32
     +         "1x1q99r3r978rlkkm5gixkv03p0mcr6k7ydcqdmisrwnmrn7p1ia"))))
     +    (properties `((upstream-name . "Cairo")))
What does this mean? "properties" doesn't seem to be mentioned in the manual.

     +    (build-system r-build-system)
     +    (inputs
     +     `(("cairo" ,cairo)
     +       ("libxt" ,libxt)))

Many packages which need libxt as an input, need special measures to
make sure that libxt finds their resource files.  Did you check to
see if that is the case with this package?

     
J'
     

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26141; Package guix-patches. (Fri, 17 Mar 2017 15:21:01 GMT) Full text and rfc822 format available.

Message #11 received at 26141 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
To: John Darrington <john <at> darrington.wattle.id.au>
Cc: 26141 <at> debbugs.gnu.org
Subject: Re: bug#26141: [PATCH] gnu: Add r-cairo.
Date: Fri, 17 Mar 2017 16:19:53 +0100
John Darrington <john <at> darrington.wattle.id.au> writes:

> On Fri, Mar 17, 2017 at 03:23:16PM +0100, Ricardo Wurmus wrote:
>      * gnu/packages/statistics.scm (r-cairo): New variable.
>      ---
>       gnu/packages/statistics.scm | 35 +++++++++++++++++++++++++++++++++++
>       1 file changed, 35 insertions(+)
>
>      diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
>      index d8e50b998..c8d9e78ea 100644
>      --- a/gnu/packages/statistics.scm
>      +++ b/gnu/packages/statistics.scm
>      @@ -5150,3 +5150,38 @@ genome-wide association studies can be analyzed efficiently.")
>           (description
>            "This package provides a pure R implementation of the t-SNE algorithm.")
>           (license license:gpl2+)))
>      +
>      +(define-public r-cairo
>      +  (package
>      +    (name "r-cairo")
>      +    (version "1.5-9")
>      +    (source
>      +     (origin
>      +       (method url-fetch)
>      +       (uri (cran-uri "Cairo" version))
>      +       (sha256
>      +        (base32
>      +         "1x1q99r3r978rlkkm5gixkv03p0mcr6k7ydcqdmisrwnmrn7p1ia"))))

>      +    (properties `((upstream-name . "Cairo")))
> What does this mean? "properties" doesn't seem to be mentioned in the manual.

“properties” is for custom … properties that don’t deserve their own
field in the “package” object.  The “upstream-name” property is used by
the updaters to be able to construct the upstream URL to check for newer
versions.

>
>      +    (build-system r-build-system)
>      +    (inputs
>      +     `(("cairo" ,cairo)
>      +       ("libxt" ,libxt)))
>
> Many packages which need libxt as an input, need special measures to
> make sure that libxt finds their resource files.  Did you check to
> see if that is the case with this package?

This does not seem to be the case here.  I’ve run the examples in the
manual for this package and successfully rendered a plot to PDF.  The
output of “Cairo.capabilities()” also indicates that the X11 backend
works.

Thanks for taking the time to comment on this!

--
Ricardo




Reply sent to Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>:
You have taken responsibility. (Thu, 30 Mar 2017 12:39:01 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>:
bug acknowledged by developer. (Thu, 30 Mar 2017 12:39:02 GMT) Full text and rfc822 format available.

Message #16 received at 26141-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
To: <26141-done <at> debbugs.gnu.org>
Subject: Re: bug#26141: [PATCH] gnu: Add r-cairo.
Date: Thu, 30 Mar 2017 15:09:09 +0200
This was merged to master with commit e2c4fe7c62f05ac14f663bdd9de650c5e7f66231.

-- 
Ricardo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Apr 2017 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.