commit: 98a98e1f93036e70c7a1e5cc9636dfba8ad14164 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Dec 24 07:02:18 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Dec 24 11:17:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98a98e1f
games-strategy/colobot: Bump to 0.2.2_alpha Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> games-strategy/colobot/Manifest | 1 + games-strategy/colobot/colobot-0.2.2_alpha.ebuild | 79 +++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/games-strategy/colobot/Manifest b/games-strategy/colobot/Manifest index 8f295403be8b..10ca311d611d 100644 --- a/games-strategy/colobot/Manifest +++ b/games-strategy/colobot/Manifest @@ -1 +1,2 @@ DIST colobot-gold-0.2.1-alpha.tar.gz 1331366 BLAKE2B a4ff7eb10514b829a066654d6800cdf4ddf7c3331c60e8a552b78feb9e153bf666d1a16395be58e3093c98fc2caad8145fd436f66f5afc6b9f9c5d91e9094700 SHA512 cdfe410b30a89bd98513347ba64bbd0569d9f9f9227b063bf99c86101a099de0893b24c2d2e85e718ec0e64e0e428fb6dbdbf88d35f814d99ed31a7f3632f9cd +DIST colobot-gold-0.2.2-alpha.tar.gz 1331553 BLAKE2B b5ecd612100175f0b61685d81e49d9cdaeb2f0bd1f3aaf5e3af0e9918f7ad392388e2aca293bf9117f68dbb6c22bbde1005efdfcf73fe58b1b93f10dbb08fb3a SHA512 55ce83e42ae8847bbb32bf2bb2d86818218277d4ae114753f9087852b9f8152eae666d9ae14b97ee542e860753b99821b0975150ab6c36280c588e3a5439cb17 diff --git a/games-strategy/colobot/colobot-0.2.2_alpha.ebuild b/games-strategy/colobot/colobot-0.2.2_alpha.ebuild new file mode 100644 index 000000000000..bd5f177989af --- /dev/null +++ b/games-strategy/colobot/colobot-0.2.2_alpha.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/ + https://github.com/colobot/colobot/ +" +SRC_URI="https://github.com/colobot/colobot/archive/${MY_P}.tar.gz" +S=${WORKDIR}/${PN}-${MY_P} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="devbuild doc +openal test tools" +RESTRICT="!test? ( test )" + +# perl for pod2man +BDEPEND=" + app-text/po4a + app-text/xmlstarlet + 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} +" +DEPEND+=" + test? ( dev-cpp/gtest ) +" + +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 +}