diff options
Diffstat (limited to 'games-strategy/widelands')
-rw-r--r-- | games-strategy/widelands/Manifest | 6 | ||||
-rw-r--r-- | games-strategy/widelands/files/widelands-0.18-cxxflags.patch | 12 | ||||
-rw-r--r-- | games-strategy/widelands/metadata.xml | 11 | ||||
-rw-r--r-- | games-strategy/widelands/widelands-0.18-r1.ebuild | 69 |
4 files changed, 98 insertions, 0 deletions
diff --git a/games-strategy/widelands/Manifest b/games-strategy/widelands/Manifest new file mode 100644 index 000000000000..309fd5ab0e34 --- /dev/null +++ b/games-strategy/widelands/Manifest @@ -0,0 +1,6 @@ +AUX widelands-0.18-cxxflags.patch 1061 SHA256 7e59b10e134519b56232e20e37af2aa9d99fd76236215a2a0318d43100b59bb8 SHA512 ad911122384af9c07f3fc35446ed6f7e7bda86768983ee17668dbedcea2bc20eb88d4c43b051860553b6f455bc8655b226223b45b4d4f421ee5032cc380ad591 WHIRLPOOL 8277e379413760610c6a59c7ecd9e1d7a0940c76885f40e99ee1e6f58e8af40031e54b85c7b9438e8b5a7bcbf40975ec11e8bcbedbf864b4df31e1ff245e4edf +DIST widelands-build18-src.tar.bz2 183443325 SHA256 6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3 SHA512 9b01c0a7e197360ddd7e21292fc8ba5d1102e24f3a9ec35cfbbf67413a0e9d69abeccd2bc3f6aad05b42cabff32112466803738b41f61562d843779e0c974e72 WHIRLPOOL ca46c70d951f83c00c37465bc0da9eb94d8d66be50e00c015ee6264ebc99669eca08aeb4117fbcd97fcb7c0e689af4947ad96c231746fc4a2626bb6ac4005be1 +EBUILD widelands-0.18-r1.ebuild 1568 SHA256 5e0aae80000ee9fcb96bce462c2dcfe952aa641280e1d9f029c88f98915cf023 SHA512 e814dba0925eb9dd09d05fa2e570531eab9ffd95179c343298fab32123c9ba87ad9691c3e0a8b0f3b9802120a687e9e8c1a81f53d87337f5e970dc5d2b9f7314 WHIRLPOOL 30733bc6efcc152e45dbbf86077da8dd385774b21c5202cfc10a8eab0c4a52bf8d13bcbc2c28582b23035b553f5d0493fc1d4cb3ba2fca948d031cf23201709b +MISC ChangeLog 4353 SHA256 095521a376f81203679c46d7219b7fcdbe853359fc0147bf0c19381a95752804 SHA512 f1089e6749ec4e63fa700f04b22726941f29301a964b4ab4ca5e07ca24701f1bc1cb11ff01a29f47c199b1a97ef671b1ace405ad0f333e709abc9d59aa4c61e5 WHIRLPOOL fab1a4ff89dceaa3a88c51f478d815438d77a60ce83b9865a9d425f45356ba502104083ae37cecff19147d2a75bb8cf7304806d50c1d663ca44b0bfd65d10330 +MISC ChangeLog-2015 8274 SHA256 598e11e1409b8a463ad4c7dcdedaba3a8d928c474f37affccc59ff3b33e36e70 SHA512 0eb75bbbe9bb4cf125677f4638e0849d32115aaecc97f877b6c32df484e3affb682dcae936477d7b07a44adc0f8b2ff74383accaead481aaa715e7a313e19581 WHIRLPOOL 3ad51d7686eb9e65538d940a491a37139cdbdeae970acc7badf401a081bc4291daa5a4d92e1cfda4c835420578102ce3e266bd06a4481393b8abfda762b63e58 +MISC metadata.xml 330 SHA256 29c6f49786fdd3fcc8f2bdd3a0d1fc2b489645c57aa53e8379de23386e876ca4 SHA512 a56671f43b3ce3e6274b9101b7c5ea1a4b2ff261fb94366e80d2655519a07c52fa0629b762d3ca76f82693075a1c717795bff2a69122938c9749ea249dc1e75d WHIRLPOOL 699952b8f7a357f670b3c7e34270cd6f2f3dd0473c96843d4d8ba7a693dbf96211af1d77ca65b6e796e7592ec9cc5337b19fb50224d65f682282a077baf3677e diff --git a/games-strategy/widelands/files/widelands-0.18-cxxflags.patch b/games-strategy/widelands/files/widelands-0.18-cxxflags.patch new file mode 100644 index 000000000000..f6b65400bf82 --- /dev/null +++ b/games-strategy/widelands/files/widelands-0.18-cxxflags.patch @@ -0,0 +1,12 @@ +diff -ru widelands-build18-src.orig/CMakeLists.txt widelands-build18-src/CMakeLists.txt +--- widelands-build18-src.orig/CMakeLists.txt 2014-02-22 04:06:51.000000000 -0500 ++++ widelands-build18-src/CMakeLists.txt 2016-03-23 23:04:50.536259815 -0400 +@@ -271,7 +271,7 @@ + ENDIF (WLBUILD_COMPILERVERSION_REP STREQUAL "4.5.1" OR WLBUILD_COMPILERVERSION_REP STREQUAL "4.5.2") + ENDIF (CMAKE_COMPILER_IS_GNUCXX) + +-set (CMAKE_CXX_FLAGS_RELEASE "${WL_COMPILERFLAG_CXXSTD} ${WL_COMPILERFLAG_OPTIMIZATIONS} -DNDEBUG${WL_COMPILERFLAG_OLDSTYLECAST}${WL_COMPILERFLAG_GENERICWARNINGS}${WL_COMPILERFLAG_EXTRAWARNINGS}${WL_COMPILERFLAG_GCCWARNINGS}${WL_COMPILERFLAG_STRICT}" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) ++set (CMAKE_CXX_FLAGS_RELEASE "${WL_COMPILERFLAG_CXXSTD} -DNDEBUG${WL_COMPILERFLAG_OLDSTYLECAST}${WL_COMPILERFLAG_GENERICWARNINGS}${WL_COMPILERFLAG_EXTRAWARNINGS}${WL_COMPILERFLAG_GCCWARNINGS}${WL_COMPILERFLAG_STRICT}" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) + + #If building with MSVC, then check for 3rdparty libs + if (DEFINED MSVC) diff --git a/games-strategy/widelands/metadata.xml b/games-strategy/widelands/metadata.xml new file mode 100644 index 000000000000..8910ce0417b5 --- /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.18-r1.ebuild b/games-strategy/widelands/widelands-0.18-r1.ebuild new file mode 100644 index 000000000000..4f8154f9a1da --- /dev/null +++ b/games-strategy/widelands/widelands-0.18-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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}/build-$(get_version_component_range 2)/+download/${MY_P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + dev-lang/lua:0 + >=dev-libs/boost-1.48:= + media-libs/glew:0= + media-libs/libpng:0= + media-libs/libsdl[video] + media-libs/sdl-gfx + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib[minizip]" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +CMAKE_BUILD_TYPE=Release + +PATCHES=( + "${FILESDIR}"/${P}-cxxflags.patch +) + +src_prepare() { + cmake-utils_src_prepare + + sed -i -e 's:__ppc__:__PPC__:' src/s2map.cc || die + sed -i -e '/WL_VERSION_MINOR/s/17/18/' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DWL_VERSION_STANDARD=true + + # Game is NOT happy being moved from /usr/share/games + -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/share/games/${PN} + + -DWL_INSTALL_PREFIX="${EPREFIX}"/usr/games + -DWL_INSTALL_DATADIR="${EPREFIX}"/usr/share/games/${PN} + -DWL_INSTALL_LOCALEDIR="${EPREFIX}"/usr/share/games/${PN}/locale + -DWL_INSTALL_BINDIR="${EPREFIX}"/usr/bin + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + newicon pics/wl-ico-128.png ${PN}.png + make_desktop_entry ${PN} ${PN^} +} |