commit:     92bae7433a82f1a2905008b1d67d8e58d7eef0aa
Author:     Nils Freydank <holgersson <AT> posteo <DOT> de>
AuthorDate: Wed May 10 19:40:39 2017 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed May 10 19:41:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92bae743

games-fps/urbanterror-data: initial import, split out of games-fps/urbanterror

Link: https://github.com/gentoo/gentoo/pull/4172

Package-Manager: Portage-2.3.5, Repoman-2.3.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 games-fps/urbanterror-data/Manifest                |  4 ++
 games-fps/urbanterror-data/metadata.xml            | 16 ++++++
 .../urbanterror-data/urbanterror-data-4.3.2.ebuild | 64 ++++++++++++++++++++++
 3 files changed, 84 insertions(+)

diff --git a/games-fps/urbanterror-data/Manifest 
b/games-fps/urbanterror-data/Manifest
new file mode 100644
index 00000000000..66c107a688c
--- /dev/null
+++ b/games-fps/urbanterror-data/Manifest
@@ -0,0 +1,4 @@
+DIST urbanterror-data-4.3.0-to-4.3.1.zip 7495315 SHA256 
943fbae28a32f8f7a15eba62eadad646f4640d8d1814e3fb14fac0c50bb513e0 SHA512 
f05564babadff73793778926411bc7914bfef4a5f7dfc1003c36e8a549c568ab520adcff8a38e7dd905238738d242aa865e7c6d7db36ed6d592b144e497ed823
 WHIRLPOOL 
b262f51ca35455c013ae5f61e87d5c13a1ac9c5f98eba588398f8ad1db02a9aa505531a08d680770822d57c9df244a532be3ee2cc2dfb224afa8119d5eb5ec45
+DIST urbanterror-data-4.3.1-to-4.3.2.zip 15305498 SHA256 
519d212c8766470c2970c75f19e99477a8c2546ca4de78bc28dedce8d2fcabb5 SHA512 
cb24939fffef9310c6ca8496d0d4f3be8656685e749ff1d6589fd193990be67ac70494b61ef6a12dd1f6995a78d451b9f09098e03970e82e1e3153ec3f89792c
 WHIRLPOOL 
d58d949075a9228d832a67507c30942133a2024c131c0127a263ab1b5a5550576f361565ab8df6ef8b8f3e5f898496fa84b0d845cc47d22f491a04bf88b2623d
+DIST urbanterror-data-4.3.2.zip 1491207564 SHA256 
60360806aea9bd383d8a95b8586fe8d8690626b130e907f8727845fd192531bc SHA512 
397aa5ba7f869049844d52a9dec234d020b856e16ba3ff295d97775e4e1d48730aecfba3992baf7d55c643c0073ceda32ada18d1473dadd55f561f27a8b9c4ed
 WHIRLPOOL 
52782d0d6668589c5353a7e73ae6dd4ec02a02361532c36889a4b5f3c53d740bece8d9f421c6faeb9c720e6b68dbbccf1758cb39f7b82239a6517c7b0451c4a2
+DIST urbanterror-data.svg 1592 SHA256 
0d7eb12a8fe8380e0d89199621414dd56ecdfe8a8b99eec5b95d925294521de9 SHA512 
ff789b35d9b1a2282485495b0d1918c7169906aeac094e7a33c7d77cd51d4787733400e1b9851ce19b38e886508d5fdd09f6cfc96b37a5b41bd0cf403e456b98
 WHIRLPOOL 
281413cfeb881466c2d8b882d0aa4dcf19013630a462775345c69e78a0cb86c7efed14f5d22b453c89648da682ab5e98e3579a1c975994a8e90b9fb22c37892c

diff --git a/games-fps/urbanterror-data/metadata.xml 
b/games-fps/urbanterror-data/metadata.xml
new file mode 100644
index 00000000000..866bc44b982
--- /dev/null
+++ b/games-fps/urbanterror-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>holgers...@posteo.de</email>
+               <name>Nils Freydank</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>ga...@gentoo.org</email>
+               <name>Gentoo Games Project</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild 
b/games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild
new file mode 100644
index 00000000000..5f763018396
--- /dev/null
+++ b/games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit check-reqs eutils
+
+ENGINE_PV=${PV}
+
+MY_PN=UrbanTerror
+MY_PV=43_full
+
+DESCRIPTION="Data files for UrbanTerror"
+HOMEPAGE="http://www.urbanterror.info/home/";
+SRC_URI="https://up.barbatos.fr/urt/${MY_PN}${MY_PV}.zip -> ${P}.zip
+       https://upload.wikimedia.org/wikipedia/commons/5/56/Urbanterror.svg -> 
${PN}.svg"
+
+# fetch updates recursively for |4.3.x-4.3.0|
+if [[ "${PV}" != "4.3.0" ]]; then
+       MY_CTR=0
+       while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
+               SRC_URI="${SRC_URI} 
https://up.barbatos.fr/urt/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 
)).zip -> ${PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip"
+               MY_CTR=$(( ${MY_CTR} + 1 ))
+       done
+fi
+unset MY_CTR
+
+LICENSE="Q3AEULA-20000111 urbanterror-4.2-maps"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}43"
+
+CHECKREQS_DISK_BUILD="3300M"
+CHECKREQS_DISK_USR="1400M"
+
+src_prepare() {
+       default
+
+       # apply updates we fetched before
+       # again recursively for |4.3.x - 4.3.0|
+       local MY_CTR
+       if [[ "${PV}" != "4.3.0" ]]; then
+               MY_CTR=0
+               while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
+                       cp -dfpr \
+                               "${WORKDIR}"/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( 
${MY_CTR} + 1 ))/* "${S}"
+                       MY_CTR=$(( ${MY_CTR} + 1 ))
+               done
+       fi
+}
+
+src_install() {
+       newicon -s scalable "${DISTDIR}"/${PN}.svg urbanterror.svg
+       insinto /usr/share/urbanterror/q3ut4
+       doins q3ut4/*.pk3
+       # These files are *essential* for startup
+       newins q3ut4/server_example.cfg server.cfg
+       newins q3ut4/autoexec_example.cfg autoexec.cfg
+
+       dodoc q3ut4/readme43.txt
+       docinto examples
+       dodoc q3ut4/{server_example.cfg,mapcycle_example.txt}
+}

Reply via email to