In src_install(): "${FILESDIR}/dowrap" "${EPREFIX}/bin/"{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat} This relies on ${FILESDIR}/dowrap being executable. Please prefix the above line with an explicit /bin/bash call.
Looking at the dowrap script, it has more problems. It uses Portage internal functions (like helpers_die) and variables (like PORTAGE_INST_UID) which will make it fail with other package managers. Maybe it would be best to inline this as a function into the ebuild. Patch will follow.
Created attachment 404156 [details, diff] Proposed patch for ubin-wrappers-0.ebuild I've verified that the installed package is identical to the one installed by the existing ebuild.