logo

overlay

My (experimental) gentoo overlay
commit: 9dca527e7d96282266f6f40deb0f05829465a72b
parent: 6914e60b8aa32a79f643021fcbf2e8788cc751d7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  2 Sep 2019 22:16:17 +0200

games-action/teeworlds: New

Diffstat:

Agames-action/teeworlds/Manifest1+
Agames-action/teeworlds/teeworlds-0.7.3.1.ebuild49+++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/games-action/teeworlds/Manifest b/games-action/teeworlds/Manifest @@ -0,0 +1 @@ +DIST teeworlds-0.7.3.1-src.tar.gz 8682272 BLAKE2B aa37c1c0fc99a5303003ccd1e7b81453dbb75206381a85dd5d4cc428d41183758ef606355f1694adc4541363bc10728923b266f32d45ed0b8e81a47785ed1e0a SHA512 7ead583136921d74d4e1923ac035e07e441e070681fa2abc030b99c4cac3b8ab62bc77c78b0901bfb2da2c94c6f33444841ccfda66de1cd21b64becb8a27c501 diff --git a/games-action/teeworlds/teeworlds-0.7.3.1.ebuild b/games-action/teeworlds/teeworlds-0.7.3.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="Online multi-player platform 2D shooter" +HOMEPAGE="https://www.teeworlds.com/" +SRC_URI="https://github.com/teeworlds/teeworlds/releases/download/${PV}/${P}-src.tar.gz" +# License of stuff in src/engine/external (* disabled) +# json-parser: BSD-2 +# md5: ZLIB +# pnglite*: ZLIB +# wavpack*: BSD +# zlib*: ZLIB +LICENSE="ZLIB CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated libressl test" +S="${WORKDIR}/${P}-src" + +DEPEND=" + dev-lang/python + sys-libs/zlib:= + virtual/opengl:= + !dedicated? ( + media-libs/freetype:= + media-libs/libsdl2:= + media-libs/pnglite:= + media-sound/wavpack:= + x11-libs/libX11:= + ) + libressl? ( dev-libs/libressl:= ) + !libressl? ( dev-libs/openssl:= ) + test? ( dev-cpp/gtest ) +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DDOWNLOAD_GTEST=OFF + -DDOWNLOAD_DEPENDENCIES=OFF + -DPREFER_BUNDLED_LIBS=OFF + -DCLIENT=$(usex !dedicated) + ) + + cmake-utils_src_configure +}