dev-lua/lutok: add IUSE=static-libs
authorMike Gilbert <floppym@gentoo.org>
Wed, 20 May 2020 15:08:17 +0000 (11:08 -0400)
committerMike Gilbert <floppym@gentoo.org>
Wed, 20 May 2020 15:44:26 +0000 (11:44 -0400)
Closes: https://bugs.gentoo.org/724296
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
dev-lua/lutok/lutok-0.4-r2.ebuild

index 42aefd393be621ddf15926a1eaead197becc15ec..f908ca91e0ad6f210e4cc574c9d57f6b2807555d 100644 (file)
@@ -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