Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Minimal gettext for supporting native autoconf/automake" |
| 2 | DESCRIPTION = "Contains the m4 macros sufficient to support building \ |
| 3 | autoconf/automake. This provides a significant build time speedup by \ |
| 4 | the removal of gettext-native from most dependency chains (now only \ |
| 5 | needed for gettext for the target)." |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 6 | |
| 7 | require gettext-sources.inc |
| 8 | SRC_URI += " \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 9 | file://COPYING \ |
| 10 | " |
| 11 | |
| 12 | INHIBIT_DEFAULT_DEPS = "1" |
| 13 | INHIBIT_AUTOTOOLS_DEPS = "1" |
| 14 | |
| 15 | LICENSE = "FSF-Unlimited" |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 16 | LIC_FILES_CHKSUM = "file://../COPYING;md5=4bd090a20bfcd1a18f1f79837b5e3e91" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | |
| 18 | inherit native |
| 19 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 20 | S = "${WORKDIR}/gettext-${PV}" |
| 21 | |
| 22 | python get_aclocal_files() { |
| 23 | fpath = oe.path.join(d.getVar("S"), "/gettext-tools/m4/Makefile.am") |
| 24 | with open(fpath) as f: |
| 25 | content = f.read() |
| 26 | for l in content.replace("\\\n","").split("\n"): |
| 27 | if l.startswith("aclocal_DATA"): |
| 28 | aclocal_files = l.split("=")[1] |
| 29 | with open(oe.path.join(d.getVar("WORKDIR"),"aclocal-files"),'w') as outf: |
| 30 | outf.write(aclocal_files) |
| 31 | break |
| 32 | else: |
| 33 | bb.error("Could not obtain list of installed aclocal files from {}".format(fpath)) |
| 34 | } |
| 35 | do_install[prefuncs] += "get_aclocal_files" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 36 | |
| 37 | do_install () { |
| 38 | install -d ${D}${datadir}/aclocal/ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 39 | for i in `cat ${WORKDIR}/aclocal-files`; do |
| 40 | cp ${S}/gettext-tools/m4/$i ${D}${datadir}/aclocal/ |
| 41 | done |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 42 | install -d ${D}${datadir}/gettext/po/ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 43 | cp ${S}/build-aux/config.rpath ${D}${datadir}/gettext/ |
| 44 | cp ${S}/gettext-runtime/po/Makefile.in.in ${D}${datadir}/gettext/po/ |
| 45 | cp ${S}/gettext-runtime/po/remove-potcdate.sin ${D}${datadir}/gettext/po/ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | } |