pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(math/R-nloptr) Add new package for update



Module Name:	pkgsrc-wip
Committed By:	Makoto mef Fujiwara <mef%NetBSD.org@localhost>
Pushed By:	mef
Date:		Sun Jun 11 11:16:27 2023 +0900
Changeset:	32ca2791a45e600a64d47a7d68f28b9844326ab6

Added Files:
	R-nloptr/DESCR
	R-nloptr/Makefile
	R-nloptr/TODO
	R-nloptr/distinfo
	R-nloptr/patches/patch-configure

Log Message:
(math/R-nloptr) Add new package for update

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=32ca2791a45e600a64d47a7d68f28b9844326ab6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 R-nloptr/DESCR                   |  4 ++++
 R-nloptr/Makefile                | 25 +++++++++++++++++++++++++
 R-nloptr/TODO                    | 35 +++++++++++++++++++++++++++++++++++
 R-nloptr/distinfo                |  6 ++++++
 R-nloptr/patches/patch-configure | 19 +++++++++++++++++++
 5 files changed, 89 insertions(+)

diffs:
diff --git a/R-nloptr/DESCR b/R-nloptr/DESCR
new file mode 100644
index 0000000000..21c56d9fcd
--- /dev/null
+++ b/R-nloptr/DESCR
@@ -0,0 +1,4 @@
+nloptr is an R interface to NLopt. NLopt is a free/open-source library
+for nonlinear optimization, providing a common interface for a number
+of different free optimization routines available online as well as
+original implementations of various other algorithms.
diff --git a/R-nloptr/Makefile b/R-nloptr/Makefile
new file mode 100644
index 0000000000..06021b9cf5
--- /dev/null
+++ b/R-nloptr/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.8 2021/09/20 01:16:44 mef Exp $
+
+R_PKGNAME=	nloptr
+R_PKGVER=	2.0.3
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+COMMENT=	R interface to NLopt
+LICENSE=	gnu-lgpl-v3
+
+#EPENDS+=	R-testthat-[0-9]*:../../devel/R-testthat
+
+TEST_DEPENDS+=	R-knitr-[0-9]*:../../print/R-knitr
+TEST_DEPENDS+=	R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
+TEST_DEPENDS+=	R-inline-[0-9]*:../../devel/R-inline
+TEST_DEPENDS+=	R-testthat-[0-9]*:../../devel/R-testthat
+
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	pkg-config
+#CFLAGS+=	-I ${PREFIX}/lib/R/library/testthat/include
+#DFLAGS+=	-L ${WRKSRC}/nloptr/src/nlopt/lib
+
+.include "../../devel/R-testthat/buildlink3.mk"
+.include "../../math/R/Makefile.extension"
+.include "../../math/nlopt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/R-nloptr/TODO b/R-nloptr/TODO
new file mode 100644
index 0000000000..db622b9709
--- /dev/null
+++ b/R-nloptr/TODO
@@ -0,0 +1,35 @@
+** libs                                                                                                                               
+gcc -I"/usr/pkg/lib/R/include" -DNDEBUG -I../inst/include -I'/usr/pkg/lib/R/library/testthat/include' -I/usr/pkg/include -I/usr/includ
+e -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/include/
+freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -fpic  -O2 -fPIC -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/include -I/usr/inc
+lude -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/inclu
+de/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -c init_nloptr.c -o init_nloptr.o                                       
+
+gcc -I"/usr/pkg/lib/R/include" -DNDEBUG -I../inst/include -I'/usr/pkg/lib/R/library/testthat/include' -I/usr/pkg/include -I/usr/includ
+e -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/include/
+freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -fpic  -O2 -fPIC -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/include -I/usr/inc
+lude -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/inclu
+de/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -c nloptr.c -o nloptr.o                                                 
+
+c++ -std=gnu++11 -I"/usr/pkg/lib/R/include" -DNDEBUG -I../inst/include -I'/usr/pkg/lib/R/library/testthat/include' -I/usr/pkg/include 
+-I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr
+/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -fpic  -O2 -fPIC -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/inclu
+de -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/
+usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -c test-C-API.cpp -o test-C-API.o                          
+
+c++ -std=gnu++11 -I"/usr/pkg/lib/R/include" -DNDEBUG -I../inst/include -I'/usr/pkg/lib/R/library/testthat/include' -I/usr/pkg/include 
+-I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr
+/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -fpic  -O2 -fPIC -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/inclu
+de -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/
+usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -c test-runner.cpp -o test-runner.o                        
+
+c++ -std=gnu++11 -shared -Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib -Wl,-zrelro -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr
+/pkg/lib -pthread -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -o nloptr.so init_nloptr.o nloptr.o test-C-API.o test-runner.o -llapack -lblas
+ -lblas -L/usr/pkg/gcc10/lib/gcc/x86_64--netbsd/10.4.0 -L/usr/pkg/gcc10/lib -Wl,-R/usr/pkg/gcc10//lib/. -Wl,-R/usr/pkg/gcc10/lib/. -lg
+fortran -lm -lquadmath -lpthread nlopt/lib/libnlopt.a -Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib -lR                               
+g++: error: nlopt/lib/libnlopt.a: No such file or directory
+*** Error code 1
+
+Stop.
+make: stopped in /tmp/math/R-nloptr/work/nloptr/src
+
diff --git a/R-nloptr/distinfo b/R-nloptr/distinfo
new file mode 100644
index 0000000000..957c28ac10
--- /dev/null
+++ b/R-nloptr/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.6 2021/10/26 10:55:30 nia Exp $
+
+BLAKE2s (R/nloptr_2.0.3.tar.gz) = fe92ef7297289695918b121ae1cd1b916c68119516c4ecde393038a8bc58d579
+SHA512 (R/nloptr_2.0.3.tar.gz) = 08f8a6b7ddc20f7b75c567ee7e55abd47228c4fc8db254080dc7f4010311a92ad4c75ca9b593adbb4183308e4142fdc9ab80aed1b7fe5da3b7450a19624b98e6
+Size (R/nloptr_2.0.3.tar.gz) = 2219877 bytes
+SHA1 (patch-configure) = e943b258caecf1ca39d5bd07a395885e2faf7958
diff --git a/R-nloptr/patches/patch-configure b/R-nloptr/patches/patch-configure
new file mode 100644
index 0000000000..a7b636afec
--- /dev/null
+++ b/R-nloptr/patches/patch-configure
@@ -0,0 +1,19 @@
+$NetBSD: patch-configure,v 1.3 2021/09/20 01:16:44 mef Exp $
+
+=> Checking for portability problems in extracted files
+ERROR: [check-portability.awk] => Found test ... == ...:
+ERROR: [check-portability.awk] configure:2974: if test x"${nlopt_libs}" == x""; then
+ERROR: [check-portability.awk] configure:2975:     if test x"${PKGCONFIG}" == x"yes"; then
+ERROR: [check-portability.awk] configure:3272:     if test x"${PKGCONFIG}" == x"yes"; then
+
+--- configure.orig	2022-05-26 23:40:24.000000000 +0900
++++ configure	2023-06-11 09:53:02.612200743 +0900
+@@ -3320,7 +3320,7 @@ printf "%s\n" "no" >&6; }
+ fi
+ 
+ 
+-    if test x"${have_cmake}" == x"no"; then
++    if test x"${have_cmake}" = x"no"; then
+        . src/scripts/cmake_config.sh
+        if test -z "${CMAKE_BIN}"; then
+           ## also error to end configure here


Home | Main Index | Thread Index | Old Index