src_prepare() selectively deletes subdirectories depending on USE flags
since configure.ac does not offer configurable switches. If a patch
applies changes to a directory that may be deleted, then src_prepare()
can fail depending on the USE flags that are set. This was the case with
USE=-python.
Avoid this possibility by applying patches before deleting directories.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
# not interested in using.
eapply_user
+ default
use ssl || { rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap} || die ; }
use ldap || { rm -r src/modules/rlm_ldap || die ; }
usesqldriver sqlite
usesqldriver mongodb mongo
- default
-
eautoreconf
}