[games-fps/urbanterror{,-data}] Import updated, improved and fixed ebuilds.
This commit is contained in:
parent
db01317a3a
commit
8a2b9473dc
@ -1,4 +1,4 @@
|
||||
DIST UrbanTerror-4.3.0-to-4.3.1.zip 7495315 SHA256 943fbae28a32f8f7a15eba62eadad646f4640d8d1814e3fb14fac0c50bb513e0 SHA512 f05564babadff73793778926411bc7914bfef4a5f7dfc1003c36e8a549c568ab520adcff8a38e7dd905238738d242aa865e7c6d7db36ed6d592b144e497ed823 WHIRLPOOL b262f51ca35455c013ae5f61e87d5c13a1ac9c5f98eba588398f8ad1db02a9aa505531a08d680770822d57c9df244a532be3ee2cc2dfb224afa8119d5eb5ec45
|
||||
DIST UrbanTerror-4.3.1-to-4.3.2.zip 15305498 SHA256 519d212c8766470c2970c75f19e99477a8c2546ca4de78bc28dedce8d2fcabb5 SHA512 cb24939fffef9310c6ca8496d0d4f3be8656685e749ff1d6589fd193990be67ac70494b61ef6a12dd1f6995a78d451b9f09098e03970e82e1e3153ec3f89792c WHIRLPOOL d58d949075a9228d832a67507c30942133a2024c131c0127a263ab1b5a5550576f361565ab8df6ef8b8f3e5f898496fa84b0d845cc47d22f491a04bf88b2623d
|
||||
DIST UrbanTerror43_full.zip 1491207564 SHA256 60360806aea9bd383d8a95b8586fe8d8690626b130e907f8727845fd192531bc SHA512 397aa5ba7f869049844d52a9dec234d020b856e16ba3ff295d97775e4e1d48730aecfba3992baf7d55c643c0073ceda32ada18d1473dadd55f561f27a8b9c4ed WHIRLPOOL 52782d0d6668589c5353a7e73ae6dd4ec02a02361532c36889a4b5f3c53d740bece8d9f421c6faeb9c720e6b68dbbccf1758cb39f7b82239a6517c7b0451c4a2
|
||||
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
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI="6"
|
||||
inherit check-reqs eutils
|
||||
|
||||
ENGINE_PV=${PV}
|
||||
@ -11,14 +11,14 @@ 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
|
||||
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"
|
||||
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
|
||||
@ -27,7 +27,6 @@ unset MY_CTR
|
||||
LICENSE="Q3AEULA-20000111 urbanterror-4.2-maps"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="mirror"
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}43"
|
||||
@ -44,7 +43,7 @@ src_prepare() {
|
||||
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}"
|
||||
"${WORKDIR}"/${PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 ))/* "${S}"
|
||||
MY_CTR=$(( ${MY_CTR} + 1 ))
|
||||
done
|
||||
fi
|
||||
|
@ -1 +1 @@
|
||||
DIST urbanterror-4.3.2_p20170429.tar.gz 10058308 SHA256 8009516332e1f77eae3681b436e099fdd42ffa55d2691694eedc0ca94b194878 SHA512 e8107ab44fdb40bc14a548239185905a01120bbe960b8713e5959df18330fd845761350c5e8e5efd5fbfec10ad62ff9fef68420406cc4cfbe2af69ee66eff1f3 WHIRLPOOL 6aac15e44b0695501195ae172133f4b6788b9dffa5442af20d11626ad27ffd597c7f070c0fb95b0e0e8b8b3d6cf0e1bfc40b0a16abaa27c8f932ee90f19a1824
|
||||
DIST urbanterror-4.3.2_p20170426.tar.gz 10058308 SHA256 8009516332e1f77eae3681b436e099fdd42ffa55d2691694eedc0ca94b194878 SHA512 e8107ab44fdb40bc14a548239185905a01120bbe960b8713e5959df18330fd845761350c5e8e5efd5fbfec10ad62ff9fef68420406cc4cfbe2af69ee66eff1f3 WHIRLPOOL 6aac15e44b0695501195ae172133f4b6788b9dffa5442af20d11626ad27ffd597c7f070c0fb95b0e0e8b8b3d6cf0e1bfc40b0a16abaa27c8f932ee90f19a1824
|
||||
|
@ -1,50 +1,55 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI="6"
|
||||
inherit flag-o-matic gnome2-utils
|
||||
|
||||
DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
|
||||
HOMEPAGE="http://urbanterror.info"
|
||||
|
||||
COMMIT_ID="60b17a27ecaa30bffc44114cb94df82af7febfdd"
|
||||
SRC_URI="https://github.com/holgersson32644/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/mickael9/ioq3.git"
|
||||
EGIT_BRANCH="urt"
|
||||
KEYWORDS=""
|
||||
|
||||
S="${WORKDIR}/ioq3-${COMMIT_ID}"
|
||||
else
|
||||
COMMIT_ID="60b17a27ecaa30bffc44114cb94df82af7febfdd"
|
||||
SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/ioq3-${COMMIT_ID}"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="+altgamma +client +curl debug mumble openal +opus server +sdl voip vorbis"
|
||||
IUSE="+altgamma +client +curl debug mumble openal +opus server voip vorbis"
|
||||
REQUIRED_USE=" || ( client server )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-respect_CFLAGS.patch )
|
||||
|
||||
RDEPEND="
|
||||
curl? ( net-misc/curl )
|
||||
client? (
|
||||
virtual/opengl
|
||||
media-libs/libsdl2[X,sound,joystick,opengl,video]
|
||||
mumble? ( media-sound/mumble )
|
||||
openal? ( media-libs/openal )
|
||||
sdl? ( media-libs/libsdl[X,sound,joystick,opengl,video] )
|
||||
!sdl? ( x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86dga
|
||||
x11-libs/libXxf86vm )
|
||||
opus? ( media-libs/opusfile )
|
||||
|
||||
vorbis? ( media-libs/libogg
|
||||
media-libs/libvorbis )
|
||||
opus? ( media-libs/opusfile )
|
||||
mumble? ( media-sound/mumble )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
~games-fps/urbanterror-data-4.3.2
|
||||
sys-libs/zlib[minizip]"
|
||||
sys-libs/zlib[minizip]
|
||||
virtual/jpeg:0"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_pretend() {
|
||||
if use client; then
|
||||
if ! use openal && ! use opus && ! use vorbis; then
|
||||
ewarn
|
||||
ewarn "Sound support disabled. Enable 'openal' or 'opus' or 'vorbis' useflag."
|
||||
ewarn
|
||||
ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@ -52,7 +57,7 @@ pkg_pretend() {
|
||||
src_compile() {
|
||||
buildit() { use $1 && echo 1 || echo 0 ; }
|
||||
nobuildit() { use $1 && echo 0 || echo 1 ; }
|
||||
# unbundle zlib as much as possible
|
||||
# Workaround for used zlib macro, wrt bug #44951
|
||||
append-flags "-DOF=_Z_OF"
|
||||
emake \
|
||||
ARCH=$(usex amd64 "x86_64" "i386") \
|
||||
@ -70,8 +75,6 @@ src_compile() {
|
||||
USE_YACC=0 \
|
||||
BASEGAME="q3ut4"\
|
||||
BASEGAME_CFLAGS="${CFLAGS}" \
|
||||
USE_SDL=$(buildit sdl) \
|
||||
USE_SDL_DLOPEN=$(buildit sdl) \
|
||||
USE_OPENAL=$(buildit openal) \
|
||||
USE_OPENAL_DLOPEN=$(buildit openal) \
|
||||
USE_CURL=$(buildit curl) \
|
||||
@ -87,6 +90,7 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
local my_arch=$(usex amd64 "x86_64" "i386")
|
||||
|
||||
# docs from ioq3, not from UrbanTerror ZIP file
|
||||
dodoc ChangeLog README.md README.ioq3.md md4-readme.txt
|
||||
|
||||
@ -96,47 +100,49 @@ src_install() {
|
||||
make_desktop_entry ${PN} "UrbanTerror" ${PN}
|
||||
fi
|
||||
|
||||
# means: dedicated server only
|
||||
if use server && ! use client; then
|
||||
# dedicated server only
|
||||
newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
use client && gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use client && gnome2_icon_cache_update
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
if use openal; then
|
||||
einfo
|
||||
elog
|
||||
elog ""
|
||||
elog "You might need to set:"
|
||||
elog " seta s_useopenal \"1\""
|
||||
elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
|
||||
einfo
|
||||
fi
|
||||
if use altgamma; then
|
||||
einfo
|
||||
elog
|
||||
elog ""
|
||||
elog "You might need to set:"
|
||||
elog " seta r_altgamma \"1\""
|
||||
elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
|
||||
einfo
|
||||
fi
|
||||
|
||||
if ! use altgamma; then
|
||||
einfo
|
||||
elog
|
||||
elog ""
|
||||
elog "If you are using a modesetting graphics driver you might"
|
||||
elog "consider setting USE=\"altgamma\"."
|
||||
elog "For details take a look on:"
|
||||
elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
|
||||
einfo
|
||||
fi
|
||||
if ! use client; then
|
||||
einfo
|
||||
elog
|
||||
elog "You disabled client support. You won't be able to connect"
|
||||
elog "to any servers and play. If you want to do so, enable"
|
||||
elog "USE=\"client\"."
|
||||
einfo
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1,47 +1,55 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit flag-o-matic git-r3 gnome2-utils
|
||||
EAPI="6"
|
||||
inherit flag-o-matic gnome2-utils
|
||||
|
||||
DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
|
||||
HOMEPAGE="http://urbanterror.info"
|
||||
EGIT_REPO_URI="https://github.com/holgersson32644/ioq3.git"
|
||||
EGIT_BRANCH="urt"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/mickael9/ioq3.git"
|
||||
EGIT_BRANCH="urt"
|
||||
KEYWORDS=""
|
||||
|
||||
else
|
||||
COMMIT_ID="60b17a27ecaa30bffc44114cb94df82af7febfdd"
|
||||
SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/ioq3-${COMMIT_ID}"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="+altgamma +client +curl debug mumble openal +opus server +sdl voip vorbis"
|
||||
IUSE="+altgamma +client +curl debug mumble openal +opus server voip vorbis"
|
||||
REQUIRED_USE=" || ( client server )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-respect_CFLAGS.patch )
|
||||
|
||||
RDEPEND="
|
||||
curl? ( net-misc/curl )
|
||||
client? (
|
||||
virtual/opengl
|
||||
media-libs/libsdl2[X,sound,joystick,opengl,video]
|
||||
mumble? ( media-sound/mumble )
|
||||
openal? ( media-libs/openal )
|
||||
sdl? ( media-libs/libsdl[X,sound,joystick,opengl,video] )
|
||||
!sdl? ( x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86dga
|
||||
x11-libs/libXxf86vm )
|
||||
opus? ( media-libs/opusfile )
|
||||
|
||||
vorbis? ( media-libs/libogg
|
||||
media-libs/libvorbis )
|
||||
opus? ( media-libs/opusfile )
|
||||
mumble? ( media-sound/mumble )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
~games-fps/urbanterror-data-4.3.2
|
||||
sys-libs/zlib[minizip]"
|
||||
sys-libs/zlib[minizip]
|
||||
virtual/jpeg:0"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_pretend() {
|
||||
if use client; then
|
||||
if ! use openal && ! use opus && ! use vorbis; then
|
||||
ewarn
|
||||
ewarn "Sound support disabled. Enable 'openal' or 'opus' or 'vorbis' useflag."
|
||||
ewarn
|
||||
ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@ -49,7 +57,7 @@ pkg_pretend() {
|
||||
src_compile() {
|
||||
buildit() { use $1 && echo 1 || echo 0 ; }
|
||||
nobuildit() { use $1 && echo 0 || echo 1 ; }
|
||||
# unbundle zlib as much as possible
|
||||
# Workaround for used zlib macro, wrt bug #44951
|
||||
append-flags "-DOF=_Z_OF"
|
||||
emake \
|
||||
ARCH=$(usex amd64 "x86_64" "i386") \
|
||||
@ -67,8 +75,6 @@ src_compile() {
|
||||
USE_YACC=0 \
|
||||
BASEGAME="q3ut4"\
|
||||
BASEGAME_CFLAGS="${CFLAGS}" \
|
||||
USE_SDL=$(buildit sdl) \
|
||||
USE_SDL_DLOPEN=$(buildit sdl) \
|
||||
USE_OPENAL=$(buildit openal) \
|
||||
USE_OPENAL_DLOPEN=$(buildit openal) \
|
||||
USE_CURL=$(buildit curl) \
|
||||
@ -84,6 +90,7 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
local my_arch=$(usex amd64 "x86_64" "i386")
|
||||
|
||||
# docs from ioq3, not from UrbanTerror ZIP file
|
||||
dodoc ChangeLog README.md README.ioq3.md md4-readme.txt
|
||||
|
||||
@ -93,47 +100,49 @@ src_install() {
|
||||
make_desktop_entry ${PN} "UrbanTerror" ${PN}
|
||||
fi
|
||||
|
||||
# means: dedicated server only
|
||||
if use server && ! use client; then
|
||||
# dedicated server only
|
||||
newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
use client && gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use client && gnome2_icon_cache_update
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
if use openal; then
|
||||
einfo
|
||||
elog
|
||||
elog ""
|
||||
elog "You might need to set:"
|
||||
elog " seta s_useopenal \"1\""
|
||||
elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
|
||||
einfo
|
||||
fi
|
||||
if use altgamma; then
|
||||
einfo
|
||||
elog
|
||||
elog ""
|
||||
elog "You might need to set:"
|
||||
elog " seta r_altgamma \"1\""
|
||||
elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
|
||||
einfo
|
||||
fi
|
||||
|
||||
if ! use altgamma; then
|
||||
einfo
|
||||
elog
|
||||
elog ""
|
||||
elog "If you are using a modesetting graphics driver you might"
|
||||
elog "consider setting USE=\"altgamma\"."
|
||||
elog "For details take a look on:"
|
||||
elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
|
||||
einfo
|
||||
fi
|
||||
if ! use client; then
|
||||
einfo
|
||||
elog
|
||||
elog "You disabled client support. You won't be able to connect"
|
||||
elog "to any servers and play. If you want to do so, enable"
|
||||
elog "USE=\"client\"."
|
||||
einfo
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user