From: Mike Gilbert Date: Wed, 20 May 2020 15:08:17 +0000 (-0400) Subject: dev-lua/lutok: add IUSE=static-libs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=438db71c08878d2fb1695b1ea23c60159916f807;p=gentoo.git dev-lua/lutok: add IUSE=static-libs Closes: https://bugs.gentoo.org/724296 Signed-off-by: Mike Gilbert --- diff --git a/dev-lua/lutok/lutok-0.4-r2.ebuild b/dev-lua/lutok/lutok-0.4-r2.ebuild index 42aefd393be6..f908ca91e0ad 100644 --- a/dev-lua/lutok/lutok-0.4-r2.ebuild +++ b/dev-lua/lutok/lutok-0.4-r2.ebuild @@ -10,11 +10,11 @@ SRC_URI="https://github.com/jmmv/lutok/releases/download/${P}/${P}.tar.gz" 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 @@ -24,6 +24,10 @@ DEPEND="${RDEPEND} ) " +src_configure() { + econf $(use_enable static-libs static) +} + src_install() { default rm -rf "${ED}"/usr/tests || die