diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-strategy/colobot-data | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-strategy/colobot-data')
-rw-r--r-- | games-strategy/colobot-data/Manifest | 8 | ||||
-rw-r--r-- | games-strategy/colobot-data/colobot-data-0.1.11.ebuild | 54 | ||||
-rw-r--r-- | games-strategy/colobot-data/colobot-data-9999.ebuild | 51 | ||||
-rw-r--r-- | games-strategy/colobot-data/metadata.xml | 16 |
4 files changed, 129 insertions, 0 deletions
diff --git a/games-strategy/colobot-data/Manifest b/games-strategy/colobot-data/Manifest new file mode 100644 index 000000000000..490a1cdd122b --- /dev/null +++ b/games-strategy/colobot-data/Manifest @@ -0,0 +1,8 @@ +DIST colobot-data-0.1.11-music-flac.tar.gz 298829480 BLAKE2B 2a041df82b295433257dd0358b6f83d585cae086a7c1f7e891964a4ffca2e1ca71bb68f7f01160c8dddaeb3b553fcc0082ab746177836d8b9494376a9a9b4451 SHA512 0ab613ea8ca59771b5d93b9c8d96ad88a0fe27f6171be0cb1d6d2eb60b820fdcad83f8fdc5d2f968e8091a6f3e727eb202c4dd09f86afb3eb2e325756eb40873 +DIST colobot-data-0.1.11-music-ogg.tar.gz 55596353 BLAKE2B 63be871fc2000c1cb041658b7395d5175cefc24c81661b366396965951efdadf1cf064211f3f543c4a4b1b7da5bd91db5e397844f1e8771318302c9d80788eb4 SHA512 486d084adc1b28a9fe36c530d261e48a89553c822989f493b0a92dabb9c3435953bda6fe98fcdabc72c6969b5e9be4ff9f3803066f6115fc7740c3de5d183764 +DIST colobot-data-0.1.11.zip 55796087 BLAKE2B 2a1a6fc57bb61423360f89c8bac597754cab872b3154f9b3464bef88555e4dcb9e0296a4b6f85271ef95e71c69d1c31737c8ae3b932a0b64dc8d7cfa8393481b SHA512 2024759af47b4c406325e1d72d119391712ec9d53b4059f3e942e0bd2b3881fdbc9613f79510b9b012cdbc76bebd8a008531da4f94be5d6107887bbcb330417f +DIST colobot-data-9999-music-flac.tar.gz 298829480 BLAKE2B 2a041df82b295433257dd0358b6f83d585cae086a7c1f7e891964a4ffca2e1ca71bb68f7f01160c8dddaeb3b553fcc0082ab746177836d8b9494376a9a9b4451 SHA512 0ab613ea8ca59771b5d93b9c8d96ad88a0fe27f6171be0cb1d6d2eb60b820fdcad83f8fdc5d2f968e8091a6f3e727eb202c4dd09f86afb3eb2e325756eb40873 +DIST colobot-data-9999-music-ogg.tar.gz 3686106 BLAKE2B c1565dbcf1aab0e29014623c924ade2ac1b5da9ae9d9231afe3299dfedab0678c3d222e58665fe3ac60291972b7c2d763437246d7816ca7c16e69766a52e9490 SHA512 2ec22944857ccc5276b93d0da4684bfd9d2a80ac712e3396cb01ccbf21a582c22d525e8af9d12828e224ee948173bffb5e31f664cc9333b79b6f3062dd2466ac +EBUILD colobot-data-0.1.11.ebuild 1417 BLAKE2B e7e337a06bcc0f427ca48686a89b7153b1af7a3a50d20d2dc5c9b7a173d3efd3aa21636af625839673d884431eb8cc46b3425bda2493c2d5b73045f0601c6d52 SHA512 7533d79e52f93510df6c96ff8599d852e8c09b7e6a3f8ecc2d327817d7c3f488314ab797df770a27a558dce480f12c6ef878ade5175d02ce924de25dfbd5763f +EBUILD colobot-data-9999.ebuild 1298 BLAKE2B 2a719b8b29c7d02b569d452baa874506eff9c1140ee44dd239e5777b7c2f1b240da13de87fce3f3692116d17ec84727999fba6ccd354704986e2b9a3ee6f6731 SHA512 8c580974e4bfb3d5a93540cf08b792aa966f934707edacb5825409d88b3133fa2718fac006bf577b4cceb0717e65f0369eda31e2cf4d3c6689d4ed0a29402805 +MISC metadata.xml 517 BLAKE2B 3f7a70c01e3fedb20ce8ae9ea680b5382ac852ed07684348d506c8c402d18a60ed201b314a3f923ac1974d91498543cd68e89460284148bde6876c303706b8d3 SHA512 abf5513f23d51b18ecc3f7c49148734e90eae4d9e3aaf16e35e0837c245313366ec10e2ada0bd5d5f41e4b297f3bb96d1fcf85c26dd812fd83597db1a9379427 diff --git a/games-strategy/colobot-data/colobot-data-0.1.11.ebuild b/games-strategy/colobot-data/colobot-data-0.1.11.ebuild new file mode 100644 index 000000000000..b60210f63c30 --- /dev/null +++ b/games-strategy/colobot-data/colobot-data-0.1.11.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Data package for colobot (Colonize with Bots)" +HOMEPAGE="https://colobot.info/" +SRC_URI=" + https://github.com/colobot/colobot-data/archive/colobot-gold-${PV}-alpha.zip -> ${P}.zip + music_ogg? ( https://colobot.info/files/music/colobot-music_ogg_${PV}-alpha.tar.gz -> ${P}-music-ogg.tar.gz ) + music_flac_convert? ( https://colobot.info/files/music/colobot-music_flac_${PV}-alpha.tar.gz -> ${P}-music-flac.tar.gz )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+music music_flac_convert +music_ogg" +REQUIRED_USE=" + music? ( ^^ ( music_flac_convert music_ogg ) ) + music_flac_convert? ( music ) + music_ogg? ( music )" + +DEPEND=" + app-arch/unzip + music_flac_convert? ( media-sound/vorbis-tools )" + +S="${WORKDIR}/${PN}-colobot-gold-${PV}-alpha" + +src_unpack() { + unpack "${P}.zip" + + cd "${S}" || die + if use music; then + tar xf "${DISTDIR}/${P}"-music-*.tar.gz -C "${S}/music" || die "Failed to unpack music" + fi +} + +src_prepare() { + cmake-utils_src_prepare + + if use music; then + sed -i -e '/find_program(WGET wget)/d' -e '/if(NOT WGET)/,+2 d' music/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + -DMUSIC=$(usex music) + -DMUSIC_FLAC=$(usex music_flac_convert) + -DMUSIC_QUALITY="${COLOBOT_DATA_MUSIC_QUALITY:-4}" + ) + cmake-utils_src_configure +} diff --git a/games-strategy/colobot-data/colobot-data-9999.ebuild b/games-strategy/colobot-data/colobot-data-9999.ebuild new file mode 100644 index 000000000000..63f52ef31b0f --- /dev/null +++ b/games-strategy/colobot-data/colobot-data-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGIT_REPO_URI="https://github.com/colobot/colobot-data" + +inherit git-r3 cmake-utils + +DESCRIPTION="Data package for colobot (Colonize with Bots)" +HOMEPAGE="https://colobot.info/" +SRC_URI=" + music_ogg? ( https://colobot.info/files/music/colobot-music_ogg_latest.tar.gz -> ${P}-music-ogg.tar.gz ) + music_flac_convert? ( https://colobot.info/files/music/colobot-music_flac_latest.tar.gz -> ${P}-music-flac.tar.gz )" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+music music_flac_convert +music_ogg" +REQUIRED_USE=" + music? ( ^^ ( music_flac_convert music_ogg ) ) + music_flac_convert? ( music ) + music_ogg? ( music )" + +DEPEND=" + app-arch/unzip + music_flac_convert? ( media-sound/vorbis-tools )" + +src_unpack() { + git-r3_src_unpack + + if use music; then + tar xf "${DISTDIR}/${P}"-music-*.tar.gz -C "${S}/music" || die "Failed to unpack music" + fi +} + +src_prepare() { + cmake-utils_src_prepare + + if use music; then + sed -i -e '/find_program(WGET wget)/d' -e '/if(NOT WGET)/,+2 d' music/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + -DMUSIC=$(usex music) + -DMUSIC_FLAC=$(usex music_flac_convert) + -DMUSIC_QUALITY="${COLOBOT_DATA_MUSIC_QUALITY:-4}" + ) + cmake-utils_src_configure +} diff --git a/games-strategy/colobot-data/metadata.xml b/games-strategy/colobot-data/metadata.xml new file mode 100644 index 000000000000..f19541007ed9 --- /dev/null +++ b/games-strategy/colobot-data/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fdsfgs@krutt.org</email> + <name>soredake</name> + </maintainer> + <upstream> + <remote-id type="github">colobot/colobot-data</remote-id> + </upstream> + <use> + <flag name="music">Enable music support</flag> + <flag name="music_flac_convert">Fetch flac music and convert it to ogg</flag> + <flag name="music_ogg">Fetch ogg music</flag> + </use> +</pkgmetadata> |