pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/R
Module Name: pkgsrc
Committed By: adam
Date: Wed Oct 18 16:14:30 UTC 2017
Modified Files:
pkgsrc/math/R: Makefile PLIST distinfo
Added Files:
pkgsrc/math/R/patches: patch-m4_cairo.m4
Log Message:
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)
To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.177 pkgsrc/math/R/Makefile
cvs rdiff -u -r1.26 -r1.27 pkgsrc/math/R/PLIST
cvs rdiff -u -r1.76 -r1.77 pkgsrc/math/R/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/R/patches/patch-m4_cairo.m4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/R/Makefile
diff -u pkgsrc/math/R/Makefile:1.176 pkgsrc/math/R/Makefile:1.177
--- pkgsrc/math/R/Makefile:1.176 Fri Oct 6 20:47:37 2017
+++ pkgsrc/math/R/Makefile Wed Oct 18 16:14:30 2017
@@ -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/}
-
-MAINTAINER= markd%NetBSD.org@localhost
-HOMEPAGE= http://www.R-project.org/
-COMMENT= Statistical language for data analysis and graphics
-LICENSE= gnu-gpl-v2
+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
#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 @@ USE_GCC_RUNTIME= yes
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 @@ PTHREAD_AUTO_VARS= yes
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 @@ CONFIGURE_ARGS+= --enable-long-double=no
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 @@ fix-darwin-install-name:
.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,9 +175,12 @@ fix-darwin-install-name:
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/blas/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
-.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
+.if ${OPSYS} != "Darwin"
+.include "../../x11/libXt/buildlink3.mk"
+.endif
+
INSTALL_TEMPLATES+= ../../math/R/files/pkg-index.tmpl
DEINSTALL_TEMPLATES+= ../../math/R/files/pkg-index.tmpl
PRINT_PLIST_AWK+= /^lib\/R\/doc\/html\/packages.html$$/ { next; }
Index: pkgsrc/math/R/PLIST
diff -u pkgsrc/math/R/PLIST:1.26 pkgsrc/math/R/PLIST:1.27
--- pkgsrc/math/R/PLIST:1.26 Sat Mar 11 09:50:34 2017
+++ pkgsrc/math/R/PLIST Wed Oct 18 16:14:30 2017
@@ -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/iconvlist
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
Index: pkgsrc/math/R/distinfo
diff -u pkgsrc/math/R/distinfo:1.76 pkgsrc/math/R/distinfo:1.77
--- pkgsrc/math/R/distinfo:1.76 Fri Oct 6 20:47:37 2017
+++ pkgsrc/math/R/distinfo Wed Oct 18 16:14:30 2017
@@ -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 @@ Size (R-3.3.3.tar.gz) = 29804326 bytes
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
Added files:
Index: pkgsrc/math/R/patches/patch-m4_cairo.m4
diff -u /dev/null pkgsrc/math/R/patches/patch-m4_cairo.m4:1.1
--- /dev/null Wed Oct 18 16:14:30 2017
+++ pkgsrc/math/R/patches/patch-m4_cairo.m4 Wed Oct 18 16:14:30 2017
@@ -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