diff --git a/devel/Makefile b/devel/Makefile index 9ae086e1bb6a9..3bb99262aef75 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -131,6 +131,7 @@ SUBDIR += R-cran-sessioninfo SUBDIR += R-cran-sfsmisc SUBDIR += R-cran-sourcetools + SUBDIR += R-cran-systemfonts SUBDIR += R-cran-sys SUBDIR += R-cran-testit SUBDIR += R-cran-testthat diff --git a/devel/R-cran-systemfonts/Makefile b/devel/R-cran-systemfonts/Makefile new file mode 100644 index 0000000000000..cca0e548480fa --- /dev/null +++ b/devel/R-cran-systemfonts/Makefile @@ -0,0 +1,21 @@ +PORTNAME= systemfonts +DISTVERSION= 1.0.6 +CATEGORIES= devel +DISTNAME= ${PORTNAME}_${DISTVERSION} + +MAINTAINER= einar@isnic.is +COMMENT= System Native Font Finding +WWW= https://systemfonts.r-lib.org/ + +LICENSE= MIT + +CRAN_DEPENDS= R-cran-cpp11>=0.2.1:devel/R-cran-cpp11 +BUILD_DEPENDS= ${CRAN_DEPENDS} +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 +RUN_DEPENDS= ${CRAN_DEPENDS} +TEST_DEPENDS= R-cran-testthat>0:devel/R-cran-testthat + +USES= cran:auto-plist,compiles pkgconfig + +.include diff --git a/devel/R-cran-systemfonts/distinfo b/devel/R-cran-systemfonts/distinfo new file mode 100644 index 0000000000000..02db4b229fb14 --- /dev/null +++ b/devel/R-cran-systemfonts/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1709821553 +SHA256 (systemfonts_1.0.6.tar.gz) = d1586e7b6ecdcb5af6559a30f58b806d347e570724313cb9cb655a27ad581dd7 +SIZE (systemfonts_1.0.6.tar.gz) = 80844 diff --git a/devel/R-cran-systemfonts/pkg-descr b/devel/R-cran-systemfonts/pkg-descr new file mode 100644 index 0000000000000..822d174726ec9 --- /dev/null +++ b/devel/R-cran-systemfonts/pkg-descr @@ -0,0 +1,11 @@ +Provides system native access to the font catalogue. + +As font handling varies between systems it is difficult to correctly locate +installed fonts across different operating systems. + +The 'systemfonts' package provides bindings to the native libraries on Windows, +macOS and Linux for finding font files that can then be used further by e.g. +graphic devices. + +The main use is intended to be from compiled code but 'systemfonts' also +provides access from R.