aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Teixeira <eduardo@FreeBSD.org>2024-03-29 09:13:26 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2024-03-29 09:19:12 +0000
commitd00de7d461aaab638759b2126f1b8dd8bde1dcf2 (patch)
tree479ab28e16ce3c6397086763c718198f41854bb6
parent7fc47fdafa86df13fa26d9e45b300c174c2bb1de (diff)
misc/R-cran-optimx: New port: Expanded Replacement and Extension of the 'optim' Function
Provides a replacement and extension of the optim() function to call to several function minimization codes in R in a single statement. These methods handle smooth, possibly box constrained functions of several or many parameters. WWW: https://cran.r-project.org/web/packages/optimx/
-rw-r--r--misc/Makefile1
-rw-r--r--misc/R-cran-optimx/Makefile20
-rw-r--r--misc/R-cran-optimx/distinfo3
-rw-r--r--misc/R-cran-optimx/pkg-descr4
4 files changed, 28 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index b28d7c4302c7..e23b87985a75 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -1,6 +1,7 @@
COMMENT = Miscellaneous utilities
SUBDIR += R-cran-mime
+ SUBDIR += R-cran-optimx
SUBDIR += R-cran-xfun
SUBDIR += aclgen
SUBDIR += actiona
diff --git a/misc/R-cran-optimx/Makefile b/misc/R-cran-optimx/Makefile
new file mode 100644
index 000000000000..503c1ec43743
--- /dev/null
+++ b/misc/R-cran-optimx/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= optimx
+DISTVERSION= 2023-10.21
+CATEGORIES= misc
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= eduardo@FreeBSD.org
+COMMENT= Expanded Replacement and Extension of the 'optim' Function
+WWW= https://cran.r-project.org/web/packages/optimx/
+
+LICENSE= GPLv2
+
+CRAN_DEPENDS= R-cran-nloptr>0:math/R-cran-nloptr \
+ R-cran-numDeriv>0:math/R-cran-numDeriv \
+ R-cran-pracma>0:math/R-cran-pracma
+BUILD_DEPENDS= ${CRAN_DEPENDS}
+RUN_DEPENDS= ${CRAN_DEPENDS}
+
+USES= cran:auto-plist
+
+.include <bsd.port.mk>
diff --git a/misc/R-cran-optimx/distinfo b/misc/R-cran-optimx/distinfo
new file mode 100644
index 000000000000..5880d1000d3d
--- /dev/null
+++ b/misc/R-cran-optimx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1711701172
+SHA256 (optimx_2023-10.21.tar.gz) = 0d732d5604c26af59cfb95b80ed4e226c9c10422e2d82a6cc06b92f9ba6a44b5
+SIZE (optimx_2023-10.21.tar.gz) = 3735842
diff --git a/misc/R-cran-optimx/pkg-descr b/misc/R-cran-optimx/pkg-descr
new file mode 100644
index 000000000000..af6ab20aecf5
--- /dev/null
+++ b/misc/R-cran-optimx/pkg-descr
@@ -0,0 +1,4 @@
+Provides a replacement and extension of the optim() function to call to
+several function minimization codes in R in a single statement. These
+methods handle smooth, possibly box constrained functions of several or
+many parameters.