From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72508158094 for ; Mon, 25 Jul 2022 06:11:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 936FDE1094; Mon, 25 Jul 2022 06:11:22 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75D41E1094 for ; Mon, 25 Jul 2022 06:11:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A8005340F29 for ; Mon, 25 Jul 2022 06:11:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 283D84FA for ; Mon, 25 Jul 2022 06:11:20 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1658729466.3246c00209ab6bab765ac17df147005b2e24e8ee.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/freeorion/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-strategy/freeorion/Manifest games-strategy/freeorion/freeorion-0.4.10.2-r1.ebuild X-VCS-Directories: games-strategy/freeorion/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 3246c00209ab6bab765ac17df147005b2e24e8ee X-VCS-Branch: master Date: Mon, 25 Jul 2022 06:11:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 42bef63d-0f75-4a71-8076-551650ec4ddd X-Archives-Hash: 46294faa5da30b1af1a2455eb5074917 commit: 3246c00209ab6bab765ac17df147005b2e24e8ee Author: Ionen Wolkens gentoo org> AuthorDate: Mon Jul 25 01:59:37 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Mon Jul 25 06:11:06 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3246c002 games-strategy/freeorion: revbump with misc ebuild updates * run tests, but with a major exclusion until next bump (see src_test) * use check-reqs for the early build ram usage spike * use official release tarball for accurate Version.cpp, this also prevents use of git at build time for non-live * remove unused bullet dependency (bug #846638) along with freealut * unbundle dejavu/roboto fonts * IUSE=doc for doxygen apidocs * install ChangeLog.md * drop unnecessary use of [X] on libsdl2 but keep on libglvnd for now as building tests is broken with =GLVND (next bump will use libOpenGL by default and has fixed building tests) * drop env.d LDPATH file and use rpath as intended (formerly a workaround for insecure runpaths because ebuild used dobin rather than cmake, but hasn't been like that in a while) Closes: https://bugs.gentoo.org/846638 Signed-off-by: Ionen Wolkens gentoo.org> games-strategy/freeorion/Manifest | 1 + .../freeorion/freeorion-0.4.10.2-r1.ebuild | 117 +++++++++++++++++++++ 2 files changed, 118 insertions(+) diff --git a/games-strategy/freeorion/Manifest b/games-strategy/freeorion/Manifest index 4a872343e2a4..199410a08934 100644 --- a/games-strategy/freeorion/Manifest +++ b/games-strategy/freeorion/Manifest @@ -1 +1,2 @@ +DIST FreeOrion_v0.4.10.2_2021-08-01.f663dad_Source.tar.gz 124836633 BLAKE2B 42224b84a7aef99e998cb025b5095365a65670a3a0a543ef323f444f1904557713dc995de6f7ccaf9a45e34f62b4c65d4977caa0f6ac7605a9978268bdef0ba1 SHA512 a0f327f5fec82cf15495828f60b59b59834efaa041919fe9f68e4428e89b729503b7e666214ea39e5c9afdfbb9efd343c5cbcb8dfc982d6f56b3a06fd898f428 DIST freeorion-0.4.10.2.tar.gz 124720711 BLAKE2B 4f707b5296bdbc05b2b775b62f0393d1770bcf64c48f08d3332fbbb4b78e1bdc3e8111a1e421a8d0f0e03ca7454bba981809b9486d3d803e39faf042f1145059 SHA512 13832992efe17fe48615ccdf284d1e9f391c35ed518abd15276992128a02894f4b30c8fe3d950e41935efb823cf834dc430330f0bcc6c9e91f13a3dea9812628 diff --git a/games-strategy/freeorion/freeorion-0.4.10.2-r1.ebuild b/games-strategy/freeorion/freeorion-0.4.10.2-r1.ebuild new file mode 100644 index 000000000000..3d3075568e67 --- /dev/null +++ b/games-strategy/freeorion/freeorion-0.4.10.2-r1.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# note: py3.11 is known failing at runtime with this version +PYTHON_COMPAT=( python3_{8..10} ) +inherit check-reqs cmake multiprocessing python-single-r1 xdg + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" +else + FREEORION_BUILD_ID="2021-08-01.f663dad" + SRC_URI="https://github.com/freeorion/freeorion/releases/download/v${PV}/FreeOrion_v${PV}_${FREEORION_BUILD_ID}_Source.tar.gz" + S="${WORKDIR}/src-tarball" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Free turn-based space empire and galactic conquest game" +HOMEPAGE="https://www.freeorion.org/" + +LICENSE="GPL-2+ CC-BY-SA-3.0 LGPL-2.1+" +SLOT="0" +IUSE="dedicated doc test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +DEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep 'dev-libs/boost:=[${PYTHON_USEDEP},nls,python]') + sys-libs/zlib:= + !dedicated? ( + media-libs/freetype + media-libs/glew:= + media-libs/libglvnd[X] + media-libs/libogg + media-libs/libpng:= + media-libs/libsdl2[opengl,video] + media-libs/libvorbis + media-libs/openal + )" +RDEPEND=" + ${DEPEND} + !dedicated? ( + media-fonts/dejavu + media-fonts/roboto + )" +BDEPEND=" + ${PYTHON_DEPS} + doc? ( + app-doc/doxygen + media-gfx/graphviz + ) + test? ( + $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') + )" + +freeorion_check-reqs() { + # cc1plus processes may suddenly use ~1.5GB all at once early on (2+GB + # if debug symbols) then far less for the rest, check minimal jobs*1.5 + local CHECKREQS_MEMORY=$(($(makeopts_jobs)*1500))M + check-reqs_${EBUILD_PHASE_FUNC} +} + +pkg_pretend() { + freeorion_check-reqs +} + +pkg_setup() { + freeorion_check-reqs + python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + sed -i 's/-O3//' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_HEADLESS=$(usex dedicated) + -DBUILD_TESTING=$(usex test) + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile all $(usev doc) +} + +src_test() { + # freeoriond randomly(?) segfaults on exit, cause unknown but + # seems fixed by some refactoring in -9999 (excluding for now) + cmake_src_test -E 'SmokeTest(Game|Hostless)' + + epytest -o cache_dir="${T}"/pytest_cache default/python/tests +} + +src_install() { + local DOCS=( ChangeLog.md README.md ) + cmake_src_install + + use doc && dodoc -r "${BUILD_DIR}"/doc/cpp-apidoc/html + + if use dedicated; then + rm -r "${ED}"/usr/share/freeorion/default/data/fonts || die + else + local font + for font in roboto/Roboto-{Bold,Regular}.ttf dejavu/DejaVuSans{-Bold,}.ttf; do + dosym -r /usr/share/{fonts/${font%/*},${PN}/default/data/fonts}/${font##*/} + done + rm "${ED}"/usr/share/${PN}/default/data/fonts/LICENSE.{Roboto,DejaVu} || die + fi +}