diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-08-12 12:56:40 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-08-12 12:56:40 +0100 |
commit | 5918fbc9355021ce15abf6dea61a155209280999 (patch) | |
tree | 92aa3834f455e323b0e14f57f564ce6281241f99 /meta-moblin/packages | |
parent | b8398e1cdf4a2810dcf26f1759104a3ec8948ee5 (diff) | |
download | openembedded-core-5918fbc9355021ce15abf6dea61a155209280999.tar.gz openembedded-core-5918fbc9355021ce15abf6dea61a155209280999.tar.bz2 openembedded-core-5918fbc9355021ce15abf6dea61a155209280999.zip |
Add droid-fonts
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-moblin/packages')
4 files changed, 94 insertions, 0 deletions
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf new file mode 100644 index 0000000000..6e08254bda --- /dev/null +++ b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> +<fontconfig> + <alias> + <family>sans-serif</family> + <prefer> + <family>Droid Sans</family> + </prefer> + </alias> + <alias> + <family>Droid Sans</family> + <default> + <family>sans-serif</family> + </default> + </alias> + <match target="scan"> + <test name="family"> + <string>Droid Sans Fallback</string> + </test> + <edit name="family"> + <string>Droid Sans</string> + </edit> + </match> +</fontconfig> diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf new file mode 100644 index 0000000000..5c7f475419 --- /dev/null +++ b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> +<fontconfig> + <alias> + <family>monospace</family> + <prefer> + <family>Droid Sans Mono</family> + </prefer> + </alias> + <alias> + <family>Droid Sans Mono</family> + <default> + <family>monospace</family> + </default> + </alias> +</fontconfig> diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf new file mode 100644 index 0000000000..30c15015fc --- /dev/null +++ b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> +<fontconfig> + <alias> + <family>serif</family> + <prefer> + <family>Droid Serif</family> + </prefer> + </alias> + <alias> + <family>Droid Serif</family> + <default> + <family>serif</family> + </default> + </alias> +</fontconfig> diff --git a/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb b/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb new file mode 100644 index 0000000000..19ef6f1420 --- /dev/null +++ b/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb @@ -0,0 +1,38 @@ +HOMEPAGE = "http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts" + +DESCRIPTION = "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 browsers and for \ + other screen text." + +SRC_URI = "http://pokylinux.org/sources/droid-fonts-1.0.112.tar.gz \ + file://droid-fonts-sans-fontconfig.conf \ + file://droid-fonts-sans-mono-fontconfig.conf \ + file://droid-fonts-serif-fontconfig.conf " + +LICENSE = "Apache License, Version 2.0" +SECTION = "x11/fonts" +RDEPENDS = "fontconfig-utils" +PACKAGES = "${PN}" +FILES_${PN} += "${sysconfdir} ${datadir}" + +do_install () { + install -d ${D}${datadir}/fonts/ttf/ + for i in *.ttf; do + install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i} + done + + install -d ${D}${sysconfdir}/fonts/conf.d/ + install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}/fonts/conf.d/ + + install -d ${D}${prefix}/share/doc/${PN}/ + install -m 0644 README.txt ${D}${datadir}/doc/${PN}/ + install -m 0644 NOTICE ${D}${datadir}/doc/${PN}/ +} + +pkg_postinst () { +#!/bin/sh +fc-cache +} + |