blob: a942ac2991e75aebd27b656813867a920b4a199e [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"
Andrew Geissler95ac1b82021-03-31 14:34:31 -05003DESCRIPTION = "${SUMMARY}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d6bb62e73ca8b901d3f2e9d71542f4bb"
6DEPENDS = ""
7PV = "1.0"
8
9SRC_URI = "file://template.py file://COPYING"
10
11S = "${WORKDIR}"
12
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013inherit native
14
Andrew Geissler82c905d2020-04-13 13:39:40 -050015#
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 Williamsc124f4f2015-09-15 14:41:29 -050019do_install_name() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050020 FILENAME="${D}${base_bindir}/$1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 # Using ln causes problems with rm_work
22 cp -T "${S}/template.py" "$FILENAME"
23 chmod +x $FILENAME
24}
25
26do_install() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 mkdir -p "${D}${base_bindir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 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}