blob: ec04bfe390fe993967ed0f6486fcf1792eca1df3 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "Fake version of the texinfo utility suite"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002SECTION = "console/utils"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d6bb62e73ca8b901d3f2e9d71542f4bb"
5DEPENDS = ""
6PV = "1.0"
7
8SRC_URI = "file://template.py file://COPYING"
9
10S = "${WORKDIR}"
11
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012inherit native
13
Andrew Geissler82c905d2020-04-13 13:39:40 -050014#
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 Williamsc124f4f2015-09-15 14:41:29 -050018do_install_name() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050019 FILENAME="${D}${base_bindir}/$1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020 # Using ln causes problems with rm_work
21 cp -T "${S}/template.py" "$FILENAME"
22 chmod +x $FILENAME
23}
24
25do_install() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050026 mkdir -p "${D}${base_bindir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027 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}