added widelands-0.19

This commit is contained in:
tastytea 2018-06-19 11:49:01 +02:00
parent 1d178c7283
commit 5d7965f6ce
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST widelands-build19-src.tar.bz2 181609391 BLAKE2B 50f2211aaaea6d476d6e943fc33e3814526b15965bac442c39ad7fd8e44982c2c061bb32e0865d0cb22664f2a95fe3fe081b2f558e9c51fb4f390fe184531002 SHA512 80d70542f30c47498c38c5066ecbfa094cfa16fa3c8c75a950420b334cc019766a90a9f715d326506ce425848da1d75fa6f87e33e3551019c0dd8a4ccf99d666

View File

@ -0,0 +1,21 @@
--- a/src/network/netclient.cc 2017-09-07 17:03:04.532134374 +0200
+++ b/src/network/netclient.cc 2017-09-07 17:10:54.603125955 +0200
@@ -477,6 +477,8 @@
// This might happen, if a users connects after the game starts.
if (number == d->settings.users.size()) {
UserSettings newuser;
+ newuser.position = number;
+ newuser.ready = false;
d->settings.users.push_back(newuser);
}
--- a/src/network/nethost.cc 2017-09-07 17:11:58.924124804 +0200
+++ b/src/network/nethost.cc 2017-09-07 17:13:37.339123041 +0200
@@ -1612,6 +1612,7 @@
if (client.usernum == -1) {
client.usernum = d->settings.users.size();
UserSettings newuser;
+ newuser.position = client.usernum;
newuser.result = Widelands::PlayerEndResult::UNDEFINED;
newuser.ready = true;
d->settings.users.push_back(newuser);

View File

@ -0,0 +1,69 @@
# Copyright 1999-2018 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}"
PATCHES=(
"${FILESDIR}"/${P}-fix_maybe_uninitialized.patch
)
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_BASEDIR=${EPREFIX}"
"-DWL_INSTALL_DATADIR=${EPREFIX}"
"-DWL_INSTALL_BINDIR="${EPREFIX}"/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
}