Closes: https://bugs.gentoo.org/724296
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="test"
+IUSE="static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="
- dev-lang/lua:0
+ dev-lang/lua:0[static-libs(+)?]
"
DEPEND="${RDEPEND}
virtual/pkgconfig
)
"
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
src_install() {
default
rm -rf "${ED}"/usr/tests || die