commit:     d26b3a32bc218398894096c050375d9fb457f23a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 10 22:18:53 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Apr 10 22:19:48 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d26b3a32

games-action/minetest: Remove misleading USE=jsoncpp flag

* dev-libs/jsoncpp is required unconditionally,
  USE=jsoncpp would just toggle between the bundled
  and system one, which is obviously wrong.

Closes: https://bugs.gentoo.org/682996
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../minetest/{minetest-5.0.1.ebuild => minetest-5.0.1-r1.ebuild} | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/games-action/minetest/minetest-5.0.1.ebuild 
b/games-action/minetest/minetest-5.0.1-r1.ebuild
similarity index 93%
rename from games-action/minetest/minetest-5.0.1.ebuild
rename to games-action/minetest/minetest-5.0.1-r1.ebuild
index 32f400f2692..8147fcf53ad 100644
--- a/games-action/minetest/minetest-5.0.1.ebuild
+++ b/games-action/minetest/minetest-5.0.1-r1.ebuild
@@ -12,11 +12,12 @@ 
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="LGPL-2.1+ CC-BY-SA-3.0 OFL-1.1 Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="+curl dedicated doc jsoncpp +leveldb luajit ncurses nls postgres redis 
+server +sound spatial +truetype"
+IUSE="+curl dedicated doc +leveldb luajit ncurses nls postgres redis +server 
+sound spatial +truetype"
 
 RDEPEND="
        dev-db/sqlite:3
        dev-libs/gmp:0=
+       dev-libs/jsoncpp:=
        sys-libs/zlib
        curl? ( net-misc/curl )
        !dedicated? (
@@ -34,7 +35,6 @@ RDEPEND="
                )
                truetype? ( media-libs/freetype:2 )
        )
-       jsoncpp? ( dev-libs/jsoncpp )
        leveldb? ( dev-libs/leveldb:= )
        luajit? ( dev-lang/luajit:2 )
        ncurses? ( sys-libs/ncurses:0= )
@@ -64,6 +64,9 @@ src_prepare() {
                -e "s#@BINDIR@#${EPREFIX}/usr/bin#g" \
                -e "s#@GROUP@#${PN}#g" \
                "${FILESDIR}"/minetestserver.confd > 
"${T}"/minetestserver.confd || die
+
+       # remove bundled gmp/jsoncpp
+       rm -rf lib/{gmp,jsoncpp} || die
 }
 
 src_configure() {
@@ -85,7 +88,7 @@ src_configure() {
                -DENABLE_REDIS=$(usex redis)
                -DENABLE_SPATIAL=$(usex spatial)
                -DENABLE_SOUND=$(usex sound)
-               -DENABLE_SYSTEM_JSONCPP=$(usex jsoncpp)
+               -DENABLE_SYSTEM_JSONCPP=1
                -DRUN_IN_PLACE=0
        )
 

Reply via email to