blob: a048075fc42edbdab3fd0f60d5fe106332f61aac [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"
Andrew Geissler028142b2023-05-05 11:29:21 -050010SRC_URI = "http://downloads.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-${PV}.tar.gz"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011S = "${WORKDIR}/mplus-TESTFLIGHT-${PV}"
12
Patrick Williams213cb262021-08-07 19:21:33 -050013PACKAGESPLITFUNCS:prepend = "split_ttf_mplus_packages "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014
15python split_ttf_mplus_packages() {
16 plugindir = d.expand('${datadir}/fonts/ttf-mplus/')
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000017 packages = do_split_packages(d, plugindir, r'^(.*)\.ttf$', 'ttf-%s', 'TTF Font %s')
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018 d.setVar('FONT_PACKAGES', ' '.join(packages))
19}
20
21do_install() {
22 install -d ${D}${datadir}/fonts/ttf-mplus
23 install -m 0644 *.ttf ${D}${datadir}/fonts/ttf-mplus/
24}
25
26SRC_URI[md5sum] = "d1400184b51b3871e8d2fca6c50e18ae"
27SRC_URI[sha256sum] = "a20b9b9b03c2a6fb1e2137d29e8a6ce06406ba1e008906ea3c474dc048dc06a6"