diff options
author | Sven Eden <sven.eden@gmx.de> | 2017-02-10 19:21:30 +0100 |
---|---|---|
committer | Sven Eden <sven.eden@gmx.de> | 2017-02-10 19:21:30 +0100 |
commit | e614b7df7486ee0eafae0e5e2e2b109c398d174d (patch) | |
tree | f7de1f45c055ffc107aeacc67b17e9500e1024e4 /games-strategy | |
parent | kde-plasma/powerdevil : Clean up old versions, that are no longer in the main... (diff) | |
download | seden-e614b7df7486ee0eafae0e5e2e2b109c398d174d.tar.gz seden-e614b7df7486ee0eafae0e5e2e2b109c398d174d.tar.bz2 seden-e614b7df7486ee0eafae0e5e2e2b109c398d174d.zip |
games-strategy/widelands-0.19 : Version bump
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/widelands/Manifest | 1 | ||||
-rw-r--r-- | games-strategy/widelands/metadata.xml | 11 | ||||
-rw-r--r-- | games-strategy/widelands/widelands-0.19.ebuild | 65 |
3 files changed, 77 insertions, 0 deletions
diff --git a/games-strategy/widelands/Manifest b/games-strategy/widelands/Manifest new file mode 100644 index 0000000..9943c2a --- /dev/null +++ b/games-strategy/widelands/Manifest @@ -0,0 +1 @@ +DIST widelands-build19-src.tar.bz2 181609391 SHA256 e511f9d26828a2b71b64cdfc6674e6e847543b2da73961ab882acca36c7c01a6 SHA512 80d70542f30c47498c38c5066ecbfa094cfa16fa3c8c75a950420b334cc019766a90a9f715d326506ce425848da1d75fa6f87e33e3551019c0dd8a4ccf99d666 WHIRLPOOL 3a218fa0ed3965af939fa79c73c1b03ed83ad563b507fe5125c4efbe56bc75904140b8a1006c87119c07cb5c6696f9f5248d681aa8a24f9262777304d7e66a65 diff --git a/games-strategy/widelands/metadata.xml b/games-strategy/widelands/metadata.xml new file mode 100644 index 0000000..8910ce0 --- /dev/null +++ b/games-strategy/widelands/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="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="launchpad">widelands</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/widelands/widelands-0.19.ebuild b/games-strategy/widelands/widelands-0.19.ebuild new file mode 100644 index 0000000..37294f8 --- /dev/null +++ b/games-strategy/widelands/widelands-0.19.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils versionator cmake-utils + +MY_PV=build$(get_version_component_range 2) +MY_P=${PN}-${MY_PV}-src +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://www.widelands.org/" +SRC_URI="https://launchpad.net/widelands/${MY_PV}/${MY_PV}/+download/${MY_P}.tar.bz2" + + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="dev-lang/lua:0 + >=dev-libs/boost-1.48 + media-libs/glew + media-libs/libpng:0 + media-libs/libsdl2[video] + media-libs/sdl2-image[jpeg,png] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-net + media-libs/sdl2-ttf + sys-libs/zlib[minizip]" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +CMAKE_BUILD_TYPE=Release + +# Game is NOT happy being moved from /usr/share/games +PREFIX="/usr/share/games/${PN}" + +src_prepare() { + default + + sed -i -e 's:__ppc__:__PPC__:' src/map_io/s2map.cc || die +} + +src_configure() { + local mycmakeargs=( + '-DWL_VERSION_STANDARD=true' + "-DWL_INSTALL_PREFIX=/usr/games" + "-DWL_INSTALL_DATADIR=/usr/share/games/${PN}" + "-DWL_INSTALL_LOCALEDIR=/usr/share/games/${PN}/locale" + "-DWL_INSTALL_BINDIR=/usr/bin" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + newicon data/images/logos/wl-ico-128.png ${PN}.png + make_desktop_entry ${PN} Widelands + dodoc ChangeLog CREDITS +} |