net-analyzer/suricata: fixed problems with compilation
authorSlawomir Lis <slis@gentoo.org>
Fri, 11 May 2018 07:40:16 +0000 (09:40 +0200)
committerSlawomir Lis <slis@gentoo.org>
Fri, 11 May 2018 07:43:27 +0000 (09:43 +0200)
Fixed problems with compilation using lua and luajit

Package-Manager: Portage-2.3.36, Repoman-2.3.9

net-analyzer/suricata/suricata-4.0.3.ebuild

index e501c9c775b2d9681575f7dd47647373cf6c983f..19c4e17ebb26e58f964b1181eb6e2b3f30143db5 100644 (file)
@@ -27,10 +27,8 @@ DEPEND="
        sys-apps/file
        cuda?       ( dev-util/nvidia-cuda-toolkit )
        geoip?      ( dev-libs/geoip )
-       lua? (
-               !luajit? ( dev-lang/lua:* )
-               luajit? ( dev-lang/luajit:* )
-       )
+       lua?        ( dev-lang/lua:* )
+       luajit?     ( dev-lang/luajit:* )
        nflog?      ( net-libs/libnetfilter_log )
        nfqueue?    ( net-libs/libnetfilter_queue )
        redis?      ( dev-libs/hiredis )
@@ -83,15 +81,16 @@ src_configure() {
 #              myeconfargs+=( $(use_enable pfring) )
 #      fi
        # no libprelude in portage
-#      if use prelude ; then
+#      if use prelude ; theng
 #              myeconfargs+=( $(use_enable prelude) )
 #      fi
        if use lua ; then
-               myeconfargs+=(
-                       $(use_enable !luajit lua)
-                       $(use_enable luajit)
-               )
-       else
+               myeconfargs+=( $(use_enable lua) )
+       fi
+       if use luajit ; then
+               myeconfargs+=( $(use_enable luajit) )
+       fi
+       if (use !lua) && (use !luajit) ; then
                myeconfargs+=(
                        --disable-lua
                        --disable-luajit