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