summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-07 15:05:08 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-07 15:05:08 +0100
commit042fe26a4b067e80666201e60d6c9163e8634ccb (patch)
tree01c3b1d0a7bddb86ced2fee013c7efd9db09a8e3 /vars
parent659b247597950050f40ecaeb8e7d524ec6771a93 (diff)
downloadmidipix_build-042fe26a4b067e80666201e60d6c9163e8634ccb.tar.bz2
midipix_build-042fe26a4b067e80666201e60d6c9163e8634ccb.tar.xz
vars/texinfo_host.vars: install makeinfo(1) ${PERL5LIB} wrapper script.
Diffstat (limited to 'vars')
-rw-r--r--vars/texinfo_host.vars17
1 files changed, 17 insertions, 0 deletions
diff --git a/vars/texinfo_host.vars b/vars/texinfo_host.vars
new file mode 100644
index 00000000..18a0c0f1
--- /dev/null
+++ b/vars/texinfo_host.vars
@@ -0,0 +1,17 @@
+#
+# set -o errexit -o noglob are assumed.
+#
+
+pkg_texinfo_host_install_make_post() {
+ if [ -e "${PKG_DESTDIR}/bin/makeinfo" ]; then
+ ex_rtl_fileop mv "${PKG_DESTDIR}/bin/makeinfo" "${PKG_DESTDIR}/bin/makeinfo.dist";
+ fi;
+ cat > "${PKG_DESTDIR}/bin/makeinfo" <<EOF
+#!/bin/sh
+export PERL5LIB="${PREFIX}/share/texinfo:${PREFIX}/share/texinfo/lib/libintl-perl/lib:${PREFIX}/share/texinfo/lib/Text-Unidecode/lib:${PREFIX}/share/texinfo/lib/Unicode-EastAsianWidth/lib";
+makeinfo.dist "\${@}";
+EOF
+ chmod +x "${PKG_DESTDIR}/bin/makeinfo";
+};
+
+# vim:filetype=sh textwidth=0