games-action/lugaru: Port to EAPI 7

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2019-04-11 19:20:26 +02:00
parent e1b400a259
commit 8eae0b2d70

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit cmake-utils desktop
@@ -15,11 +15,11 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
media-libs/libpng:0
media-libs/libsdl[opengl,video]
media-libs/libvorbis
media-libs/openal
sys-libs/zlib
media-libs/libpng:0=
media-libs/libsdl:=[opengl,video]
media-libs/libvorbis:=
media-libs/openal:=
sys-libs/zlib:=
virtual/glu
virtual/jpeg:0
virtual/opengl"
@@ -40,21 +40,17 @@ src_prepare() {
}
src_configure() {
mycmakeargs=(
"-DCMAKE_VERBOSE_MAKEFILE=TRUE"
"-DLUGARU_FORCE_INTERNAL_OPENGL=False"
local mycmakeargs=(
-DCMAKE_VERBOSE_MAKEFILE=TRUE
-DLUGARU_FORCE_INTERNAL_OPENGL=False
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
dobin "${WORKDIR}/${P}_build/lugaru"
dobin "${BUILD_DIR}"/lugaru
insinto /usr/share/${PN}
doins -r Data/
doins -r Data
newicon Source/win-res/Lugaru.png ${PN}.png
make_desktop_entry ${PN} Lugaru ${PN}
}