unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#38184] [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm
@ 2019-11-12 19:04 zimoun
  2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
  2019-11-27 17:33 ` bug#38184: [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm Ricardo Wurmus
  0 siblings, 2 replies; 7+ messages in thread
From: zimoun @ 2019-11-12 19:04 UTC (permalink / raw)
  To: 38184; +Cc: zimoun

Dear,

This series move the packages from maths.scm to cran.scm. The copyright header
is modified accordingly. The packages which depend on are defined in files
already importing the cran module; the maths module cannot be removed of these
files because other packages import other maths packages.

All the best,
simon


zimoun (4):
  gnu: r-quadprog: Move to (gnu packages cran).
  gnu: r-pracma: Move to (gnu packages cran).
  gnu: r-subplex: Move to (gnu packages cran).
  gnu: r-desolve: Move to (gnu packages cran).

 gnu/packages/cran.scm  | 92 +++++++++++++++++++++++++++++++++++++++++-
 gnu/packages/maths.scm | 90 -----------------------------------------
 2 files changed, 91 insertions(+), 91 deletions(-)

-- 
2.23.0

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

* [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran).
  2019-11-12 19:04 [bug#38184] [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm zimoun
@ 2019-11-12 19:15 ` zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 1/4] gnu: r-quadprog: " zimoun
                     ` (3 more replies)
  2019-11-27 17:33 ` bug#38184: [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm Ricardo Wurmus
  1 sibling, 4 replies; 7+ messages in thread
From: zimoun @ 2019-11-12 19:15 UTC (permalink / raw)
  To: 38184; +Cc: zimoun

* gnu/packages/maths.scm (r-desolve): Move from here...
* gnu/packages/cran.scm (r-desolve): ...to here.
---
 gnu/packages/cran.scm  | 30 ++++++++++++++++++++++++++++++
 gnu/packages/maths.scm | 29 -----------------------------
 2 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 48ddaadd8d..c62b8eb730 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15710,3 +15710,33 @@ It solves unconstrained optimization problems using a simplex method on
 subspaces.  The method is well suited for optimizing objective functions that
 are noisy or are discontinuous at the solution.")
     (license license:gpl3+)))
+
+(define-public r-desolve
+  (package
+    (name "r-desolve")
+    (version "1.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "deSolve" version))
+       (sha256
+        (base32
+         "0hkvspq0fp8j64l9zayab2l2nazazhwfgfym0jllh0xv5a12r99s"))))
+    (properties `((upstream-name . "deSolve")))
+    (build-system r-build-system)
+    (native-inputs
+     `(("gfortran" ,gfortran)))
+    (home-page "https://desolve.r-forge.r-project.org/")
+    (synopsis "Solvers for initial value problems of differential equations")
+    (description
+     "This package provides functions that solve initial
+value problems of a system of first-order ordinary differential equations (ODE),
+of partial differential equations (PDE), of differential algebraic equations
+(DAE), and of delay differential equations.  The functions provide an interface
+to the FORTRAN functions lsoda, lsodar, lsode, lsodes of the ODEPACK collection,
+to the FORTRAN functions dvode and daspk and a C-implementation of solvers of
+the Runge-Kutta family with fixed or variable time steps.  The package contains
+routines designed for solving ODEs resulting from 1-D, 2-D and 3-D partial
+differential equations (PDE) that have been converted to ODEs by numerical
+differencing.")
+    (license license:gpl2+)))
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 77bd5d246b..80645f47b9 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4343,35 +4343,6 @@ analysed.")
     (arguments
      '(#:configure-flags '("-DMCRL2_ENABLE_GUI_TOOLS=OFF")))))
 
-(define-public r-desolve
-  (package
-    (name "r-desolve")
-    (version "1.24")
-    (source
-      (origin
-        (method url-fetch)
-        (uri (cran-uri "deSolve" version))
-        (sha256
-         (base32
-          "0hkvspq0fp8j64l9zayab2l2nazazhwfgfym0jllh0xv5a12r99s"))))
-    (properties `((upstream-name . "deSolve")))
-    (build-system r-build-system)
-    (native-inputs
-     `(("gfortran" ,gfortran)))
-    (home-page "https://desolve.r-forge.r-project.org/")
-    (synopsis "Solvers for initial value problems of differential equations")
-    (description "This package provides functions that solve initial
-value problems of a system of first-order ordinary differential equations (ODE),
-of partial differential equations (PDE), of differential algebraic equations
-(DAE), and of delay differential equations.  The functions provide an interface
-to the FORTRAN functions lsoda, lsodar, lsode, lsodes of the ODEPACK collection,
-to the FORTRAN functions dvode and daspk and a C-implementation of solvers of
-the Runge-Kutta family with fixed or variable time steps.  The package contains
-routines designed for solving ODEs resulting from 1-D, 2-D and 3-D partial
-differential equations (PDE) that have been converted to ODEs by numerical
-differencing.")
-    (license license:gpl2+)))
-
 (define-public tcalc
   (package
   (name "tcalc")
-- 
2.23.0

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

* [bug#38184] [PATCH 1/4] gnu: r-quadprog: Move to (gnu packages cran).
  2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
@ 2019-11-12 19:15   ` zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 2/4] gnu: r-pracma: " zimoun
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: zimoun @ 2019-11-12 19:15 UTC (permalink / raw)
  To: 38184; +Cc: zimoun

* gnu/packages/maths.scm (r-quadprog): Move from here...
* gnu/packages/cran.scm (r-quadprog): ...to here.
---
 gnu/packages/cran.scm  | 21 +++++++++++++++++++++
 gnu/packages/maths.scm | 21 ---------------------
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 4662680b19..67959c9280 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15645,3 +15645,24 @@ unique identifiers, and whether it is a certain length.  In addition,
 files and to efficiently import multiple tabular data files into one
 data.table.")
     (license license:gpl3)))
+
+(define-public r-quadprog
+  (package
+    (name "r-quadprog")
+    (version "1.5-7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "quadprog" version))
+       (sha256
+        (base32
+         "0vg7i9p241bwvfdspjbydjrsvgipl6nsb8bjigp0hbbgvxbixx0s"))))
+    (build-system r-build-system)
+    (native-inputs
+     `(("gfortran" ,gfortran)))
+    (home-page "https://cran.r-project.org/web/packages/quadprog")
+    (synopsis "Functions to solve quadratic programming problems")
+    (description
+     "This package contains routines and documentation for solving quadratic
+programming problems.")
+    (license license:gpl3+)))
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 16a9d97a47..a4452af93e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2341,27 +2341,6 @@ sparse system of linear equations A x = b using Gaussian elimination.")
     (inputs
      (alist-delete "pt-scotch" (package-inputs mumps-openmpi)))))
 
-(define-public r-quadprog
-  (package
-    (name "r-quadprog")
-    (version "1.5-7")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (cran-uri "quadprog" version))
-       (sha256
-        (base32
-         "0vg7i9p241bwvfdspjbydjrsvgipl6nsb8bjigp0hbbgvxbixx0s"))))
-    (build-system r-build-system)
-    (native-inputs
-     `(("gfortran" ,gfortran)))
-    (home-page "https://cran.r-project.org/web/packages/quadprog")
-    (synopsis "Functions to solve quadratic programming problems")
-    (description
-     "This package contains routines and documentation for solving quadratic
-programming problems.")
-    (license license:gpl3+)))
-
 (define-public r-pracma
   (package
     (name "r-pracma")
-- 
2.23.0

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

* [bug#38184] [PATCH 2/4] gnu: r-pracma: Move to (gnu packages cran).
  2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 1/4] gnu: r-quadprog: " zimoun
@ 2019-11-12 19:15   ` zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 3/4] gnu: r-subplex: " zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 4/4] gnu: r-desolve: " zimoun
  3 siblings, 0 replies; 7+ messages in thread
From: zimoun @ 2019-11-12 19:15 UTC (permalink / raw)
  To: 38184; +Cc: zimoun

* gnu/packages/maths.scm (r-pracma): Move from here...
* gnu/packages/cran.scm (r-pracma): ...to here.
---
 gnu/packages/cran.scm  | 23 ++++++++++++++++++++++-
 gnu/packages/maths.scm | 18 ------------------
 2 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 67959c9280..ed416c4a8e 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
-;;; Copyright © 2017, 2018 Roel Janssen <roel@gnu.org>
+;;; Copyright © 2016, 2017, 2018 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Raoul Bonnal <ilpuccio.febo@gmail.com>
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
@@ -15666,3 +15666,24 @@ data.table.")
      "This package contains routines and documentation for solving quadratic
 programming problems.")
     (license license:gpl3+)))
+
+(define-public r-pracma
+  (package
+    (name "r-pracma")
+    (version "2.2.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "pracma" version))
+       (sha256
+        (base32
+         "0isd3s0i4mzmva8lkh0j76hwjy1w50q7d1n9lhxsnnkgalx3xs1g"))))
+    (build-system r-build-system)
+    (home-page "https://cran.r-project.org/web/packages/pracma/")
+    (synopsis "Practical numerical math functions")
+    (description
+     "This package provides functions for numerical analysis and
+linear algebra, numerical optimization, differential equations, plus some
+special functions.  It uses Matlab function names where appropriate to simplify
+porting.")
+    (license license:gpl3+)))
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index a4452af93e..3565b99e05 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2341,24 +2341,6 @@ sparse system of linear equations A x = b using Gaussian elimination.")
     (inputs
      (alist-delete "pt-scotch" (package-inputs mumps-openmpi)))))
 
-(define-public r-pracma
-  (package
-    (name "r-pracma")
-    (version "2.2.5")
-    (source (origin
-      (method url-fetch)
-      (uri (cran-uri "pracma" version))
-      (sha256
-        (base32 "0isd3s0i4mzmva8lkh0j76hwjy1w50q7d1n9lhxsnnkgalx3xs1g"))))
-    (build-system r-build-system)
-    (home-page "https://cran.r-project.org/web/packages/pracma/")
-    (synopsis "Practical numerical math functions")
-    (description "This package provides functions for numerical analysis and
-linear algebra, numerical optimization, differential equations, plus some
-special functions.  It uses Matlab function names where appropriate to simplify
-porting.")
-    (license license:gpl3+)))
-
 (define-public ruby-asciimath
   (package
     (name "ruby-asciimath")
-- 
2.23.0

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

* [bug#38184] [PATCH 3/4] gnu: r-subplex: Move to (gnu packages cran).
  2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 1/4] gnu: r-quadprog: " zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 2/4] gnu: r-pracma: " zimoun
@ 2019-11-12 19:15   ` zimoun
  2019-11-12 19:15   ` [bug#38184] [PATCH 4/4] gnu: r-desolve: " zimoun
  3 siblings, 0 replies; 7+ messages in thread
From: zimoun @ 2019-11-12 19:15 UTC (permalink / raw)
  To: 38184; +Cc: zimoun

* gnu/packages/maths.scm (r-subplex): Move from here...
* gnu/packages/cran.scm (r-subplex): ...to here.
---
 gnu/packages/cran.scm  | 23 +++++++++++++++++++++++
 gnu/packages/maths.scm | 22 ----------------------
 2 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ed416c4a8e..48ddaadd8d 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15687,3 +15687,26 @@ linear algebra, numerical optimization, differential equations, plus some
 special functions.  It uses Matlab function names where appropriate to simplify
 porting.")
     (license license:gpl3+)))
+
+(define-public r-subplex
+  (package
+    (name "r-subplex")
+    (version "1.5-4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "subplex" version))
+       (sha256
+        (base32
+         "10cbgbx1bgsax5z7gz6716g360xpq4mvq19cf4qqrxv02mmwz57z"))))
+    (build-system r-build-system)
+    (native-inputs
+     `(("gfortran" ,gfortran)))
+    (home-page "https://cran.r-project.org/web/packages/subplex")
+    (synopsis "Unconstrained optimization using the subplex algorithm")
+    (description
+     "This package implements the Subplex optimization algorithm.
+It solves unconstrained optimization problems using a simplex method on
+subspaces.  The method is well suited for optimizing objective functions that
+are noisy or are discontinuous at the solution.")
+    (license license:gpl3+)))
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 3565b99e05..77bd5d246b 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4343,28 +4343,6 @@ analysed.")
     (arguments
      '(#:configure-flags '("-DMCRL2_ENABLE_GUI_TOOLS=OFF")))))
 
-(define-public r-subplex
-  (package
-    (name "r-subplex")
-    (version "1.5-4")
-    (source
-    (origin
-      (method url-fetch)
-      (uri (cran-uri "subplex" version))
-      (sha256
-       (base32
-        "10cbgbx1bgsax5z7gz6716g360xpq4mvq19cf4qqrxv02mmwz57z"))))
-    (build-system r-build-system)
-    (native-inputs
-     `(("gfortran" ,gfortran)))
-    (home-page "https://cran.r-project.org/web/packages/subplex")
-    (synopsis "Unconstrained optimization using the subplex algorithm")
-    (description "This package implements the Subplex optimization algorithm.
-It solves unconstrained optimization problems using a simplex method on
-subspaces.  The method is well suited for optimizing objective functions that
-are noisy or are discontinuous at the solution.")
-    (license license:gpl3+)))
-
 (define-public r-desolve
   (package
     (name "r-desolve")
-- 
2.23.0

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

* [bug#38184] [PATCH 4/4] gnu: r-desolve: Move to (gnu packages cran).
  2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
                     ` (2 preceding siblings ...)
  2019-11-12 19:15   ` [bug#38184] [PATCH 3/4] gnu: r-subplex: " zimoun
@ 2019-11-12 19:15   ` zimoun
  3 siblings, 0 replies; 7+ messages in thread
From: zimoun @ 2019-11-12 19:15 UTC (permalink / raw)
  To: 38184; +Cc: zimoun

* gnu/packages/maths.scm (r-desolve): Move from here...
* gnu/packages/cran.scm (r-desolve): ...to here.
---
 gnu/packages/cran.scm  | 30 ++++++++++++++++++++++++++++++
 gnu/packages/maths.scm | 29 -----------------------------
 2 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 48ddaadd8d..c62b8eb730 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15710,3 +15710,33 @@ It solves unconstrained optimization problems using a simplex method on
 subspaces.  The method is well suited for optimizing objective functions that
 are noisy or are discontinuous at the solution.")
     (license license:gpl3+)))
+
+(define-public r-desolve
+  (package
+    (name "r-desolve")
+    (version "1.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "deSolve" version))
+       (sha256
+        (base32
+         "0hkvspq0fp8j64l9zayab2l2nazazhwfgfym0jllh0xv5a12r99s"))))
+    (properties `((upstream-name . "deSolve")))
+    (build-system r-build-system)
+    (native-inputs
+     `(("gfortran" ,gfortran)))
+    (home-page "https://desolve.r-forge.r-project.org/")
+    (synopsis "Solvers for initial value problems of differential equations")
+    (description
+     "This package provides functions that solve initial
+value problems of a system of first-order ordinary differential equations (ODE),
+of partial differential equations (PDE), of differential algebraic equations
+(DAE), and of delay differential equations.  The functions provide an interface
+to the FORTRAN functions lsoda, lsodar, lsode, lsodes of the ODEPACK collection,
+to the FORTRAN functions dvode and daspk and a C-implementation of solvers of
+the Runge-Kutta family with fixed or variable time steps.  The package contains
+routines designed for solving ODEs resulting from 1-D, 2-D and 3-D partial
+differential equations (PDE) that have been converted to ODEs by numerical
+differencing.")
+    (license license:gpl2+)))
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 77bd5d246b..80645f47b9 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4343,35 +4343,6 @@ analysed.")
     (arguments
      '(#:configure-flags '("-DMCRL2_ENABLE_GUI_TOOLS=OFF")))))
 
-(define-public r-desolve
-  (package
-    (name "r-desolve")
-    (version "1.24")
-    (source
-      (origin
-        (method url-fetch)
-        (uri (cran-uri "deSolve" version))
-        (sha256
-         (base32
-          "0hkvspq0fp8j64l9zayab2l2nazazhwfgfym0jllh0xv5a12r99s"))))
-    (properties `((upstream-name . "deSolve")))
-    (build-system r-build-system)
-    (native-inputs
-     `(("gfortran" ,gfortran)))
-    (home-page "https://desolve.r-forge.r-project.org/")
-    (synopsis "Solvers for initial value problems of differential equations")
-    (description "This package provides functions that solve initial
-value problems of a system of first-order ordinary differential equations (ODE),
-of partial differential equations (PDE), of differential algebraic equations
-(DAE), and of delay differential equations.  The functions provide an interface
-to the FORTRAN functions lsoda, lsodar, lsode, lsodes of the ODEPACK collection,
-to the FORTRAN functions dvode and daspk and a C-implementation of solvers of
-the Runge-Kutta family with fixed or variable time steps.  The package contains
-routines designed for solving ODEs resulting from 1-D, 2-D and 3-D partial
-differential equations (PDE) that have been converted to ODEs by numerical
-differencing.")
-    (license license:gpl2+)))
-
 (define-public tcalc
   (package
   (name "tcalc")
-- 
2.23.0

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

* bug#38184: [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm
  2019-11-12 19:04 [bug#38184] [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm zimoun
  2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
@ 2019-11-27 17:33 ` Ricardo Wurmus
  1 sibling, 0 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2019-11-27 17:33 UTC (permalink / raw)
  To: zimoun; +Cc: 38184-done


Hi simon,

> This series move the packages from maths.scm to cran.scm. The copyright header
> is modified accordingly. The packages which depend on are defined in files
> already importing the cran module; the maths module cannot be removed of these
> files because other packages import other maths packages.

Thank you for this!

I’ve applied these patches (or rather recreations of them due to various
little problems that are not your fault) and also removed (gnu
build-system r) from (gnu packages maths) with commit f3640e7395.

--
Ricardo

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

end of thread, other threads:[~2019-11-27 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 19:04 [bug#38184] [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm zimoun
2019-11-12 19:15 ` [bug#38184] [PATCH] gnu: r-desolve: Move to (gnu packages cran) zimoun
2019-11-12 19:15   ` [bug#38184] [PATCH 1/4] gnu: r-quadprog: " zimoun
2019-11-12 19:15   ` [bug#38184] [PATCH 2/4] gnu: r-pracma: " zimoun
2019-11-12 19:15   ` [bug#38184] [PATCH 3/4] gnu: r-subplex: " zimoun
2019-11-12 19:15   ` [bug#38184] [PATCH 4/4] gnu: r-desolve: " zimoun
2019-11-27 17:33 ` bug#38184: [PATCH 0/4] Move r-{quadprog, pracma, subplex, desolve} to gnu/packages/cran.scm Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).