Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 1 | # Copyright (C) 2022 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | # |
| 4 | SUMMARY = "Locales support for musl" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 5 | HOMEPAGE = "https://git.adelielinux.org/adelie/musl-locales/-/wikis/home" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 6 | LICENSE = "MIT & LGPL-3.0-or-later" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=cf5713fba707073020b1db2acaa73e78 \ |
| 8 | file://LICENSE.MIT;md5=a4f1c6864a83ddf4b754cdab7d593523" |
| 9 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 10 | SRC_URI = "git://git.adelielinux.org/adelie/musl-locales;protocol=https;branch=main" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 11 | |
| 12 | PV = "1.0+git${SRCPV}" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 13 | SRCREV = "cac3dcdccd1d0c08d17f4919d862737d64b76f79" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 14 | |
| 15 | S = "${WORKDIR}/git" |
| 16 | |
| 17 | DEPENDS = "virtual/libintl gettext-native" |
| 18 | |
| 19 | PROVIDES = "virtual/libc-locale" |
| 20 | |
| 21 | inherit cmake |
| 22 | |
| 23 | # We will skip parsing for non-musl systems |
| 24 | python () { |
| 25 | if d.getVar('TCLIBC') != "musl": |
| 26 | raise bb.parse.SkipRecipe("Only use it with Musl C library") |
| 27 | } |
| 28 | |
| 29 | # only locale binaries are under GPL-3.0-or-later others are MIT |
| 30 | LICENSE:${PN} = "LGPL-3.0-or-later" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 31 | LICENSE:locale-base-cs-cz = "MIT" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 32 | LICENSE:locale-base-de-ch = "MIT" |
| 33 | LICENSE:locale-base-de-de = "MIT" |
| 34 | LICENSE:locale-base-en-gb = "MIT" |
| 35 | LICENSE:locale-base-en-us = "MIT" |
| 36 | LICENSE:locale-base-es-es = "MIT" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 37 | LICENSE:locale-base-fi-fi = "MIT" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 38 | LICENSE:locale-base-fr-fr = "MIT" |
| 39 | LICENSE:locale-base-it-it = "MIT" |
| 40 | LICENSE:locale-base-nb-no = "MIT" |
| 41 | LICENSE:locale-base-nl-nl = "MIT" |
| 42 | LICENSE:locale-base-pt-br = "MIT" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 43 | LICENSE:locale-base-pt-pt = "MIT" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 44 | LICENSE:locale-base-ru-ru = "MIT" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 45 | LICENSE:locale-base-sr-rs = "MIT" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 46 | LICENSE:locale-base-sv-se = "MIT" |
| 47 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 48 | PACKAGES =+ "locale-base-cs-cz \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 49 | locale-base-de-ch \ |
| 50 | locale-base-de-de \ |
| 51 | locale-base-en-gb \ |
| 52 | locale-base-en-us \ |
| 53 | locale-base-es-es \ |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 54 | locale-base-fi-fi \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 55 | locale-base-fr-fr \ |
| 56 | locale-base-it-it \ |
| 57 | locale-base-nb-no \ |
| 58 | locale-base-nl-nl \ |
| 59 | locale-base-pt-br \ |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 60 | locale-base-pt-pt \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 61 | locale-base-ru-ru \ |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 62 | locale-base-sr-rs \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 63 | locale-base-sv-se \ |
| 64 | " |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 65 | FILES:locale-base-cs-cz += "${datadir}/i18n/locales/musl/cs_CZ.UTF-8" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 66 | FILES:locale-base-de-ch += "${datadir}/i18n/locales/musl/de_CH.UTF-8" |
| 67 | FILES:locale-base-de-de += "${datadir}/i18n/locales/musl/de_DE.UTF-8" |
| 68 | FILES:locale-base-en-gb += "${datadir}/i18n/locales/musl/en_GB.UTF-8" |
| 69 | FILES:locale-base-en-us += "${datadir}/i18n/locales/musl/en_US.UTF-8" |
| 70 | FILES:locale-base-es-es += "${datadir}/i18n/locales/musl/es_ES.UTF-8" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 71 | FILES:locale-base-fi-fi += "${datadir}/i18n/locales/musl/fi_FI.UTF-8" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 72 | FILES:locale-base-fr-fr += "${datadir}/i18n/locales/musl/fr_FR.UTF-8" |
| 73 | FILES:locale-base-it-it += "${datadir}/i18n/locales/musl/it_IT.UTF-8" |
| 74 | FILES:locale-base-nb-no += "${datadir}/i18n/locales/musl/nb_NO.UTF-8" |
| 75 | FILES:locale-base-nl-nl += "${datadir}/i18n/locales/musl/nl_NL.UTF-8" |
| 76 | FILES:locale-base-pt-br += "${datadir}/i18n/locales/musl/pt_BR.UTF-8" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 77 | FILES:locale-base-pt-pt += "${datadir}/i18n/locales/musl/pt_PT.UTF-8" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 78 | FILES:locale-base-ru-ru += "${datadir}/i18n/locales/musl/ru_RU.UTF-8" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 79 | FILES:locale-base-sr-rs += "${datadir}/i18n/locales/musl/sr_RS.UTF-8" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 80 | FILES:locale-base-sv-se += "${datadir}/i18n/locales/musl/sv_SE.UTF-8" |
| 81 | |
| 82 | UPSTREAM_CHECK_COMMITS = "1" |