Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | require ttf.inc |
| 2 | |
| 3 | SUMMARY = "DejaVu font - TTF Edition" |
| 4 | HOMEPAGE = "http://dejavu.sourceforge.net/wiki/" |
| 5 | LICENSE = "BitstreamVera" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=449b2c30bfe5fa897fe87b8b70b16cfa" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 7 | |
| 8 | # all subpackages except ${PN}-common itself rdepends on ${PN}-common |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 9 | RDEPENDS:${PN}-sans = "${PN}-common" |
| 10 | RDEPENDS:${PN}-sans-mono = "${PN}-common" |
| 11 | RDEPENDS:${PN}-sans-condensed = "${PN}-common" |
| 12 | RDEPENDS:${PN}-serif = "${PN}-common" |
| 13 | RDEPENDS:${PN}-serif-condensed = "${PN}-common" |
| 14 | RDEPENDS:${PN}-mathtexgyre = "${PN}-common" |
| 15 | RDEPENDS:${PN}-common = "" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | PR = "r7" |
| 17 | |
| 18 | SRC_URI = "${SOURCEFORGE_MIRROR}/dejavu/dejavu-fonts-ttf-${PV}.tar.bz2 \ |
| 19 | file://30-dejavu-aliases.conf" |
| 20 | |
| 21 | S = "${WORKDIR}/dejavu-fonts-ttf-${PV}/ttf" |
| 22 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 23 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/dejavu/files/dejavu/" |
| 24 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | do_install:append () { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | install -d ${D}${sysconfdir}/fonts/conf.d/ |
| 27 | install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ |
| 28 | } |
| 29 | |
| 30 | PACKAGES = "\ |
| 31 | ${PN}-sans \ |
| 32 | ${PN}-sans-mono \ |
| 33 | ${PN}-sans-condensed \ |
| 34 | ${PN}-serif \ |
| 35 | ${PN}-serif-condensed \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 36 | ${PN}-mathtexgyre \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 37 | ${PN}-common" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 38 | FONT_PACKAGES = "${PN}-sans ${PN}-sans-mono ${PN}-sans-condensed ${PN}-serif ${PN}-serif-condensed ${PN}-mathtexgyre" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | FILES:${PN}-sans = "${datadir}/fonts/truetype/DejaVuSans.ttf ${datadir}/fonts/truetype/DejaVuSans-*.ttf" |
| 41 | FILES:${PN}-sans-mono = "${datadir}/fonts/truetype/DejaVuSansMono*.ttf" |
| 42 | FILES:${PN}-sans-condensed = "${datadir}/fonts/truetype/DejaVuSansCondensed*.ttf" |
| 43 | FILES:${PN}-serif = "${datadir}/fonts/truetype/DejaVuSerif.ttf ${datadir}/fonts/truetype/DejaVuSerif-*.ttf" |
| 44 | FILES:${PN}-serif-condensed = "${datadir}/fonts/truetype/DejaVuSerifCondensed*.ttf" |
| 45 | FILES:${PN}-mathtexgyre = "${datadir}/fonts/truetype/DejaVuMathTeXGyre.ttf" |
| 46 | FILES:${PN}-common = "${sysconfdir}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 47 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 48 | SRC_URI[md5sum] = "d0efec10b9f110a32e9b8f796e21782c" |
| 49 | SRC_URI[sha256sum] = "fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7" |
Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame] | 50 | |
| 51 | BBCLASSEXTEND = "native nativesdk" |
| 52 | |
| 53 | # Allow installation of fonts into recipe-sysroot-native |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 54 | SYSROOT_DIRS_BLACKLIST:remove = "${datadir}/fonts" |
Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame] | 55 | |