Mon May 21 17:12:35 2018 UTC ()
graphics/R-Cairo: Import version 1.5.9

Cairo graphics device that can be use to create high-quality vector
(PDF, PostScript and SVG) and bitmap output (PNG,JPEG,TIFF), and
high-quality rendering in displays (X11 and Win32). Since it uses the
same back-end for all output, copying across formats is WYSIWYG. Files
are created without the dependence on X11 or other external programs.
This device supports alpha channel (semi-transparent drawing) and
resulting images can contain transparent and semi-transparent regions.
It is ideal for use in server environments (file output) and as a
replacement for other devices that don't have Cairo's capabilities
such as alpha support or anti-aliasing. Backends are modular such that
any subset of backends is supported.

Packaged by Yorick Hardy for pkgsrc-wip and updated by Kamil Rytarowski.


(minskim)
diff -r0 -r1.1 pkgsrc/graphics/R-Cairo/DESCR
diff -r0 -r1.1 pkgsrc/graphics/R-Cairo/Makefile
diff -r0 -r1.1 pkgsrc/graphics/R-Cairo/distinfo
diff -r0 -r1.1 pkgsrc/graphics/R-Cairo/patches/patch-configure

File Added: pkgsrc/graphics/R-Cairo/DESCR
Cairo graphics device that can be use to create high-quality vector
(PDF, PostScript and SVG) and bitmap output (PNG,JPEG,TIFF), and
high-quality rendering in displays (X11 and Win32). Since it uses the
same back-end for all output, copying across formats is WYSIWYG. Files
are created without the dependence on X11 or other external programs.
This device supports alpha channel (semi-transparent drawing) and
resulting images can contain transparent and semi-transparent regions.
It is ideal for use in server environments (file output) and as a
replacement for other devices that don't have Cairo's capabilities
such as alpha support or anti-aliasing. Backends are modular such that
any subset of backends is supported.

File Added: pkgsrc/graphics/R-Cairo/Makefile
# $NetBSD: Makefile,v 1.1 2018/05/21 17:12:34 minskim Exp $

DISTNAME=	Cairo_1.5-9
CATEGORIES=	graphics

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.rforge.net/Cairo/
COMMENT=	R graphics device using cairo graphics library
LICENSE=	gnu-gpl-v2

BUILDLINK_API_DEPENDS.R+=	R>=2.4.0
.include "../../math/R/Makefile.extension"
BUILDLINK_API_DEPENDS.cairo+=	cairo>=1.2
.include "../../graphics/cairo/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/graphics/R-Cairo/distinfo
$NetBSD: distinfo,v 1.1 2018/05/21 17:12:34 minskim Exp $

SHA1 (R/Cairo_1.5-9.tar.gz) = dff02930b0006e8c0676b0f0d0ac4d5fc8f2551e
RMD160 (R/Cairo_1.5-9.tar.gz) = 1f988814682593c57806887b207cd3a8ebdd2bdf
SHA512 (R/Cairo_1.5-9.tar.gz) = bc220436272bb0e144e6bb89df75fc3da26162c763a837cd3e01e76a4d22e225ef9b5215b6655212fa634ff78df5f43b46c1f633903c5e7e9b379a0cba3010b4
Size (R/Cairo_1.5-9.tar.gz) = 86982 bytes
SHA1 (patch-configure) = eb4918abf1d80c02afbeea52aeccaa8675ee2021

File Added: pkgsrc/graphics/R-Cairo/patches/patch-configure
$NetBSD: patch-configure,v 1.1 2018/05/21 17:12:35 minskim Exp $

Fix "==" tests.

--- configure.orig	2014-06-26 14:50:25.000000000 +0000
+++ configure
@@ -3461,7 +3461,7 @@ fi
 
 
 have_cairo=no
-if test "xx$CAIRO_LIBS" == "xx"; then
+if test "xx$CAIRO_LIBS" = "xx"; then
    if test "xx$PKGCONF" != "xx"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo" >&5
 $as_echo_n "checking whether pkg-config knows about cairo... " >&6; }
@@ -3581,8 +3581,8 @@ fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
 
-if test "xx${CAIRO_LIBS}" == "xx"; then
-   if test $uses_ats == "yes"; then
+if test "xx${CAIRO_LIBS}" = "xx"; then
+   if test $uses_ats = "yes"; then
       CAIRO_LIBS="-lcairo -lpng -lz -framework ApplicationServices"
    else
       CAIRO_LIBs="-lcairo -lpng -lz"