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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 38872138335 for ; Mon, 14 Oct 2019 13:59:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46E08E0897; Mon, 14 Oct 2019 13:59:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C3B4E0897 for ; Mon, 14 Oct 2019 13:59:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F21AA34BCFD for ; Mon, 14 Oct 2019 13:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0648A8 for ; Mon, 14 Oct 2019 13:59:48 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1571061583.3f7f93463f2725ef8d00b28397d27244b3229ea4.polynomial-c@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.0.ebuild X-VCS-Directories: games-strategy/hedgewars/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 3f7f93463f2725ef8d00b28397d27244b3229ea4 X-VCS-Branch: master Date: Mon, 14 Oct 2019 13:59:48 +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: 95f1c7d1-8e3c-4683-941f-ee106dc0fcce X-Archives-Hash: e39cde7ca98daa9ac28c206e551ed57c commit: 3f7f93463f2725ef8d00b28397d27244b3229ea4 Author: Lars Wendler gentoo org> AuthorDate: Mon Oct 14 13:47:44 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Oct 14 13:59:43 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7f9346 games-strategy/hedgewars: Bump to version 1.0.0 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Lars Wendler gentoo.org> games-strategy/hedgewars/Manifest | 1 + games-strategy/hedgewars/hedgewars-1.0.0.ebuild | 111 ++++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest index 9a8719b1dbf..83790d60101 100644 --- a/games-strategy/hedgewars/Manifest +++ b/games-strategy/hedgewars/Manifest @@ -1,2 +1,3 @@ DIST hedgewars-src-0.9.25.tar.bz2 175276967 BLAKE2B 8f0779ca05ffbf18f607716bbec03bf0d6633cd6c3594bcb94b78ba606ed8c36d418d7b5456574cc0a08489e143d2390ed7ebcc8637e7987231ba04c0d5b5331 SHA512 956c21a7203586485e885f98fa4eccdc2fd34b50c0f817c1f6f610af1b4f341a5bb32bb8e0ace13f78ce2fb79a489000034b89c1b56459a411c07a1809041968 +DIST hedgewars-src-1.0.0.tar.bz2 177668452 BLAKE2B cbd99a4403b911023fb4a522ed1ed04272f07705321585b0e7a8f56785ef11bf8c654df95016b0af94f603c387f73804cbd95e13a92e875990adf5fec149e334 SHA512 9aeb904550239040a878a0e7ae5006aa4d824124b61d813b9e6f6dfe1bd1c8f5fe395e0fd6e58d685ef1259abd4669e03b985be129c620be15f6e5ad82519ec2 DIST hedgewars_0.9.23-dfsg-2.debian.tar.xz 77488 BLAKE2B 5de6fa2ad91f1346f679d07b3b445bd119d2cdd3c715ace20fc36abe726330ccf9a9b69ec56c58cfca4cc6256ff248b0cc0b0e27caf2a79df0f1662ea7727e8e SHA512 03680446930279178ddff85a87fc27b7c26ad6d850c8f26571517ebbd6dff296db216da6b56d4bd55c659786bc5c76e2b67a63052ee38e150655e60c08f7c491 diff --git a/games-strategy/hedgewars/hedgewars-1.0.0.ebuild b/games-strategy/hedgewars/hedgewars-1.0.0.ebuild new file mode 100644 index 00000000000..c98f3a05e5d --- /dev/null +++ b/games-strategy/hedgewars/hedgewars-1.0.0.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake-utils xdg-utils + +MY_P=${PN}-src-${PV} +DEB_PATCH_VER=2 + +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 + mirror://debian/pool/main/h/${PN}/${PN}_0.9.23-dfsg-${DEB_PATCH_VER}.debian.tar.xz" + +LICENSE="GPL-2 Apache-2.0 FDL-1.3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libav server" + +QA_FLAGS_IGNORED="/usr/bin/hwengine" # pascal sucks +QA_PRESTRIPPED="/usr/bin/hwengine" # pascal sucks + +# qtcore:5= - depends on private header +DEPEND=" + >=dev-games/physfs-3.0.1 + dev-lang/lua:0= + 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? ( + libav? ( media-video/libav:= ) + !libav? ( 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 =dev-lang/fpc-2.4 ) + x86? ( + >=dev-lang/ghc-6.10 + dev-haskell/parsec + )" + +S="${WORKDIR}"/${MY_P} + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.22-rpath-fix.patch +) + +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 + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + doman man/${PN}.6 +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +}