blob: 9ad348d9fa98ceae46c02ccb55112ca9901f24d4 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001require ttf.inc
2
3SUMMARY = "MPlus font - TTF Edition"
4HOMEPAGE = "http://dejavu.sourceforge.net/wiki/"
5LICENSE = "${PN}"
6LIC_FILES_CHKSUM = "file://LICENSE_E;md5=ac161e96eda00db9a3aec7870b5d9658 \
7 file://LICENSE_J;md5=a120ca8d7c8e4a475d5277c9aeb95221 \
8"
9PR = "r4"
10
11SRC_URI = "http://osdn.dl.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-${PV}.tar.gz"
12S = "${WORKDIR}/mplus-TESTFLIGHT-${PV}"
13
14PACKAGESPLITFUNCS_prepend = "split_ttf_mplus_packages "
15
16python split_ttf_mplus_packages() {
17 plugindir = d.expand('${datadir}/fonts/ttf-mplus/')
18 packages = do_split_packages(d, plugindir, '^(.*)\.ttf$', 'ttf-%s', 'TTF Font %s')
19 d.setVar('FONT_PACKAGES', ' '.join(packages))
20}
21
22do_install() {
23 install -d ${D}${datadir}/fonts/ttf-mplus
24 install -m 0644 *.ttf ${D}${datadir}/fonts/ttf-mplus/
25}
26
27SRC_URI[md5sum] = "d1400184b51b3871e8d2fca6c50e18ae"
28SRC_URI[sha256sum] = "a20b9b9b03c2a6fb1e2137d29e8a6ce06406ba1e008906ea3c474dc048dc06a6"