logo

overlay

My (experimental) gentoo overlay
commit: 463b7709eb3b601554feed7f78cc7338619318ed
parent: 9db050d3034a487fe17f8595b399671702f0bce4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  5 Jul 2018 06:04:38 +0200

games-engines/solarus: New package

Based on ::gentoo with some stuff from the AUR package and tastytea’s overlay.

Diffstat:

Agames-engines/solarus/Manifest1+
Agames-engines/solarus/metadata.xml11+++++++++++
Agames-engines/solarus/solarus-1.5.3.ebuild57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/games-engines/solarus/Manifest b/games-engines/solarus/Manifest @@ -0,0 +1 @@ +DIST solarus-1.5.3-src.tar.gz 2727433 BLAKE2B e99d6d926ec5e242683fbe00fadf78f80a17e63453afb74de81a7186508eec81a13420ad87f1774e12fe608a925c7c1d839ee47ce738b661498a4557ea78725a SHA512 d957508d08c4f58930e2cae3dde28d73564c1134de16cb94248b49dcb83f6cefd7f276ea00e3eae497a17a5d34059e5044327e0230c6b4f7234ced2a308a8454 diff --git a/games-engines/solarus/metadata.xml b/games-engines/solarus/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <upstream> + <remote-id type="github">christopho/solarus</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-engines/solarus/solarus-1.5.3.ebuild b/games-engines/solarus/solarus-1.5.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="An open-source Zelda-like 2D game engine" +HOMEPAGE="http://www.solarus-games.org/" +SRC_URI="http://www.solarus-games.org/downloads/${PN}/${P}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc luajit qt5" + +RDEPEND=" + dev-games/physfs + media-libs/libmodplug + media-libs/libsdl2[X,joystick,video] + media-libs/libvorbis + media-libs/openal + media-libs/sdl2-image[png] + media-libs/sdl2-ttf + media-libs/glm + luajit? ( dev-lang/luajit:2 ) + !luajit? ( dev-lang/lua:0 ) + qt5? ( dev-qt/qtgui:5 ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DSOLARUS_USE_LUAJIT="$(usex luajit)" + -DSOLARUS_GUI="$(usex qt5)" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc ; then + cd doc || die + doxygen || die + fi +} + +src_install() { + cmake-utils_src_install + doman solarus.6 + use doc && dodoc -r doc/${PV%.*}/html/* +}