eutils provides a sane/safe/standard way of mucking with shopts, so use it instead of local custom code
Created attachment 239311 [details, diff] tla.eclass.patch
+ 26 Feb 2012; Pacho Ramos <pacho@gentoo.org> tla.eclass: + Convert to eshopts_{push,pop}, bug 328871 by Spanky. +