Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466728 - games-fps/urbanterror-4.2.012 version bump
Summary: games-fps/urbanterror-4.2.012 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2013-04-21 21:17 UTC by Nils Freydank
Modified: 2013-04-24 21:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for 4.2.012 (urbanterror-4.2.012.ebuild,3.34 KB, text/plain)
2013-04-21 21:19 UTC, Nils Freydank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Freydank 2013-04-21 21:17:48 UTC
It would be great if the ebuild could pushed to the actual version. I added a working ebuild (based on the 4.2.011 ebuild); the buildpatch is the renamed one from 4.2.011, I did not change anything else. Greetings, holgersson

Reproducible: Always




# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit check-reqs eutils gnome2-utils games

DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
HOMEPAGE="http://www.urbanterror.info/home/"
SRC_URI="http://www.ftwgl.com/files/mirror/UrbanTerror42_full${PV:4:3}.zip
        http://maps.goreclan.net/UrbanTerror42_full${PV:4:3}.zip
        http://www.f1m.fr/uploads/urt/UrbanTerror42_full${PV:4:3}.zip
        https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${PV}.tar.gz -> ${P}.tar.gz
        http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg"

LICENSE="GPL-2 Q3AEULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+curl debug dedicated openal +sdl server smp vorbis"
#RESTRICT="mirror"

RDEPEND="
        !dedicated? (
                virtual/opengl
                curl? ( net-misc/curl )
                openal? ( media-libs/openal )
                sdl? ( media-libs/libsdl[X,audio,joystick,opengl,video] )
                !sdl? ( x11-libs/libX11
                        x11-libs/libXext
                        x11-libs/libXxf86dga
                        x11-libs/libXxf86vm )
                vorbis? ( media-libs/libogg
                        media-libs/libvorbis )
        )"
DEPEND="${RDEPEND}
        app-arch/unzip
        dedicated? ( curl? ( net-misc/curl ) )"

S=${WORKDIR}/ioq3-for-UrbanTerror-4-release-${PV}
S_DATA=${WORKDIR}/UrbanTerror42

CHECKREQS_DISK_BUILD="2700M"
CHECKREQS_DISK_USR="1300M"

pkg_pretend() {
        check-reqs_pkg_pretend

        if ! use dedicated ; then
                if ! use sdl && ! use openal ; then
                        ewarn
                        ewarn "Sound support disabled. Enable 'sdl' or 'openal' useflag."
                        ewarn
                fi
        fi
}

src_prepare() {
        epatch "${FILESDIR}"/${P}-build.patch
}

src_compile() {
        buildit() { use $1 && echo 1 || echo 0 ; }
        nobuildit() { use $1 && echo 0 || echo 1 ; }

        emake \
                ARCH=$(usex amd64 "x86_64" "i386") \
                DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \
                BUILD_CLIENT=$(nobuildit dedicated) \
                BUILD_CLIENT_SMP=$(usex smp "$(nobuildit dedicated)" "0") \
                BUILD_SERVER=$(usex dedicated "1" "$(buildit server)") \
                USE_SDL=$(buildit sdl) \
                USE_OPENAL=$(buildit openal) \
                USE_OPENAL_DLOPEN=0 \
                USE_CURL=$(buildit curl) \
                USE_CURL_DLOPEN=0 \
                USE_CODEC_VORBIS=$(buildit vorbis) \
                USE_LOCAL_HEADERS=0 \
                Q="" \
                $(usex debug "debug" "release")
}

src_install() {
        local my_arch=$(usex amd64 "x86_64" "i386")

        dodoc ChangeLog README md4-readme.txt
        dodoc "${S_DATA}"/q3ut4/readme42.txt
        insinto "${GAMES_DATADIR}"/${PN}/q3ut4
        doins "${S_DATA}"/q3ut4/*.pk3

        if use !dedicated ; then
                newgamesbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT$(usex smp "-smp" "").${my_arch} ${PN}
                doicon -s scalable "${DISTDIR}"/${PN}.svg
                make_desktop_entry ${PN} "UrbanTerror"
        fi

        if use dedicated || use server ; then
                newgamesbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-dedicated
                docinto examples
                dodoc "${S_DATA}"/q3ut4/{server_example.cfg,mapcycle_example.txt}
        fi

        prepgamesdirs
}

pkg_preinst() {
        games_pkg_preinst
        use dedicated || gnome2_icon_savelist
}

pkg_postinst() {
        games_pkg_postinst
        use dedicated || gnome2_icon_cache_update

        if use openal && ! use dedicated ; then
                einfo
                elog "You might need to set:"
                elog "  seta s_useopenal \"1\""
                elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
                einfo
        fi
}

pkg_postrm() {
        use dedicated || gnome2_icon_cache_update
}
Comment 1 Nils Freydank 2013-04-21 21:19:18 UTC
Created attachment 346238 [details]
ebuild for 4.2.012
Comment 2 Nils Freydank 2013-04-21 21:20:20 UTC
Comment on attachment 346238 [details]
ebuild for 4.2.012

Sorry for submitting the ebuild in the bugreport itself. I attached it now, next time I'll know where to upload it :)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-22 11:12:57 UTC
Comment on attachment 346238 [details]
ebuild for 4.2.012

--- urbanterror-4.2.011.ebuild  2013-04-17 16:06:12.537221575 +0200
+++ -   2013-04-22 13:12:47.246524006 +0200
@@ -8,7 +8,9 @@
 
 DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
 HOMEPAGE="http://www.urbanterror.info/home/"
-SRC_URI="http://cdn.urbanterror.info/urt/42/zips/UrbanTerror42_full${PV:4:3}.zip
+SRC_URI="http://www.ftwgl.com/files/mirror/UrbanTerror42_full${PV:4:3}.zip
+       http://maps.goreclan.net/UrbanTerror42_full${PV:4:3}.zip
+       http://www.f1m.fr/uploads/urt/UrbanTerror42_full${PV:4:3}.zip
        https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${PV}.tar.gz -> ${P}.tar.gz
        http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg"
Comment 4 Julian Ospald 2013-04-24 21:54:29 UTC
+*urbanterror-4.2.012 (24 Apr 2013)
+
+  24 Apr 2013; Julian Ospald <hasufell@gentoo.org> -urbanterror-4.2.011.ebuild,
+  -files/urbanterror-4.2.011-build.patch, +urbanterror-4.2.012.ebuild,
+  +files/urbanterror-4.2.012-build.patch:
+  version bump wrt #466728