Blame vars/python2_host.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
#
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
#
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
Lucio Andrés Illanes Albornoz 16b168
pkg_python2_host_clean() {
Lucio Andrés Illanes Albornoz 04ace4
	# Inhibit ${ARG_CLEAN_BUILDS} processing as the python2_host
Lucio Andrés Illanes Albornoz 04ace4
	# build-time source code is required by python2.
Lucio Andrés Illanes Albornoz 16b168
	return 0;
Lucio Andrés Illanes Albornoz 16b168
};
Lucio Andrés Illanes Albornoz 16b168
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
pkg_python2_host_install_make_post() {
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
	if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python2.7.wrapper"; then
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
		ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python2.7.wrapper";
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
	cat > "${PKG_DESTDIR}/bin/python2.7.wrapper" <
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
#!/bin/sh
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
env LD_LIBRARY_PATH="${PREFIX}/lib" "${PREFIX}/bin/python2.7" "\${@}";
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
EOF
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
        chmod +x "${PKG_DESTDIR}/bin/python2.7.wrapper";
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
};
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
# vim:filetype=sh