summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-06-03 10:15:08 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-06-03 12:17:51 -0400
commitb8fb6aa58c65e3faf26d14cc0e4564adfb20ab3d (patch)
tree509bb35f8ba878355a42e2c5f914235947035364
parentgames-strategy/widelands: add github remote-id (diff)
downloadgentoo-b8fb6aa58c65e3faf26d14cc0e4564adfb20ab3d.tar.gz
gentoo-b8fb6aa58c65e3faf26d14cc0e4564adfb20ab3d.tar.bz2
gentoo-b8fb6aa58c65e3faf26d14cc0e4564adfb20ab3d.zip
games-strategy/widelands: add 0.21
- add python3_{9,10} - enable minor tests - let trivial website tools be built - removed upstreamed patches - use upstream provided .desktop - update LICENSE for the various assets Closes: https://bugs.gentoo.org/718116 Closes: https://bugs.gentoo.org/736268 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
-rw-r--r--games-strategy/widelands/Manifest1
-rw-r--r--games-strategy/widelands/widelands-0.21.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/games-strategy/widelands/Manifest b/games-strategy/widelands/Manifest
index 0efbada5560d..36caa1904732 100644
--- a/games-strategy/widelands/Manifest
+++ b/games-strategy/widelands/Manifest
@@ -1 +1,2 @@
DIST widelands-build20.tar.bz2 232364340 BLAKE2B 1d8e2cd28d2ac3e2425c91a9872a3f158d7063a2c6c669d95df347561ef35dfca479fd81252d61008a3282c99a2ce70c4d904622272dd86477a731fc711306b1 SHA512 25280db6a57adeb37d13db35ce9eb41a5478534b04772240f6228c180f5a41a55fc414dab66e724945442985cbbba7a8a59a582291aca176e0bd8ae6c08760e5
+DIST widelands-build21-source.tar.gz 381374149 BLAKE2B 17f0491bf7bcd10449bcc274be94aec4a0a64625c19f52426a0d460c3356e04a59b51683e72b4492ba1f62bd6ea510250c3cedda89a7588b88a0071abb1cf0cf SHA512 8d36bd0407a72e4e221155121f9ab4ce7fdfb6d81ca70a2772baf12c3397fc6abbcad5006336adb471d2c5127a90b4cda735e941d69cf779be1f923d4a38960e
diff --git a/games-strategy/widelands/widelands-0.21.ebuild b/games-strategy/widelands/widelands-0.21.ebuild
new file mode 100644
index 000000000000..398bc433cb5a
--- /dev/null
+++ b/games-strategy/widelands/widelands-0.21.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit xdg cmake python-any-r1
+
+MY_PV="build$(ver_cut 2)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Game similar to Settlers 2"
+HOMEPAGE="https://www.widelands.org/"
+SRC_URI="https://launchpad.net/widelands/${MY_PV}/${MY_PV}/+download/${MY_P}-source.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="|| ( Apache-2.0 GPL-3 ) BitstreamVera CC-BY-SA-3.0 GPL-2 GPL-2+ MIT OFL-1.1 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/icu:=
+ media-libs/glew:0=
+ media-libs/libglvnd
+ media-libs/libpng:=
+ media-libs/libsdl2[opengl,sound,video]
+ media-libs/sdl2-image[jpeg,png]
+ media-libs/sdl2-mixer[vorbis]
+ media-libs/sdl2-ttf
+ sys-libs/zlib:=
+ virtual/libintl"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/boost"
+BDEPEND="
+ ${PYTHON_DEPS}
+ sys-devel/gettext"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.20_rc1-cxxflags.patch
+)
+
+src_configure() {
+ CMAKE_BUILD_TYPE="Release"
+
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/bin
+ -DWL_INSTALL_BASEDIR="${EPREFIX}"/usr/share/doc/${PF}
+ -DWL_INSTALL_DATADIR="${EPREFIX}"/usr/share/${PN}
+ -DGTK_UPDATE_ICON_CACHE=OFF
+ -DOPTION_BUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}