Blame vars/python3_host.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
#
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
Lucio Andrés Illanes Albornoz d279a9
pkg_python3_host_fetch_download() {
Lucio Andrés Illanes Albornoz bf9edf
	if ! pkg_fetch_download\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! rtl_fileop rm "${PKG_BASE_DIR}/sbpython3"\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython3=${DEFAULT_GITROOT}/python/sbpython3@main"\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! rtl_fileop cp "../sbpython3/project/config/cfgdefs.sh" "../sbpython3/project/config/cfgdefs.sh.orig"\
Lucio Andrés Illanes Albornoz 0d1c4f
	|| ! sed -i"" -e"s/-ltinfo/&w/" -e"s/mb_ncurses_libs='\([^']*\)'/mb_ncurses_libs='\1 -ltinfow'/" "../sbpython3/project/config/cfgdefs.sh"\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! sed -i"" -e'108a\
Lucio Andrés Illanes Albornoz bf9edf
cfgtest_ldflags_append "-L$mb_prefix/lib"' "../sbpython3/project/config/cfgdefs.sh"\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! sed -i"" '/^PYCOMPILE_CFLAGS.*+= -std=c99/a\
Lucio Andrés Illanes Albornoz 2129ba
PYCOMPILE_CFLAGS	+= -I'"${PREFIX}"'/include
Lucio Andrés Illanes Albornoz bf9edf
' "../sbpython3/project/pycompile.mk"\
Lucio Andrés Illanes Albornoz e2c21d
	|| ! sed -i"" '/^PYEXT_OSSAUDIODEV_SHARED/s/^/#/' ../sbpython3/project/variants/3.6.3/pyexts.mk\
Lucio Andrés Illanes Albornoz e2c21d
	|| ! sed -i"" '/^PYEXT_OSSAUDIODEV_SHARED/s/^/#/' ../sbpython3/project/variants/3.7.1/pyexts.mk\
Lucio Andrés Illanes Albornoz e2c21d
	|| ! sed -i"" '/^PYEXT_OSSAUDIODEV_SHARED/s/^/#/' ../sbpython3/project/variants/3.7.2/pyexts.mk\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! ex_pkg_state_set "${PKG_NAME}" "fetch_download" "-fetch_extract"; then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
};
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
Lucio Andrés Illanes Albornoz bf9edf
# vim:filetype=sh textwidth=0