From 715d7bb207e80f1b80f7675299045ca25bfe321e Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Sun, 22 Aug 2010 14:49:17 +0000 Subject: [PATCH] Add droid-fonts-ttf 20100214, the Droid typeface family. PR: ports/148601 Submitted by: Olivier Duchateau --- x11-fonts/Makefile | 1 + x11-fonts/droid-fonts-ttf/Makefile | 72 +++++++++++++++++++ x11-fonts/droid-fonts-ttf/distinfo | 42 +++++++++++ .../droid-fonts-ttf/files/pkg-message.in | 6 ++ x11-fonts/droid-fonts-ttf/pkg-descr | 7 ++ x11-fonts/droid-fonts-ttf/pkg-plist | 17 +++++ 6 files changed, 145 insertions(+) create mode 100644 x11-fonts/droid-fonts-ttf/Makefile create mode 100644 x11-fonts/droid-fonts-ttf/distinfo create mode 100644 x11-fonts/droid-fonts-ttf/files/pkg-message.in create mode 100644 x11-fonts/droid-fonts-ttf/pkg-descr create mode 100644 x11-fonts/droid-fonts-ttf/pkg-plist diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index 5e4afe0bcd7f..a56d8aa60670 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -20,6 +20,7 @@ SUBDIR += cyberbit-ttfonts SUBDIR += cyr-rfx SUBDIR += dejavu + SUBDIR += droid-fonts-ttf SUBDIR += ecofont SUBDIR += encodings SUBDIR += etlfonts diff --git a/x11-fonts/droid-fonts-ttf/Makefile b/x11-fonts/droid-fonts-ttf/Makefile new file mode 100644 index 000000000000..d5615a0c3199 --- /dev/null +++ b/x11-fonts/droid-fonts-ttf/Makefile @@ -0,0 +1,72 @@ +# New ports collection makefile for: droid-fonts-ttf +# Date created: 2010-02-14 +# Whom: Olivier Duchateau +# +# $FreeBSD$ +# + +PORTNAME= droid-fonts-ttf +PORTVERSION= 20100214 +PORTREVISION= 1 +CATEGORIES= x11-fonts +MASTER_SITES= http://android.git.kernel.org/?p=platform/frameworks/base.git\;a=blob_plain\;f=data/fonts/:droid +DISTFILES= DroidSans-Bold.ttf:droid \ + DroidSans.ttf:droid \ + DroidSansArabic.ttf:droid \ + DroidSansFallback.ttf:droid \ + DroidSansFallbackLegacy.ttf:droid \ + DroidSansHebrew.ttf:droid \ + DroidSansJapanese.ttf:droid \ + DroidSansMono.ttf:droid \ + DroidSansThai.ttf:droid \ + DroidSerif-Bold.ttf:droid \ + DroidSerif-BoldItalic.ttf:droid \ + DroidSerif-Italic.ttf:droid \ + DroidSerif-Regular.ttf:droid \ + NOTICE:droid + +MAINTAINER= duchateau.olivier@gmail.com +COMMENT= The Droid typeface family + +BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir + +LICENSE= ASL +LICENSE_FILE= ${DISTDIR}/NOTICE + +NO_WRKSUBDIR= yes + +PLIST_SUB= FONTDIR="${FONTDIR:S|${LOCALBASE}/||}" + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_LIST= FONTDIR=${FONTDIR} + +FONTNAME= Droid +FONTDIR= ${LOCALBASE}/lib/X11/fonts/${FONTNAME} + +MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale +MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir + +NO_MTREE= yes + +do-extract: + @${MKDIR} ${WRKDIR}/ttf + @${CP} -p ${DISTDIR}/*.ttf ${WRKDIR}/ttf + +do-build: + @cd ${WRKDIR}/ttf && \ + ${MKFONTSCL_CMD} && \ + ${MKFONTDIR_CMD} + +do-install: + @${MKDIR} ${FONTDIR} + @cd ${WRKDIR} && \ + ${INSTALL_DATA} ttf/* ${FONTDIR} + +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include diff --git a/x11-fonts/droid-fonts-ttf/distinfo b/x11-fonts/droid-fonts-ttf/distinfo new file mode 100644 index 000000000000..bfb429940703 --- /dev/null +++ b/x11-fonts/droid-fonts-ttf/distinfo @@ -0,0 +1,42 @@ +MD5 (DroidSans-Bold.ttf) = 2afdf28d5cdd079b41968cdabf1b469e +SHA256 (DroidSans-Bold.ttf) = b631b677af5aa7316297a8b56a1fe3bb1da706737f8c9785d5a5fc94faae1ea9 +SIZE (DroidSans-Bold.ttf) = 191032 +MD5 (DroidSans.ttf) = 9d83fb20700a3a7c45dc9acd64ab121e +SHA256 (DroidSans.ttf) = 4e2371bc0e4cf6983342e150412f140da79d674c9be0b56458401f581072ecd3 +SIZE (DroidSans.ttf) = 190044 +MD5 (DroidSansArabic.ttf) = 4ec3ddfceaea0406a9cf8d605926892a +SHA256 (DroidSansArabic.ttf) = 52199b734c6185bc42e12d48157dfde4f344d5465e99ed77168b802f802b4415 +SIZE (DroidSansArabic.ttf) = 35908 +MD5 (DroidSansFallback.ttf) = 5931b08bba8127286c06ea0061df0088 +SHA256 (DroidSansFallback.ttf) = 730b5a43df486ddfca711cdf54a87836ca0913e2930f7e52d646beeb8efc5dc8 +SIZE (DroidSansFallback.ttf) = 3640264 +MD5 (DroidSansFallbackLegacy.ttf) = 4caeadd734f4be9973163bdf02ea6cf5 +SHA256 (DroidSansFallbackLegacy.ttf) = 82a74d0ef369ec7979172023cfff87f04f0a617a2871c39ef6aeb0f399c5cdaf +SIZE (DroidSansFallbackLegacy.ttf) = 3081908 +MD5 (DroidSansHebrew.ttf) = 2471e017e0bae8d66cadb9d7355a65b7 +SHA256 (DroidSansHebrew.ttf) = e46a71b7f6c8f0acfe855e854b0cadd709c443ea8b743ea16a42871bd5410961 +SIZE (DroidSansHebrew.ttf) = 23076 +MD5 (DroidSansJapanese.ttf) = 6d7e0d083e3c5e1b504e580b4e2fe7db +SHA256 (DroidSansJapanese.ttf) = 935867c21b8484c959170e62879460ae9363eae91f9b35e4519d24080e2eac30 +SIZE (DroidSansJapanese.ttf) = 1173140 +MD5 (DroidSansMono.ttf) = 3922dfe38a36da7d6edfb1fe77b276fb +SHA256 (DroidSansMono.ttf) = 089bdaac95caeed25a8392a6f0606328d009473119f1c7465b642d5cebe5320c +SIZE (DroidSansMono.ttf) = 117072 +MD5 (DroidSansThai.ttf) = 6467be15f37d86a9356f6b20d83075b0 +SHA256 (DroidSansThai.ttf) = af9f2f5d833ecfb6f1766f3d5d9f380b6fca8b2c9553515fccc4faa4cc0451d3 +SIZE (DroidSansThai.ttf) = 36028 +MD5 (DroidSerif-Bold.ttf) = 849a92990a80cbb665bfc74fd03743bd +SHA256 (DroidSerif-Bold.ttf) = ed3235ab9bf3551d3739a3978ae8bb21493cf37046f3a01f557f9df7ef03219f +SIZE (DroidSerif-Bold.ttf) = 184836 +MD5 (DroidSerif-BoldItalic.ttf) = a062025df92affc1331a05b7c07793fc +SHA256 (DroidSerif-BoldItalic.ttf) = 07c980b43ce8d263f1051521cfd0514a3d6eadb5fa386e1c383f8e4acf7fa2a3 +SIZE (DroidSerif-BoldItalic.ttf) = 189916 +MD5 (DroidSerif-Italic.ttf) = a2e7305a0ba8bb7091124f4cd1485fc9 +SHA256 (DroidSerif-Italic.ttf) = 76c161e3e0af1d0abf04b717d1126e9e263159889a581d85613178765d73093d +SIZE (DroidSerif-Italic.ttf) = 177176 +MD5 (DroidSerif-Regular.ttf) = bfb2f44a7c1deba39f7f4d39bff18eeb +SHA256 (DroidSerif-Regular.ttf) = 57e4e2f2bc0194e05be42b40826f0c7d2b046047e0e94b8bdddef10bc47470fb +SIZE (DroidSerif-Regular.ttf) = 172532 +MD5 (NOTICE) = 9645f39e9db895a4aa6e02cb57294595 +SHA256 (NOTICE) = 38751245389e1e23f73e6f5384b5cbe7fa972cc4410c5adc9c04b082a0b9561a +SIZE (NOTICE) = 10695 diff --git a/x11-fonts/droid-fonts-ttf/files/pkg-message.in b/x11-fonts/droid-fonts-ttf/files/pkg-message.in new file mode 100644 index 000000000000..ead8ffccbc39 --- /dev/null +++ b/x11-fonts/droid-fonts-ttf/files/pkg-message.in @@ -0,0 +1,6 @@ +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/droid-fonts-ttf/pkg-descr b/x11-fonts/droid-fonts-ttf/pkg-descr new file mode 100644 index 000000000000..49a2fd1a3324 --- /dev/null +++ b/x11-fonts/droid-fonts-ttf/pkg-descr @@ -0,0 +1,7 @@ +The Droid typeface family was designed in the fall of 2006 by Ascender's +Steve Matteson, as a commission from Google to create a set of system fonts +for its Android platform. The goal was to provide optimal quality and +comfort on a mobile handset when rendered in application menus, web +browser and for other screen text. + +WWW: http://www.droidfonts.com/ diff --git a/x11-fonts/droid-fonts-ttf/pkg-plist b/x11-fonts/droid-fonts-ttf/pkg-plist new file mode 100644 index 000000000000..e90fde999a13 --- /dev/null +++ b/x11-fonts/droid-fonts-ttf/pkg-plist @@ -0,0 +1,17 @@ +%%FONTDIR%%/DroidSans-Bold.ttf +%%FONTDIR%%/DroidSans.ttf +%%FONTDIR%%/DroidSansArabic.ttf +%%FONTDIR%%/DroidSansFallback.ttf +%%FONTDIR%%/DroidSansFallbackLegacy.ttf +%%FONTDIR%%/DroidSansHebrew.ttf +%%FONTDIR%%/DroidSansJapanese.ttf +%%FONTDIR%%/DroidSansMono.ttf +%%FONTDIR%%/DroidSansThai.ttf +%%FONTDIR%%/DroidSerif-Bold.ttf +%%FONTDIR%%/DroidSerif-BoldItalic.ttf +%%FONTDIR%%/DroidSerif-Italic.ttf +%%FONTDIR%%/DroidSerif-Regular.ttf +%%FONTDIR%%/fonts.dir +%%FONTDIR%%/fonts.scale +@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || true +@dirrm %%FONTDIR%%