games-arcade/slimevolley: EAPI-7 bump, drop insignificant USE

sdl-net is nowhere else optional, it is super small, it does not warrant
a patch just to fix a related cmake warning.

Closes: https://bugs.gentoo.org/678508
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2019-02-21 19:18:59 +01:00
parent b886a2733a
commit 3e2ca41ffa
2 changed files with 21 additions and 23 deletions

View File

@@ -1,11 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>games@gentoo.org</email>
<name>Gentoo Games Project</name>
</maintainer>
<use>
<flag name="net">Enable network support</flag>
</use>
<maintainer type="project">
<email>games@gentoo.org</email>
<name>Gentoo Games Project</name>
</maintainer>
</pkgmetadata>

View File

@@ -1,7 +1,8 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit cmake-utils
DESCRIPTION="A simple volleyball game"
@@ -11,20 +12,21 @@ SRC_URI="http://downloads.tuxfamily.org/slime/v242/${PN}_${PV}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="net"
IUSE=""
RDEPEND="
media-libs/libsdl[X,sound,video]
media-libs/sdl-ttf
media-libs/sdl-image[png]
net? ( media-libs/sdl-net )
virtual/libintl
"
DEPEND="${RDEPEND}
BDEPEND="
sys-devel/gettext
"
DEPEND="
media-libs/libsdl[X,sound,video]
media-libs/sdl-image[png]
media-libs/sdl-net
media-libs/sdl-ttf
virtual/libintl
"
RDEPEND="${DEPEND}"
DOCS="docs/README docs/TODO"
DOCS=( docs/{README,TODO} )
PATCHES=(
"${FILESDIR}"/${P}-nodatalocal.patch
@@ -35,10 +37,9 @@ S="${WORKDIR}/${PN}"
src_configure() {
local mycmakeargs=(
"-DCMAKE_VERBOSE_MAKEFILE=TRUE"
"-DCMAKE_INSTALL_PREFIX=/usr"
"-DDATA_DIR=/usr/share/slimevolley"
$(use net && echo "-DNO_NET=0" || echo "-DNO_NET=1")
-DCMAKE_VERBOSE_MAKEFILE=TRUE
-DCMAKE_INSTALL_PREFIX=/usr
-DDATA_DIR=/usr/share/slimevolley
)
cmake-utils_src_configure
}