Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | SUMMARY = "Fake version of the texinfo utility suite" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | SECTION = "console/utils" |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 3 | DESCRIPTION = "${SUMMARY}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d6bb62e73ca8b901d3f2e9d71542f4bb" |
| 6 | DEPENDS = "" |
| 7 | PV = "1.0" |
| 8 | |
| 9 | SRC_URI = "file://template.py file://COPYING" |
| 10 | |
| 11 | S = "${WORKDIR}" |
| 12 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | inherit native |
| 14 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | # |
| 16 | # To avoid texinfo-dummy-native and texinfo-native conflicting we install to base_bindir |
| 17 | # which is later in PATH than bindir where texinfo-native installs |
| 18 | # |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | do_install_name() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | FILENAME="${D}${base_bindir}/$1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | # Using ln causes problems with rm_work |
| 22 | cp -T "${S}/template.py" "$FILENAME" |
| 23 | chmod +x $FILENAME |
| 24 | } |
| 25 | |
| 26 | do_install() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 27 | mkdir -p "${D}${base_bindir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | for i in makeinfo pod2texi texi2dvi pdftexi2dvi texindex texi2pdf \ |
| 29 | txixml2texi texi2any install-info ginstall-info \ |
| 30 | update-info-dir; do |
| 31 | do_install_name $i |
| 32 | done |
| 33 | } |