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 11F2615802F for ; Sat, 11 Mar 2023 16:26:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA284E0894; Sat, 11 Mar 2023 16:26:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 B88EEE0894 for ; Sat, 11 Mar 2023 16:26:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 E366C335D42 for ; Sat, 11 Mar 2023 16:26:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6621E8E3 for ; Sat, 11 Mar 2023 16:26:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1678551844.7b87e3bb73ba5cae37fc725595d48161bca0def9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/hedgewars/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-strategy/hedgewars/Manifest games-strategy/hedgewars/hedgewars-1.0.2.ebuild games-strategy/hedgewars/metadata.xml X-VCS-Directories: games-strategy/hedgewars/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7b87e3bb73ba5cae37fc725595d48161bca0def9 X-VCS-Branch: master Date: Sat, 11 Mar 2023 16:26:40 +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: 3535c05a-c08e-42c8-8960-b1ff767384e4 X-Archives-Hash: 2118602d2bfbb95ee8392a57c927c71b commit: 7b87e3bb73ba5cae37fc725595d48161bca0def9 Author: Alexander Tsoy tsoy me> AuthorDate: Mon Oct 24 00:01:22 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 11 16:24:04 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b87e3bb games-strategy/hedgewars: version bump to 1.0.2 Also bring back USE=server Signed-off-by: Alexander Tsoy tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/27924 Signed-off-by: Sam James gentoo.org> games-strategy/hedgewars/Manifest | 1 + games-strategy/hedgewars/hedgewars-1.0.2.ebuild | 112 ++++++++++++++++++++++++ games-strategy/hedgewars/metadata.xml | 3 + 3 files changed, 116 insertions(+) diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest index 71168ed483b4..d4427c98fb17 100644 --- a/games-strategy/hedgewars/Manifest +++ b/games-strategy/hedgewars/Manifest @@ -1 +1,2 @@ DIST hedgewars-src-1.0.0.tar.bz2 177668452 BLAKE2B cbd99a4403b911023fb4a522ed1ed04272f07705321585b0e7a8f56785ef11bf8c654df95016b0af94f603c387f73804cbd95e13a92e875990adf5fec149e334 SHA512 9aeb904550239040a878a0e7ae5006aa4d824124b61d813b9e6f6dfe1bd1c8f5fe395e0fd6e58d685ef1259abd4669e03b985be129c620be15f6e5ad82519ec2 +DIST hedgewars-src-1.0.2.tar.bz2 177564706 BLAKE2B 3644209cc42443b845d6a4497ba6ca8f34ffe249b99ac0ca26e5fcb5e86a0e705389e3b6db75d16b671cd2c899cecef2b6065d1755dfaab0860a6eb4c6ddb099 SHA512 dc79cc48eee305d8dd2b64fcbfe598d48f8aec918d9065a6af4aef9be4e4940ad858836fc6bda46e02128b80dbba8c443a4f8a702a16b0ac969f8d0a0e080502 diff --git a/games-strategy/hedgewars/hedgewars-1.0.2.ebuild b/games-strategy/hedgewars/hedgewars-1.0.2.ebuild new file mode 100644 index 000000000000..d0ddc1cfbea0 --- /dev/null +++ b/games-strategy/hedgewars/hedgewars-1.0.2.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR=emake +LUA_COMPAT=( lua5-1 ) + +inherit cmake lua-single xdg-utils + +MY_P=${PN}-src-${PV} + +DESCRIPTION="A turn-based strategy, artillery, action and comedy game" +HOMEPAGE="https://www.hedgewars.org/" +SRC_URI="https://www.hedgewars.org/download/releases/${MY_P}.tar.bz2" + +LICENSE="GPL-2 Apache-2.0 FDL-1.3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="server" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +QA_FLAGS_IGNORED="/usr/bin/hwengine" # pascal sucks +QA_PRESTRIPPED="/usr/bin/hwengine" # pascal sucks + +# qtcore:5= - depends on private header +DEPEND="${LUA_DEPS} + >=dev-games/physfs-3.0.1 + dev-qt/qtcore:5= + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + media-libs/libpng:0= + media-libs/libsdl2:= + media-libs/sdl2-image:= + media-libs/sdl2-mixer:=[vorbis] + media-libs/sdl2-net:= + media-libs/sdl2-ttf:= + sys-libs/zlib + !x86? ( media-video/ffmpeg:= ) + " +RDEPEND="${DEPEND} + app-arch/xz-utils + >=media-fonts/dejavu-2.28 + media-fonts/wqy-zenhei" +BDEPEND=" + dev-qt/linguist-tools:5 + server? ( + >=dev-lang/ghc-6.10 + dev-haskell/entropy + dev-haskell/hslogger + >=dev-haskell/mtl-2 + >=dev-haskell/network-2.3 + dev-haskell/random + dev-haskell/regex-tdfa + dev-haskell/sandi + dev-haskell/sha + dev-haskell/vector + dev-haskell/utf8-string + dev-haskell/yaml + >=dev-haskell/zlib-0.5.3 + ) + !x86? ( >=dev-lang/fpc-2.4 ) + x86? ( + >=dev-lang/ghc-6.10 + dev-haskell/parsec + )" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.0-qt-5.15.patch" + "${FILESDIR}/${PN}-1.0.0-cmake_lua_version.patch" +) + +S="${WORKDIR}"/${MY_P} + +src_configure() { + local mycmakeargs=( + -DMINIMAL_FLAGS=ON + -DDATA_INSTALL_DIR="${EPREFIX}/usr/share/${PN}" + -Dtarget_binary_install_dir="${EPREFIX}/usr/bin" + -Dtarget_library_install_dir="${EPREFIX}/usr/$(get_libdir)" + -DNOSERVER=$(usex !server) + -DBUILD_ENGINE_C=$(usex x86) + -DNOVIDEOREC=$(usex !x86) + -DCMAKE_VERBOSE_MAKEFILE=TRUE + # Need to tell the build system where the fonts are located + # as it uses PhysFS' symbolic link protection mode which + # prevents us from symlinking the fonts into the right directory + # https://hg.hedgewars.org/hedgewars/rev/76ad55807c24 + # https://icculus.org/physfs/docs/html/physfs_8h.html#aad451d9b3f46f627a1be8caee2eef9b7 + -DFONTS_DIRS="${EPREFIX}/usr/share/fonts/wqy-zenhei;${EPREFIX}/usr/share/fonts/dejavu" + # upstream sets RPATH that leads to weird breakage + # https://bugzilla.redhat.com/show_bug.cgi?id=1200193 + -DCMAKE_SKIP_RPATH=ON + -DLUA_VERSION=$(lua_get_version) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + doman man/${PN}.6 +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} diff --git a/games-strategy/hedgewars/metadata.xml b/games-strategy/hedgewars/metadata.xml index 1c3ba213c494..8beda0c43150 100644 --- a/games-strategy/hedgewars/metadata.xml +++ b/games-strategy/hedgewars/metadata.xml @@ -5,4 +5,7 @@ games@gentoo.org Gentoo Games Project + + Enable local server +