blob: efcf1b61654eea3ef8805f7ba1368b5f2c29a92f [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/"
Brad Bishop15ae2502019-06-18 21:44:24 -04005LICENSE = "${BPN}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006LIC_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"