From a955d07e4d2e78591c5353ca24251755a0fe435c Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 1 Nov 2010 16:24:47 +0100 Subject: [PATCH] angstrom-layers: add ttf-fonts to meta-openembedded * liberation was left out because poky already has it * freefonts was left out due to missing license Signed-off-by: Koen Kooi --- .../ttf-fonts/ttf-arphic-uming_20080216.bb | 18 +++ .../ttf-dejavu/30-dejavu-aliases.conf | 16 +++ recipes-graphics/ttf-fonts/ttf-dejavu_2.23.bb | 42 ++++++ recipes-graphics/ttf-fonts/ttf-droid_git.bb | 28 ++++ recipes-graphics/ttf-fonts/ttf-gentium/OFL.gz | Bin 0 -> 1963 bytes .../ttf-fonts/ttf-gentium_1.02.bb | 135 ++++++++++++++++++ .../ttf-fonts/ttf-hunkyfonts_0.3.0.bb | 18 +++ recipes-graphics/ttf-fonts/ttf-mplus_027.bb | 22 +++ .../ttf-fonts/ttf-sazanami_20040629.bb | 33 +++++ .../ttf-fonts/ttf-ubuntu-font-family_0.69.bb | 18 +++ .../ttf-fonts/ttf-wqy-zenhei_0.6.26.bb | 22 +++ recipes-graphics/ttf-fonts/ttf.inc | 23 +++ 12 files changed, 375 insertions(+) create mode 100644 recipes-graphics/ttf-fonts/ttf-arphic-uming_20080216.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-dejavu/30-dejavu-aliases.conf create mode 100644 recipes-graphics/ttf-fonts/ttf-dejavu_2.23.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-droid_git.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-gentium/OFL.gz create mode 100644 recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-hunkyfonts_0.3.0.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-mplus_027.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-sazanami_20040629.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-ubuntu-font-family_0.69.bb create mode 100644 recipes-graphics/ttf-fonts/ttf-wqy-zenhei_0.6.26.bb create mode 100644 recipes-graphics/ttf-fonts/ttf.inc diff --git a/recipes-graphics/ttf-fonts/ttf-arphic-uming_20080216.bb b/recipes-graphics/ttf-fonts/ttf-arphic-uming_20080216.bb new file mode 100644 index 0000000000..bb259b9181 --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-arphic-uming_20080216.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "Unicode Mingti (printed) TrueType Font" +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/CJKUnifonts" +LICENSE = "${PN}" +SRC_DISTRIBUTE_LICENSES += "${PN}" +RPROVIDES_${PN} = "virtual-chinese-font" +PR = "r2" + +SRC_URI = \ +"http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz" +S = "${WORKDIR}" + +require ttf.inc + +FILES_${PN} = "${datadir}" + + +SRC_URI[md5sum] = "d219fcaf953f3eb1889399955a00379f" +SRC_URI[sha256sum] = "8038a6db9e832456d5da5559aff8d15130243be1091bf24f3243503a6f1bda98" diff --git a/recipes-graphics/ttf-fonts/ttf-dejavu/30-dejavu-aliases.conf b/recipes-graphics/ttf-fonts/ttf-dejavu/30-dejavu-aliases.conf new file mode 100644 index 0000000000..9c6e56bf7c --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-dejavu/30-dejavu-aliases.conf @@ -0,0 +1,16 @@ + + + + + DejaVu Serif + serif + + + DejaVu Sans + sans-serif + + + DejaVu Sans Mono + monospace + + diff --git a/recipes-graphics/ttf-fonts/ttf-dejavu_2.23.bb b/recipes-graphics/ttf-fonts/ttf-dejavu_2.23.bb new file mode 100644 index 0000000000..ca6edbcb3f --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-dejavu_2.23.bb @@ -0,0 +1,42 @@ +require ttf.inc + +DESCRIPTION = "DejaVu font - TTF Edition" +HOMEPAGE = "http://dejavu.sourceforge.net/wiki/" +LICENSE = "Bitstream Vera" +# all subpackages except ${PN}-dbg and ${PN}-common itself rdepends on ${PN}-common +RDEPENDS_${PN}-sans = "${PN}-common" +RDEPENDS_${PN}-sans-mono = "${PN}-common" +RDEPENDS_${PN}-sans-condensed = "${PN}-common" +RDEPENDS_${PN}-serif = "${PN}-common" +RDEPENDS_${PN}-serif-condensed = "${PN}-common" +RDEPENDS_${PN}-common = "" +PR = "r3" + +SRC_URI = "${SOURCEFORGE_MIRROR}/dejavu/dejavu-fonts-ttf-${PV}.tar.bz2 \ + file://30-dejavu-aliases.conf" + +S = "${WORKDIR}/dejavu-fonts-ttf-${PV}/ttf" + +do_install_append () { + install -d ${D}${sysconfdir}/fonts/conf.d/ + install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ +} + +PACKAGES = "${PN}-dbg \ + ${PN}-sans \ + ${PN}-sans-mono \ + ${PN}-sans-condensed \ + ${PN}-serif \ + ${PN}-serif-condensed \ + ${PN}-common" +RRECOMMENDS_${PN}-dbg = "" + +FILES_${PN}-sans = "${datadir}/fonts/truetype/DejaVuSans.ttf ${datadir}/fonts/truetype/DejaVuSans-*.ttf" +FILES_${PN}-sans-mono = "${datadir}/fonts/truetype/DejaVuSansMono*.ttf" +FILES_${PN}-sans-condensed = "${datadir}/fonts/truetype/DejaVuSansCondensed*.ttf" +FILES_${PN}-serif = "${datadir}/fonts/truetype/DejaVuSerif.ttf ${datadir}/fonts/truetype/DejaVuSerif-*.ttf" +FILES_${PN}-serif-condensed = "${datadir}/fonts/truetype/DejaVuSerifCondensed*.ttf" +FILES_${PN}-common = "${sysconfdir}" + +SRC_URI[md5sum] = "ff871dff0b3e8a11cd5c54478f11073f" +SRC_URI[sha256sum] = "243642a1c3f4b6fd00125f5772ac5c8e4d0bb6586f5abb05829ead4b83ad5233" diff --git a/recipes-graphics/ttf-fonts/ttf-droid_git.bb b/recipes-graphics/ttf-fonts/ttf-droid_git.bb new file mode 100644 index 0000000000..3fa04abf5d --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-droid_git.bb @@ -0,0 +1,28 @@ +require ttf.inc + +DESCRIPTION = "Droid fonts - TTF Edition" +HOMEPAGE = "http://www.droidfonts.com/" +LICENSE = "Apache-2.0" +PR = "r0" +# git magic below - SRCREV is an ID of /data/fonts subtree +# (so we don't need to fetch full platform/frameworks/base.git) +SRCREV = "31f255e44e618ff3b923f332e8fcb83403fd39f5" +PV = "0.0+${PR}+gitr${SRCREV}" + +SRC_URI = "git://android.git.kernel.org/platform/frameworks/base.git;protocol=git;branch=master" + +S = "${WORKDIR}/git" + +do_install_prepend() { + rm ${S}/Ahem.ttf # we're not packaging it +} + +PACKAGES = "${PN}-dbg ttf-droid-sans ttf-droid-sans-mono \ + ttf-droid-sans-fallback ttf-droid-sans-japanese ttf-droid-serif" +RRECOMMENDS_${PN}-dbg = "" + +FILES_ttf-droid-sans = "${datadir}/fonts/truetype/DroidSans.ttf ${datadir}/fonts/truetype/DroidSans-Bold.ttf" +FILES_ttf-droid-sans-mono = "${datadir}/fonts/truetype/DroidSansMono.ttf" +FILES_ttf-droid-sans-fallback = "${datadir}/fonts/truetype/DroidSansFallback.ttf" +FILES_ttf-droid-sans-japanese = "${datadir}/fonts/truetype/DroidSansJapanese.ttf" +FILES_ttf-droid-serif = "${datadir}/fonts/truetype/DroidSerif*.ttf" diff --git a/recipes-graphics/ttf-fonts/ttf-gentium/OFL.gz b/recipes-graphics/ttf-fonts/ttf-gentium/OFL.gz new file mode 100644 index 0000000000000000000000000000000000000000..7ebada75728080de1b1ee7676484bdbfab6822b1 GIT binary patch literal 1963 zcmV;c2UPeUiwFpof`~%`15ZXw0Hs&ka@$4{ea?JEmmX496+}DE=EZL?2}-C?AOk@5 z`Vj<%NRpFTavH_Fgdx0W)!vadxa2@l44yYJL` zW9eOaPai*g`1JvQehVmzXB4+qc5PvmZi|}UZLHmXdjH;(o!VM6GO8ZwZvFm#B*MC; zl&u&_rIFoERwE(q9%XA)-`ugI;`qh~kra)jmF~#i#5EFk@czH=68W1c)~b}PfrY-U zB=3|ix%pPMe(}sN2EUhQbAQwi62!0$NJE52$D>zuIUjc7>{oWi9Dd*$wiahJR3DKZzfJ zKcCKo5D)+Vk8oHlqJ*aNB&S(Cj*=`ohk_pH<3~#LPBu&6$MpC|4#gsk!spMk2(U<6 zYvg?Z_ogQF4hh~9SJG-S0JpCT3vhH-SFfs)qLMqHxNSf+wo+=1vY-k(<_Vr{JN>6D ztqGige!JD3b-vu&vXid5Lax9n>jEjtqLPg&U0rI`u6qT?B}_L>-zux5@il`%Sl=NE z+!Fk@V%3452<|UZExm43xp96BHN_s~CbK~*m9Kcin{k7c+oH2A5Z|b+tGm#MurrR* zKxI1fR5IrbtOm=70)~6TG&Hua6kmAedQSo#kwK@Hz2#kzyBP3cE6SEY(N{Om_*Y!iSu}#Wa92ZW$s{Rg?e!<*aAC7!49lmX)Ycx`y_sP z@Vr~8S{lBq3R|4+jPAP^H zw>>|ghlfLR@+;TT8p;d}b8xMO+>Y@NPp;7jI1|TDHVU0-3X~HT@tEbv1#(j>&V*X| zO0wOlPPYfF!`^Omcbl+L>z27K*^T5Y^wAo6)bO>H<)+0btHo=lxSDY9>kYXy+NFk6 z+9UXH@dxe~QTiNb8Jd88rtv(P3=Og1S!mqIz$k-ViR9qDb>opW$Eh>qZ!LpE(1UBe zw1sMcf++mx9B{nw?Kbs1rCH?mfm;colg^-%nL+mU!G+X#t%j7<7pjPcKi;}=Y|h<^ zlUp!?2gm`CV>2^am10htPeS~1Pl;4sId0od56ZG41)3=AgTVDTQ=P~Y2=MF39BjCz zIK=fZLJ`(vPWPiRpGG7!X`Y zsUMtY#~~-!81#N{2tQw7dH|Dkh*NtgFs;xO^7|m30d4xGXdf`ZD|cSn;DQ@McZ{Tq zV2ePvo#F#SgCNlsr{#^b#UQ@2u8d2Q_pt+*SgN+@_TJUytkej0*fR_}3=qY~KP6vJ zs>RZZ()mulcwb6;?`qI-l>9NCtVYoa@Uba|suO%Fo&bA?x5NLN419vnx!?6?G_z3goh)-AqXnRRMo zud>YG0kyN`;`(fLI#cC5PLhyk$mK`UQbHO*w6;ef*z`^-@NGqBllP!72N`D42zHO& z=JQ&djb~x}9HkKKD-Gv$M?*jT7=TGyOoUkGdll&V_ z-V`R^==V681S0x3K3uYl<|)O`i&-2^0*aII>}3)skMtS)k~x1sJ;ynW=5x1oFcnAG zHx-Cw{Dj-^b3BXlZvjo?JYkzt7!7F=rg=PmnT07WUed)J-(g`gf!QQZrYXEc&ry;K zL^Yl-zNPWwQyySbj)wu|X*h|V!}RxnBb+1Ul-!aLqJ#~KzC?_`Q#hLu-io6QdYaEB zSp7Ld^dUaXd^m{S;TO;(d=4L@>|~dh`3%Gf0p9Q!B~cpA0?HQAIOYpL7pKuUcUS># zBtLTz;_#3~f4txU)``IdYVZ^}7l=8;@0h7UF5?6lvYmXM=EqRJ##t0ln8q1G5Yu#y xaJhuo!9{-ogj}y=h?mR4&u$5URlHmH1Se5AgTai$xLG?Ae*>s4d>Bj-0057pzfS-F literal 0 HcmV?d00001 diff --git a/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb b/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb new file mode 100644 index 0000000000..698b2edf89 --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb @@ -0,0 +1,135 @@ +require ttf.inc + +DESCRIPTION = "Gentium fonts - TTF Version" +HOMEPAGE = "http://scripts.sil.org/gentium" +LICENSE = "SIL Open Font License" +LICENSE_URL = "http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=OFL" +PR = "r3" + +SRC_URI = "${DEBIAN_MIRROR}/main/t/ttf-gentium/ttf-gentium_${PV}.orig.tar.gz \ + file://OFL.gz" + +S = "${WORKDIR}/ttf-sil-gentium-${PV}" + +do_install_append() { + + install -d ${D}${datadir}/doc/ttf-gentium/ + install -d ${D}${datadir}/doc/ttf-gentium-alt/ + + install -m 0644 ${WORKDIR}/OFL ${D}${datadir}/doc/ttf-gentium/ + install -m 0644 ${WORKDIR}/OFL ${D}${datadir}/doc/ttf-gentium-alt/ + +} + +PACKAGES = "${PN}-dbg ${PN} ${PN}-alt" + +FILES_ttf-gentium-alt = "${datadir}/fonts/truetype/GenAI*.ttf \ + ${datadir}/fonts/truetype/GenAR*.ttf \ + ${datadir}/doc/ttf-gentium-alt/*" + +FILES_${PN} = "${datadir}/fonts/truetype/GenI*.ttf \ + ${datadir}/fonts/truetype/GenR*.ttf \ + ${datadir}/doc/ttf-gentium/*" + +# +# License +# +# Gentium is released under the SIL Open Font License - please read it carefully +# and do not download the fonts unless you agree to the terms of the license: +# +# This Font Software is Copyright (c) 2003-2005, SIL International +# (http://scripts.sil.org/). All Rights Reserved. +# +# "Gentium" is a Reserved Font Name for this Font Software. "SIL" is a Reserved +# Font Name for this Font Software. +# +# This Font Software is licensed under the SIL Open Font License, Version 1.0. No +# modification of the license is permitted, only verbatim copy is allowed. This +# license is copied below, and is also available with a FAQ +# at:http://scripts.sil.org/OFL SIL OPEN FONT LICENSE +# +# Version 1.0 - 22 November 2005 +# +# PREAMBLE +# +# The goals of the Open Font License (OFL) are to stimulate worldwide development +# of cooperative font projects, to support the font creation efforts of academic +# and linguistic communities, and to provide an open framework in which fonts may +# be shared and improved in partnership with others. +# +# The OFL allows the licensed fonts to be used, studied, modified and +# redistributed freely as long as they are not sold by themselves. The fonts, +# including any derivative works, can be bundled, embedded, redistributed and +# sold with any software provided that the font names of derivative works are +# changed. The fonts and derivatives, however, cannot be released under any other +# type of license. +# +# DEFINITIONS +# +# "Font Software" refers to any and all of the following: +# +# * font files data files source code build scripts documentation +# +# "Reserved Font Name" refers to the Font Software name as seen by users and any +# other names as specified after the copyright statement. +# +# "Standard Version" refers to the collection of Font Software components as +# distributed by the Copyright Holder. +# +# "Modified Version" refers to any derivative font software made by adding to, +# deleting, or substituting -- in part or in whole -- any of the components of +# the Standard Version, by changing formats or by porting the Font Software to a +# new environment. +# +# "Author" refers to any designer, engineer, programmer, technical writer or +# other person who contributed to the Font Software. +# +# PERMISSION & CONDITIONS +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of +# the Font Software, to use, study, copy, merge, embed, modify, redistribute, and +# sell modified and unmodified copies of the Font Software, subject to the +# following conditions: +# +# 1) Neither the Font Software nor any of its individual components, in Standard +# or Modified Versions, may be sold by itself. +# +# 2) Standard or Modified Versions of the Font Software may be bundled, +# redistributed and sold with any software, provided that each copy contains the +# above copyright notice and this license. These can be included either as +# stand-alone text files, human-readable headers or in the appropriate +# machine-readable metadata fields within text or binary files as long as those +# fields can be easily viewed by the user. +# +# 3) No Modified Version of the Font Software may use the Reserved Font Name(s), +# in part or in whole, unless explicit written permission is granted by the +# Copyright Holder. This restriction applies to all references stored in the Font +# Software, such as the font menu name and other font description fields, which +# are used to differentiate the font from others. +# +# 4) The name(s) of the Copyright Holder or the Author(s) of the Font Software +# shall not be used to promote, endorse or advertise any Modified Version, except +# to acknowledge the contribution(s) of the Copyright Holder and the Author(s) or +# with their explicit written permission. +# +# 5) The Font Software, modified or unmodified, in part or in whole, must be +# distributed using this license, and may not be distributed under any other +# license. +# +# TERMINATION +# +# This license becomes null and void if any of the above conditions are not met. +# +# DISCLAIMER +# +# THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +# TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR +# ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +# INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +# THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. + +SRC_URI[md5sum] = "4c3e6ae586be277537ebb68f2a45b883" +SRC_URI[sha256sum] = "4746c04c9a4ad9e0788a38e0a2f81919a630d8070ceabc89f156b6d41d8ceb37" diff --git a/recipes-graphics/ttf-fonts/ttf-hunkyfonts_0.3.0.bb b/recipes-graphics/ttf-fonts/ttf-hunkyfonts_0.3.0.bb new file mode 100644 index 0000000000..3984f868a5 --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-hunkyfonts_0.3.0.bb @@ -0,0 +1,18 @@ +require ttf.inc + +DESCRIPTION = "Hunky fonts - TTF Version" +HOMEPAGE = "http://sourceforge.net/projects/hunkyfonts" +LICENSE = "LGPL" +PR = "r3" + +SRC_URI = "${SOURCEFORGE_MIRROR}/hunkyfonts/hunkyfonts-${PV}.tar.bz2" + +S = "${WORKDIR}/hunkyfonts-${PV}/TTF/" + +PACKAGES = "${PN}-dbg ttf-hunky-sans ttf-hunky-serif" +RRECOMMENDS_${PN}-dbg = "" +FILES_ttf-hunky-sans = "${datadir}/fonts/truetype/HunkySans*.ttf" +FILES_ttf-hunky-serif = "${datadir}/fonts/truetype/HunkySerif*.ttf" + +SRC_URI[md5sum] = "36444795a356fb8a56c63b2840729bab" +SRC_URI[sha256sum] = "e0b1849c545b6af276407d93025c73094dd74fc259b07c1d91594fdbb9a0b829" diff --git a/recipes-graphics/ttf-fonts/ttf-mplus_027.bb b/recipes-graphics/ttf-fonts/ttf-mplus_027.bb new file mode 100644 index 0000000000..a6f885b8dd --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-mplus_027.bb @@ -0,0 +1,22 @@ +require ttf.inc + +DESCRIPTION = "MPlus font - TTF Edition" +HOMEPAGE = "http://dejavu.sourceforge.net/wiki/" +LICENSE = "${PN}" +PR = "r0" + +SRC_URI = "http://osdn.dl.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-${PV}.tar.gz" +S = "${WORKDIR}/mplus-TESTFLIGHT-${PV}" + +python populate_packages_prepend() { + plugindir = bb.data.expand('${datadir}/fonts/ttf-mplus/', d) + do_split_packages(d, plugindir, '^(.*)\.ttf$', 'ttf-%s', 'TTF Font %s', extra_depends = "ttf-common") +} + +do_install() { + install -d ${D}${datadir}/fonts/ttf-mplus + install -m 0644 *.ttf ${D}${datadir}/fonts/ttf-mplus/ +} + +SRC_URI[md5sum] = "d1400184b51b3871e8d2fca6c50e18ae" +SRC_URI[sha256sum] = "a20b9b9b03c2a6fb1e2137d29e8a6ce06406ba1e008906ea3c474dc048dc06a6" diff --git a/recipes-graphics/ttf-fonts/ttf-sazanami_20040629.bb b/recipes-graphics/ttf-fonts/ttf-sazanami_20040629.bb new file mode 100644 index 0000000000..1b9a01b2a1 --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-sazanami_20040629.bb @@ -0,0 +1,33 @@ +require ttf.inc + +DESCRIPTION = "Sazanami Gothic/Mincho Japanese TrueType fonts" +DESCRIPTION_ttf-sazanami-gothic = "Sazanami Gothic Japanese TrueType font" +DESCRIPTION_ttf-sazanami-mincho = "Sazanami Mincho Japanese TrueType font" +AUTHOR = "Electronic Font Open Laboratory (/efont/)" +HOMEPAGE = "http://sourceforge.jp/projects/efont/" +LICENSE = "${PN}" +SRC_DISTRIBUTE_LICENSES += "${PN}" +RPROVIDES_${PN} = "virtual-japanese-font" +PR = "r5" + +SRC_URI = "http://osdn.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2" +S = "${WORKDIR}/sazanami-20040629" + +PACKAGES = "${PN}-dbg ttf-sazanami-gothic ttf-sazanami-mincho" +RRECOMMENDS_${PN}-dbg = "" +FILES_ttf-sazanami-gothic = "${datadir}/fonts/truetype/sazanami-gothic.ttf \ + ${datadir}/doc/ttf-sazanami-gothic/README" +FILES_ttf-sazanami-mincho = "${datadir}/fonts/truetype/sazanami-mincho.ttf \ + ${datadir}/doc/ttf-sazanami-mincho/README" + +do_install_append() { + # README contains the redistribution license + install -d ${D}${datadir}/doc/ + install -d ${D}${datadir}/doc/ttf-sazanami-gothic + install -d ${D}${datadir}/doc/ttf-sazanami-mincho + install -m 0644 ${S}/README ${D}${datadir}/doc/ttf-sazanami-gothic + install -m 0644 ${S}/README ${D}${datadir}/doc/ttf-sazanami-mincho +} + +SRC_URI[md5sum] = "ceef10579a75c92483171f3bd7f77df2" +SRC_URI[sha256sum] = "3467ce2f70a9a3fbbf8d4d97355a2f334a6351baa6722251403637a8cbebf6b7" diff --git a/recipes-graphics/ttf-fonts/ttf-ubuntu-font-family_0.69.bb b/recipes-graphics/ttf-fonts/ttf-ubuntu-font-family_0.69.bb new file mode 100644 index 0000000000..cc8d2e4cb3 --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-ubuntu-font-family_0.69.bb @@ -0,0 +1,18 @@ +require ttf.inc + +DESCRIPTION = "Ubuntu Font Family - TTF Version" +HOMEPAGE = "http://font.ubuntu.com" +LICENSE = "UFL" +PR = "r0" + +SRC_URI = "http://font.ubuntu.com/download/ubuntu-font-family-${PV}+ufl.zip" +SRC_URI[md5sum] = "2c3287ea72f81ce025095f7a6d68af28" +SRC_URI[sha256sum] = "23206a306d92ec57404ab3bc75610b6d8cfed0b8ddcfbe51b99fb48519a4855b" +S = "${WORKDIR}/ubuntu-font-family-0.69+ufl" + +PACKAGES = "${PN}-dbg ttf-ubuntu-mono ttf-ubuntu-sans ttf-ubuntu-serif" +RRECOMMENDS_${PN}-dbg = "" + +FILES_ttf-ubuntu-mono = "${datadir}/fonts/truetype/*Mono*" +FILES_ttf-ubuntu-sans = "${datadir}/fonts/truetype/Ubuntu-*" +FILES_ttf-ubuntu-serif = "${datadir}/fonts/truetype/*Serif*" diff --git a/recipes-graphics/ttf-fonts/ttf-wqy-zenhei_0.6.26.bb b/recipes-graphics/ttf-fonts/ttf-wqy-zenhei_0.6.26.bb new file mode 100644 index 0000000000..2d1d23e12a --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf-wqy-zenhei_0.6.26.bb @@ -0,0 +1,22 @@ +require ttf.inc + +DESCRIPTION = "WenQuanYi Zen Hei - A Hei-Ti Style Chinese font" +AUTHOR = "Qianqian Fang and The WenQuanYi Project Contributors" +HOMEPAGE = "http://wqy.sourceforge.net/en/" +LICENSE = "GPLv2" + +SRC_URI = "${SOURCEFORGE_MIRROR}/wqy/wqy-zenhei-${PV}-0.tar.gz" +S = "${WORKDIR}/wqy-zenhei" + +do_install_append () { + install -d ${D}${sysconfdir}/fonts/conf.d/ + install -m 0644 ${S}/44-wqy-zenhei.conf ${D}${sysconfdir}/fonts/conf.d/ + install -m 0644 ${S}/66-wqy-zenhei-sharp.conf ${D}${sysconfdir}/fonts/conf.d/ +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${datadir}/fonts ${sysconfdir}" + +SRC_URI[md5sum] = "bf2c1cb512606d995873bada27c777da" +SRC_URI[sha256sum] = "47355b6ec84bb309614b6d657ddfda993b96ed0be569264f82e523b254f945b2" diff --git a/recipes-graphics/ttf-fonts/ttf.inc b/recipes-graphics/ttf-fonts/ttf.inc new file mode 100644 index 0000000000..af3f278536 --- /dev/null +++ b/recipes-graphics/ttf-fonts/ttf.inc @@ -0,0 +1,23 @@ +DESCRIPTION ?= "TrueType font package ${PN}" +SECTION = "fonts" +PRIORITY = "optional" +# don't use RRECOMMENDS_${PN} here because sometimes each font is packaged to separate package and each one needs this dep to call update-fonts +RRECOMMENDS += "font-update-common" + +# we don't need a compiler nor a c library for these fonts +INHIBIT_DEFAULT_DEPS = "1" + +do_install() { + install -d ${D}${datadir}/fonts/truetype/ + find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \; +} + +pkg_postinst_append() { + update-fonts +} + +pkg_postrm_append() { + update-fonts +} + +PACKAGE_ARCH = "all"