pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/R R: pkgsrc changes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cde88cdf56e5
branches:  trunk
changeset: 370535:cde88cdf56e5
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 18 16:14:30 2017 +0000

description:
R: pkgsrc changes

PkgSrc changes:
* On Darwin, use Aqua interface instead of X11
* Cairo support also requires Pango
* Allow Cairo with other backends, not only X11 (e.g. to make it work on Darwin)

diffstat:

 math/R/Makefile                  |  41 +++++++++++++++++++++++++--------------
 math/R/PLIST                     |   6 ++--
 math/R/distinfo                  |   3 +-
 math/R/patches/patch-m4_cairo.m4 |  15 ++++++++++++++
 4 files changed, 46 insertions(+), 19 deletions(-)

diffs (146 lines):

diff -r 2b2281c4b29f -r cde88cdf56e5 math/R/Makefile
--- a/math/R/Makefile   Wed Oct 18 14:00:56 2017 +0000
+++ b/math/R/Makefile   Wed Oct 18 16:14:30 2017 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: Makefile,v 1.176 2017/10/06 20:47:37 rumko Exp $
+# $NetBSD: Makefile,v 1.177 2017/10/18 16:14:30 adam Exp $
 
-DISTNAME=              R-3.3.3
-PKGREVISION=           2
-CATEGORIES=            math
-MASTER_SITES=          ${MASTER_SITE_R_CRAN:=base/R-3/}
+DISTNAME=      R-3.3.3
+PKGREVISION=   2
+CATEGORIES=    math
+MASTER_SITES=  ${MASTER_SITE_R_CRAN:=base/R-3/}
 
-MAINTAINER=            markd%NetBSD.org@localhost
-HOMEPAGE=              http://www.R-project.org/
-COMMENT=               Statistical language for data analysis and graphics
-LICENSE=               gnu-gpl-v2
+MAINTAINER=    markd%NetBSD.org@localhost
+HOMEPAGE=      http://www.R-project.org/
+COMMENT=       Statistical language for data analysis and graphics
+LICENSE=       gnu-gpl-v2
 
 #needs FPC code not found in older versions of NetBSD
 NOT_FOR_PLATFORM=      NetBSD-1.[0-4]*-alpha NetBSD-1.5-alpha \
@@ -19,11 +19,10 @@
 BUILD_TARGET=          all info
 INSTALL_TARGET=                install install-info
 TEST_TARGET=           check
-USE_TOOLS+=            gmake gzip:run makeinfo perl:run sed unzip:run xmkmf
-USE_TOOLS+=            pkg-config
-USE_TOOLS+=            aclocal autoconf autoreconf automake
 USE_LANGUAGES=         c c++ fortran
 USE_LIBTOOL=           yes
+USE_TOOLS+=            aclocal autoconf autoreconf automake
+USE_TOOLS+=            gmake gzip:run makeinfo perl:run pkg-config sed unzip:run
 TEXINFO_REQD=          5.1
 INFO_FILES=            yes
 
@@ -31,7 +30,6 @@
 
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --enable-R-shlib
-CONFIGURE_ARGS+=       --with-x
 CONFIGURE_ARGS+=       --with-readline
 CONFIGURE_ARGS+=       --with-tcltk
 CONFIGURE_ARGS+=       --with-tcl-config=${BUILDLINK_PREFIX.tcl}/lib/tclConfig.sh
@@ -51,9 +49,18 @@
 USE_GNU_ICONV=         yes             # latin1 support, iconvlist
 .endif
 
+PLIST_VARS+=           x11
+
 # Disable Mac OS specific support used by R.app
+.if ${OPSYS} == "Darwin"
 CONFIGURE_ARGS+=       --disable-R-framework
-CONFIGURE_ARGS+=       --without-aqua
+CONFIGURE_ARGS+=       --with-aqua
+CONFIGURE_ARGS+=       --without-x
+.else
+USE_TOOLS+=            xmkmf
+CONFIGURE_ARGS+=       --with-x
+PLIST.x11=             yes
+.endif
 
 # Use BLAS (math/blas)
 CONFIGURE_ARGS+=       --without-atlas
@@ -157,6 +164,7 @@
 .include "../../archivers/xz/buildlink3.mk"
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/pango/buildlink3.mk"
 .include "../../devel/pcre/buildlink3.mk"
 # uses callback interface
 .include "../../devel/readline/buildlink3.mk"
@@ -167,8 +175,11 @@
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../math/blas/buildlink3.mk"
 .include "../../www/curl/buildlink3.mk"
+.include "../../x11/tk/buildlink3.mk"
+
+.if ${OPSYS} != "Darwin"
 .include "../../x11/libXt/buildlink3.mk"
-.include "../../x11/tk/buildlink3.mk"
+.endif
 
 INSTALL_TEMPLATES+=    ../../math/R/files/pkg-index.tmpl
 DEINSTALL_TEMPLATES+=  ../../math/R/files/pkg-index.tmpl
diff -r 2b2281c4b29f -r cde88cdf56e5 math/R/PLIST
--- a/math/R/PLIST      Wed Oct 18 14:00:56 2017 +0000
+++ b/math/R/PLIST      Wed Oct 18 16:14:30 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.26 2017/03/11 09:50:34 wen Exp $
+@comment $NetBSD: PLIST,v 1.27 2017/10/18 16:14:30 adam Exp $
 bin/R
 bin/Rscript
 info/R-FAQ.info.gz
@@ -1431,8 +1431,8 @@
 lib/R/library/utils/libs/utils.so
 lib/R/library/utils/misc/exDIF.csv
 lib/R/library/utils/misc/exDIF.dif
-lib/R/modules/R_X11.so
-lib/R/modules/R_de.so
+${PLIST.x11}lib/R/modules/R_X11.so
+${PLIST.x11}lib/R/modules/R_de.so
 lib/R/modules/internet.so
 lib/R/modules/lapack.so
 lib/R/share/R/REMOVE.R
diff -r 2b2281c4b29f -r cde88cdf56e5 math/R/distinfo
--- a/math/R/distinfo   Wed Oct 18 14:00:56 2017 +0000
+++ b/math/R/distinfo   Wed Oct 18 16:14:30 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.76 2017/10/06 20:47:37 rumko Exp $
+$NetBSD: distinfo,v 1.77 2017/10/18 16:14:30 adam Exp $
 
 SHA1 (R-3.3.3.tar.gz) = 9e205a817970578ecd80384f397bae35b46f13b9
 RMD160 (R-3.3.3.tar.gz) = 5f0d3aa3cf26132ac8774d2589083a12493c18ad
@@ -7,6 +7,7 @@
 SHA1 (patch-ad) = a43b4875a2ee4677b5f762abf3f9a623fd12cbb5
 SHA1 (patch-configure.ac) = c3e77e8f7bf784a269d09c937ab1997ef701aa81
 SHA1 (patch-m4_R.m4) = 704d5514e10adf0b5217bb71b06f44a612eca6e0
+SHA1 (patch-m4_cairo.m4) = a0c4ec68d7d6d3a73a2a24481d0dee8c192bf154
 SHA1 (patch-src_include_GraphicsBase.h) = eed25eaca982ca76bf75d199dd8bf48be2a99ac5
 SHA1 (patch-src_library_stats_src_Makefile.in) = 4eb93292858392792c37a706399e2cef91821bbe
 SHA1 (patch-src_main_character.c) = 1271cbd68ec57e28cf6a394398d21d6a18b6760b
diff -r 2b2281c4b29f -r cde88cdf56e5 math/R/patches/patch-m4_cairo.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/R/patches/patch-m4_cairo.m4  Wed Oct 18 16:14:30 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-m4_cairo.m4,v 1.1 2017/10/18 16:14:30 adam Exp $
+
+Detect cairo with any backend (not only X11).
+
+--- m4/cairo.m4.orig   2017-10-18 15:50:34.000000000 +0000
++++ m4/cairo.m4
+@@ -70,7 +70,7 @@ else
+                     [AC_LINK_IFELSE([AC_LANG_SOURCE([[
+ #include <pango/pango.h>
+ #include <pango/pangocairo.h>
+-#include <cairo-xlib.h>
++#include <cairo.h>
+ #if CAIRO_VERSION  < 10200
+ #error cairo version >= 1.2 required
+ #endif



Home | Main Index | Thread Index | Old Index