Sun Apr 17 04:09:44 2016 UTC ()
Import nloptr-1.0.4 as math/R-nloptr.

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.


(wen)
diff -r0 -r1.1 pkgsrc/math/R-nloptr/DESCR
diff -r0 -r1.1 pkgsrc/math/R-nloptr/Makefile
diff -r0 -r1.1 pkgsrc/math/R-nloptr/distinfo
diff -r0 -r1.1 pkgsrc/math/R-nloptr/patches/patch-configure

File Added: pkgsrc/math/R-nloptr/DESCR
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.

File Added: pkgsrc/math/R-nloptr/Makefile
# $NetBSD: Makefile,v 1.1 2016/04/17 04:09:44 wen Exp $
#

CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_R_CRAN:=contrib/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	${R_HOMEPAGE_BASE}/nloptr/
COMMENT=	R interface to NLopt
LICENSE=	gnu-lgpl-v3

R_PKGNAME=	nloptr
R_PKGVER=	1.0.4

USE_LANGUAGES=	c c++

SUBST_CLASSES+=		conf
SUBST_STAGE.conf=	post-patch
SUBST_FILES.conf+=	configure
SUBST_MESSAGE.conf=	Fixing redirection of configure.
SUBST_SED.conf=		-e "s,<<<,<,g"

.include "../../math/R/Makefile.extension"
.include "../../math/nlopt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/math/R-nloptr/distinfo
$NetBSD: distinfo,v 1.1 2016/04/17 04:09:44 wen Exp $

SHA1 (R/nloptr_1.0.4.tar.gz) = 96a408dd280081c4ee4e56050afd317e8c3cfef9
RMD160 (R/nloptr_1.0.4.tar.gz) = 2d28e16b635bcaaceb108a0a96d21ba621b8955f
Size (R/nloptr_1.0.4.tar.gz) = 353942 bytes
SHA1 (patch-configure) = edadaf36dce4e3ff1b762dee7842ad63ca67603d

File Added: pkgsrc/math/R-nloptr/patches/patch-configure
$NetBSD: patch-configure,v 1.1 2016/04/17 04:09:44 wen Exp $
Fix usage of conditionals in configure
--- configure.orig	2015-11-28 07:01:04.000000000 +0000
+++ configure
@@ -2953,8 +2953,8 @@ fi
 
 ## also use pkg-config to check for NLopt
 ##
-if test x"${nlopt_libs}" == x""; then
-    if test x"${PKGCONFIG}" == x"yes"; then
+if test x"${nlopt_libs}" = x""; then
+    if test x"${PKGCONFIG}" = x"yes"; then
         ## check via pkg-config for hiredis
         if pkg-config --exists nlopt; then
             ## obtain cflags and obtain libs