Skip to content

Commit

Permalink
devel/R-cran-systemfonts: New port: System Native Font Finding
Browse files Browse the repository at this point in the history
- Submitter becomes maintainer

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.

WWW: https://systemfonts.r-lib.org/

Differential Revision:	https://reviews.freebsd.org/D43735
  • Loading branch information
einsibjarni authored and nunotexbsd committed Apr 6, 2024
1 parent c2b1d87 commit 3edb56a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions 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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
11 changes: 11 additions & 0 deletions 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.

0 comments on commit 3edb56a

Please sign in to comment.