Patchwork [1/3] gnu: Add r-gdtools.

login
register
mail settings
Submitter Ben Woodcroft
Date July 5, 2016, 1:06 p.m.
Message ID <20160705130635.668-2-donttrustben@gmail.com>
Download mbox | patch
Permalink /patch/13639/
State New
Headers show

Comments

Ben Woodcroft - July 5, 2016, 1:06 p.m.
* gnu/packages/statistics.scm (r-gdtools): New variable.
---
 gnu/packages/statistics.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Ricardo Wurmus - July 6, 2016, 5:27 a.m.
Ben Woodcroft <donttrustben@gmail.com> writes:

> * gnu/packages/statistics.scm (r-gdtools): New variable.
> ---
>  gnu/packages/statistics.scm | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
> index 73c30ae..24fbabe 100644
> --- a/gnu/packages/statistics.scm
> +++ b/gnu/packages/statistics.scm
> @@ -610,6 +610,30 @@ multidimensional conditioning system and a consistent interface to map data to
>  aesthetic attributes.")
>      (license license:gpl2+)))
>  
> +(define-public r-gdtools
> +  (package
> +    (name "r-gdtools")
> +    (version "0.0.7")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (cran-uri "gdtools" version))
> +       (sha256
> +        (base32
> +         "1bmnf9d677f2jy8jnb9ymjz1qzm4yrd0qp6k5qrrly06jfffyx7g"))))
> +    (build-system r-build-system)
> +    (native-inputs
> +     `(("r-rcpp" ,r-rcpp)
> +       ("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("cairo" ,cairo)))
> +    (home-page "http://cran.r-project.org/web/packages/gdtools")
> +    (synopsis "Utilities for graphical rendering")
> +    (description
> +     "The @code{gdtools} package provides functionalities to get font metrics
> +and to generate base64 encoded string from raster matrix.")
> +    (license license:gpl3)))
> +

Looks like this is indeed “GPLv3 only”.  The README states “The gdtools
package is licensed under the GPLv3.”

Without that notice it would have been GPLv3 or later, because that’s
how the license field in DESCRIPTION files is usually interpreted.

This patch looks good to me.  Thanks!

~~ Ricardo

Patch

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 73c30ae..24fbabe 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -610,6 +610,30 @@  multidimensional conditioning system and a consistent interface to map data to
 aesthetic attributes.")
     (license license:gpl2+)))
 
+(define-public r-gdtools
+  (package
+    (name "r-gdtools")
+    (version "0.0.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "gdtools" version))
+       (sha256
+        (base32
+         "1bmnf9d677f2jy8jnb9ymjz1qzm4yrd0qp6k5qrrly06jfffyx7g"))))
+    (build-system r-build-system)
+    (native-inputs
+     `(("r-rcpp" ,r-rcpp)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("cairo" ,cairo)))
+    (home-page "http://cran.r-project.org/web/packages/gdtools")
+    (synopsis "Utilities for graphical rendering")
+    (description
+     "The @code{gdtools} package provides functionalities to get font metrics
+and to generate base64 encoded string from raster matrix.")
+    (license license:gpl3)))
+
 (define-public r-assertthat
   (package
     (name "r-assertthat")