summaryrefslogtreecommitdiff
path: root/textproc/R-stringi
diff options
context:
space:
mode:
authorwen <wen@pkgsrc.org>2016-01-01 12:59:19 +0000
committerwen <wen@pkgsrc.org>2016-01-01 12:59:19 +0000
commit9c162f88db50207538f4800f35dfbb8acf0fa923 (patch)
treea66021e5ea0df71b87296dc07ae0fc6260183e98 /textproc/R-stringi
parent3a07239a89f1ac9c39f6756d9bf00fe78055ca34 (diff)
downloadpkgsrc-9c162f88db50207538f4800f35dfbb8acf0fa923.tar.gz
Import stringi-1.0.1 as textproc/R-stringi.
stringi (pronounced "stringy") is the R package for fast, correct, consistent and convenient string/text processing in each locale and any native character encoding. The use of the ICU library gives R users a platform-independent set of functions known to Java, Perl, Python, PHP, and Ruby programmers.
Diffstat (limited to 'textproc/R-stringi')
-rw-r--r--textproc/R-stringi/DESCR5
-rw-r--r--textproc/R-stringi/Makefile18
-rw-r--r--textproc/R-stringi/distinfo7
-rw-r--r--textproc/R-stringi/patches/patch-configure73
4 files changed, 103 insertions, 0 deletions
diff --git a/textproc/R-stringi/DESCR b/textproc/R-stringi/DESCR
new file mode 100644
index 00000000000..f80a42167dc
--- /dev/null
+++ b/textproc/R-stringi/DESCR
@@ -0,0 +1,5 @@
+stringi (pronounced "stringy") is the R package for fast, correct,
+consistent and convenient string/text processing in each locale and
+any native character encoding. The use of the ICU library gives R
+users a platform-independent set of functions known to Java, Perl,
+Python, PHP, and Ruby programmers.
diff --git a/textproc/R-stringi/Makefile b/textproc/R-stringi/Makefile
new file mode 100644
index 00000000000..5892480d39c
--- /dev/null
+++ b/textproc/R-stringi/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2016/01/01 12:59:19 wen Exp $
+
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_R_CRAN:=contrib/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= ${R_HOMEPAGE_BASE}/stringi/
+COMMENT= Character String Processing Facilities
+LICENSE= modified-bsd
+
+R_PKGNAME= stringi
+R_PKGVER= 1.0-1
+
+USE_LANGUAGES= c c++
+
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../math/R/Makefile.extension"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/R-stringi/distinfo b/textproc/R-stringi/distinfo
new file mode 100644
index 00000000000..ae6bd9bd3b1
--- /dev/null
+++ b/textproc/R-stringi/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/01/01 12:59:19 wen Exp $
+
+SHA1 (R/stringi_1.0-1.tar.gz) = b9fdcd23ae8950ea527574b74139ad74678b739f
+RMD160 (R/stringi_1.0-1.tar.gz) = df1e9d90a7ba33cad66bfc37fcd54f02b43e4db4
+SHA512 (R/stringi_1.0-1.tar.gz) = 5ec12d90234f28ac882785ddf2040130d2861870004f76a04bc68261129d77e4b4ef3c3cc9824023ead5be62726ce6a7cce0d10815f3173a28b8d8ca4681b38d
+Size (R/stringi_1.0-1.tar.gz) = 3643002 bytes
+SHA1 (patch-configure) = b466f9106db9c326a89e431ded9bad2172e1689a
diff --git a/textproc/R-stringi/patches/patch-configure b/textproc/R-stringi/patches/patch-configure
new file mode 100644
index 00000000000..0db02fb9b34
--- /dev/null
+++ b/textproc/R-stringi/patches/patch-configure
@@ -0,0 +1,73 @@
+$NetBSD: patch-configure,v 1.1 2016/01/01 12:59:19 wen Exp $
+Fix configure
+--- configure.orig 2016-01-01 12:33:03.000000000 +0000
++++ configure
+@@ -2205,7 +2205,7 @@ if test "${enable_gcc_debug+set}" = set;
+ enableval=$enable_gcc_debug;
+ fi
+
+-if test "x$enable_gcc_debug" == "xyes"; then
++if test "x$enable_gcc_debug" = "xyes"; then
+ enable_gcc_debug="yes"
+ else
+ enable_gcc_debug="no"
+@@ -2216,7 +2216,7 @@ if test "${enable_gcc_pedantic+set}" = s
+ enableval=$enable_gcc_pedantic;
+ fi
+
+-if test "x$enable_gcc_pedantic" == "xyes"; then
++if test "x$enable_gcc_pedantic" = "xyes"; then
+ enable_gcc_pedantic="yes"
+ else
+ enable_gcc_pedantic="no"
+@@ -2304,13 +2304,13 @@ $as_echo "$R_PATH" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for R >= 3.1.0" >&5
+ $as_echo_n "checking for R >= 3.1.0... " >&6; }
+ R_GE_31=`"${R_PATH}" --vanilla --slave -e 'cat(if (getRversion() >= numeric_version("3.1.0")) "yes" else "no")'`
+-if test "x$R_GE_31" == "xyes"; then
++if test "x$R_GE_31" = "xyes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }
+- if test "x$enable_cxx11" == "xyes"; then
++ if test "x$enable_cxx11" = "xyes"; then
+ echo "*** disabling C++11 use"
+ enable_cxx11="no"
+ fi
+@@ -2369,14 +2369,14 @@ fi
+
+ ###### SETUP COMPILER FLAGS FOR TESTING ######################################
+
+-if test "x$enable_gcc_debug" == "xyes"; then
++if test "x$enable_gcc_debug" = "xyes"; then
+ # -fsanitize=address -fno-omit-frame-pointer
+ with_extra_cppflags="${with_extra_cppflags} -DDEBUG -UNDEBUG"
+ else
+ with_extra_cppflags="${with_extra_cppflags} -UDEBUG -DNDEBUG"
+ fi
+
+-if test "x$enable_gcc_pedantic" == "xyes"; then
++if test "x$enable_gcc_pedantic" = "xyes"; then
+ with_extra_cflags="${with_extra_cflags} -Wall -Wextra -ansi -pedantic -std=c99"
+ with_extra_cxxflags="${with_extra_cxxflags} -Wall -Wextra -ansi -pedantic -std=c++98 -Wlong-long"
+ fi
+@@ -2389,7 +2389,7 @@ CPPFLAGS=`"${R_PATH}" CMD config CPPFLAG
+ LIBS=
+ LDFLAGS=
+
+-if test "x$enable_cxx11" == "xyes"; then
++if test "x$enable_cxx11" = "xyes"; then
+ CXX="`\"${R_PATH}\" CMD config CXX1X` `\"${R_PATH}\" CMD config CXX1XSTD`"
+ CXXFLAGS=`"${R_PATH}" CMD config CXX1XFLAGS`
+ STRINGI_CXXSTD="CXX_STD=CXX11"
+@@ -4054,7 +4054,7 @@ CPP_OK=0
+ check_cpp
+
+ if test $CPP_OK = 0; then
+- if test "x$enable_cxx11" == "xyes"; then
++ if test "x$enable_cxx11" = "xyes"; then
+ echo "*** trying with disabled C++11 compiler"
+ CXX=`"${R_PATH}" CMD config CXX`
+ CXXFLAGS=`"${R_PATH}" CMD config CXXFLAGS`