Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | require ttf.inc |
| 2 | |
| 3 | SUMMARY = "MPlus font - TTF Edition" |
| 4 | HOMEPAGE = "http://dejavu.sourceforge.net/wiki/" |
| 5 | LICENSE = "${PN}" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE_E;md5=ac161e96eda00db9a3aec7870b5d9658 \ |
| 7 | file://LICENSE_J;md5=a120ca8d7c8e4a475d5277c9aeb95221 \ |
| 8 | " |
| 9 | PR = "r4" |
| 10 | |
| 11 | SRC_URI = "http://osdn.dl.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-${PV}.tar.gz" |
| 12 | S = "${WORKDIR}/mplus-TESTFLIGHT-${PV}" |
| 13 | |
| 14 | PACKAGESPLITFUNCS_prepend = "split_ttf_mplus_packages " |
| 15 | |
| 16 | python 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 | |
| 22 | do_install() { |
| 23 | install -d ${D}${datadir}/fonts/ttf-mplus |
| 24 | install -m 0644 *.ttf ${D}${datadir}/fonts/ttf-mplus/ |
| 25 | } |
| 26 | |
| 27 | SRC_URI[md5sum] = "d1400184b51b3871e8d2fca6c50e18ae" |
| 28 | SRC_URI[sha256sum] = "a20b9b9b03c2a6fb1e2137d29e8a6ce06406ba1e008906ea3c474dc048dc06a6" |