From c2570e0d5646600d41c01cbd8a2c6010f0a29192 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Tue, 6 May 2014 04:44:22 +0000 Subject: [PATCH] Caladea is metric-compatible with Cambria font. This font is sans-serif typeface family based on Lato. WWW: https://code.google.com/p/chromium/issues/detail?id=168879 --- x11-fonts/Makefile | 1 + x11-fonts/crosextrafonts-caladea-ttf/Makefile | 42 +++++++++++++++++++ x11-fonts/crosextrafonts-caladea-ttf/distinfo | 2 + .../files/pkg-message.in | 5 +++ .../crosextrafonts-caladea-ttf/pkg-descr | 4 ++ .../crosextrafonts-caladea-ttf/pkg-plist | 8 ++++ 6 files changed, 62 insertions(+) create mode 100644 x11-fonts/crosextrafonts-caladea-ttf/Makefile create mode 100644 x11-fonts/crosextrafonts-caladea-ttf/distinfo create mode 100644 x11-fonts/crosextrafonts-caladea-ttf/files/pkg-message.in create mode 100644 x11-fonts/crosextrafonts-caladea-ttf/pkg-descr create mode 100644 x11-fonts/crosextrafonts-caladea-ttf/pkg-plist diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index d057d141a761..4ccb9bf8ff11 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -26,6 +26,7 @@ SUBDIR += comic-neue SUBDIR += consolamono-ttf SUBDIR += croscorefonts-fonts-ttf + SUBDIR += crosextrafonts-caladea-ttf SUBDIR += cyberbit-ttfonts SUBDIR += cyr-rfx SUBDIR += dejavu diff --git a/x11-fonts/crosextrafonts-caladea-ttf/Makefile b/x11-fonts/crosextrafonts-caladea-ttf/Makefile new file mode 100644 index 000000000000..2f55eba71ab6 --- /dev/null +++ b/x11-fonts/crosextrafonts-caladea-ttf/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= crosextrafonts +PORTVERSION= 20130214 +CATEGORIES= x11-fonts +MASTER_SITES= http://gsdview.appspot.com/chromeos-localmirror/distfiles/ +PKGNAMESUFFIX= -caladea + +MAINTAINER= office@FreeBSD.org +COMMENT= Font created by Google for ChromeOS to replace MS Cambria + +LICENSE= APACHE20 + +BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ + mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale + +USE_XORG= x11 + +PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}" + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_LIST= FONTDIR=${FONTDIR} + +FONTNAME= Caladea +FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME} +INSTDAT= fonts.dir fonts.scale + +MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale +MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir + +do-build: + cd ${WRKSRC} && ${MKFONTSCL_CMD} + ${REINPLACE_CMD} -e 's|-misc-|-google-|' ${WRKSRC}/fonts.scale + cd ${WRKSRC} && ${MKFONTDIR_CMD} + +do-install: + ${MKDIR} ${STAGEDIR}${FONTDIR} + cd ${WRKSRC} && \ + ${INSTALL_DATA} ${INSTDAT} *.ttf ${STAGEDIR}${FONTDIR} + +.include diff --git a/x11-fonts/crosextrafonts-caladea-ttf/distinfo b/x11-fonts/crosextrafonts-caladea-ttf/distinfo new file mode 100644 index 000000000000..38f8d3d2abf7 --- /dev/null +++ b/x11-fonts/crosextrafonts-caladea-ttf/distinfo @@ -0,0 +1,2 @@ +SHA256 (crosextrafonts-20130214.tar.gz) = c48d1c2fd613c9c06c959c34da7b8388059e2408d2bb19845dc3ed35f76e4d09 +SIZE (crosextrafonts-20130214.tar.gz) = 112756 diff --git a/x11-fonts/crosextrafonts-caladea-ttf/files/pkg-message.in b/x11-fonts/crosextrafonts-caladea-ttf/files/pkg-message.in new file mode 100644 index 000000000000..dca252c8f1d3 --- /dev/null +++ b/x11-fonts/crosextrafonts-caladea-ttf/files/pkg-message.in @@ -0,0 +1,5 @@ +You can start using the fonts by following these instructions: + +Add the following line to the "Files" section of your x.org configuration file: + + FontPath "%%FONTDIR%%/" diff --git a/x11-fonts/crosextrafonts-caladea-ttf/pkg-descr b/x11-fonts/crosextrafonts-caladea-ttf/pkg-descr new file mode 100644 index 000000000000..9c0782f8b5de --- /dev/null +++ b/x11-fonts/crosextrafonts-caladea-ttf/pkg-descr @@ -0,0 +1,4 @@ +Caladea is metric-compatible with Cambria font. +This font is sans-serif typeface family based on Lato. + +WWW: https://code.google.com/p/chromium/issues/detail?id=168879 diff --git a/x11-fonts/crosextrafonts-caladea-ttf/pkg-plist b/x11-fonts/crosextrafonts-caladea-ttf/pkg-plist new file mode 100644 index 000000000000..b83d24be768e --- /dev/null +++ b/x11-fonts/crosextrafonts-caladea-ttf/pkg-plist @@ -0,0 +1,8 @@ +%%FONTDIR%%/Caladea-Bold.ttf +%%FONTDIR%%/Caladea-BoldItalic.ttf +%%FONTDIR%%/Caladea-Italic.ttf +%%FONTDIR%%/Caladea-Regular.ttf +%%FONTDIR%%/fonts.dir +%%FONTDIR%%/fonts.scale +@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true +@dirrm %%FONTDIR%%