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 69E201580B9 for ; Sun, 22 Aug 2021 06:46:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B840E0802; Sun, 22 Aug 2021 06:46:00 +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 6A6A3E0802 for ; Sun, 22 Aug 2021 06:45:59 +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 29D85335D97 for ; Sun, 22 Aug 2021 06:45:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 745F18C6 for ; Sun, 22 Aug 2021 06:45:56 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1629614727.c392566ae167b0792b8a6ab26615886f974f4bee.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/colobot/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-strategy/colobot/Manifest games-strategy/colobot/colobot-0.2.0_alpha.ebuild X-VCS-Directories: games-strategy/colobot/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c392566ae167b0792b8a6ab26615886f974f4bee X-VCS-Branch: master Date: Sun, 22 Aug 2021 06:45:56 +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: 0ee2bfb9-c6a7-4aff-b0a4-2ef16073927b X-Archives-Hash: 52b1babe25e24d7b76e8ef673834fcf3 commit: c392566ae167b0792b8a6ab26615886f974f4bee Author: Michał Górny gentoo org> AuthorDate: Sun Aug 22 06:36:31 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Aug 22 06:45:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c392566a games-strategy/colobot: Bump to 0.2.0-alpha Signed-off-by: Michał Górny gentoo.org> games-strategy/colobot/Manifest | 1 + games-strategy/colobot/colobot-0.2.0_alpha.ebuild | 73 +++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/games-strategy/colobot/Manifest b/games-strategy/colobot/Manifest index 7d725fdff60..980ba6938fa 100644 --- a/games-strategy/colobot/Manifest +++ b/games-strategy/colobot/Manifest @@ -1 +1,2 @@ DIST colobot-gold-0.1.12-alpha.tar.gz 1468594 BLAKE2B 2b470e8b074e4a973b751062dca2358396066d8816c2b1b5b44649b798610dccd73ab5fed4086f2aa8d4495f3de69dd8b72b45f97f23f66b18a50fc976bf25ef SHA512 63647a16b376db6544830f96e7d323c0f58003645bf636abd1cab0ffd47b39b0bef47191d584f5156b75324d75dfdfdcabe8b89be565087c37c367ca366f3cbe +DIST colobot-gold-0.2.0-alpha.tar.gz 1514455 BLAKE2B 9cc1480d342cfa14b12e437c41ce8e65b173cd30ca5f62e574ac17f452e6cd0622b5c2706fcfd427222cf78fce1700cb07b82fac75dd9b4a3ace4389ea3381bc SHA512 9c35ce6da319ef20ff68a9722f0b683adaa2fcada2b89bb322ba5772dfd9371adacd045ae160550780083902c024400c29e1d1f11dcb8b6547ba7d48e401c4c3 diff --git a/games-strategy/colobot/colobot-0.2.0_alpha.ebuild b/games-strategy/colobot/colobot-0.2.0_alpha.ebuild new file mode 100644 index 00000000000..3897d69816c --- /dev/null +++ b/games-strategy/colobot/colobot-0.2.0_alpha.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg-utils + +MY_P=colobot-gold-${PV/_/-} +DESCRIPTION="A real-time strategy game, where you can program your bots" +HOMEPAGE="https://colobot.info/" +SRC_URI="https://github.com/colobot/colobot/archive/${MY_P}.tar.gz" +S=${WORKDIR}/${PN}-${MY_P} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="devbuild doc +openal test tools" +RESTRICT="!test? ( test )" + +# perl for pod2man +BDEPEND=" + app-text/po4a + dev-lang/perl + sys-devel/gettext" +DEPEND=" + dev-games/physfs + dev-libs/boost:= + media-libs/glew:0 + media-libs/libogg + media-libs/libpng:0= + media-libs/libsdl2:= + media-libs/libsndfile:= + media-libs/libvorbis:= + media-libs/sdl2-image + media-libs/sdl2-ttf + media-sound/vorbis-tools + openal? ( media-libs/openal )" +RDEPEND="${DEPEND} + ~games-strategy/colobot-data-${PV}" + +PATCHES=( + # https://github.com/colobot/colobot/pull/1453 + "${FILESDIR}"/colobot-0.1.12-sndfile-link.patch +) + +src_prepare() { + cmake_src_prepare + + # we need to call it explicitly to help Ninja figure out the deps + cd desktop || die + po4a po4a.cfg || die +} + +src_configure() { + local mycmakeargs=( + -DDEV_BUILD=$(usex devbuild) + -DTESTS=$(usex test) + -DTOOLS=$(usex tools) + -DINSTALL_DOCS=$(usex doc) + -DOPENAL_SOUND=$(usex openal) + -DCOLOBOT_INSTALL_BIN_DIR="${EPREFIX}"/usr/bin + -DCOLOBOT_INSTALL_LIB_DIR="${EPREFIX}"/usr/$(get_libdir) + ) + cmake_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}