From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 78FAF139695 for ; Thu, 18 May 2017 09:01:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ACFA7E0E36; Thu, 18 May 2017 09:01:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7AD6EE0E36 for ; Thu, 18 May 2017 09:01:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 37D5B3416A6 for ; Thu, 18 May 2017 09:01:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAB74743E for ; Thu, 18 May 2017 09:01:11 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1495098061.7f87b19d87d4769a1dfb7392868e3f0c0732ae06.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/xonotic/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-fps/xonotic/Manifest games-fps/xonotic/xonotic-0.8.2.ebuild X-VCS-Directories: games-fps/xonotic/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 7f87b19d87d4769a1dfb7392868e3f0c0732ae06 X-VCS-Branch: master Date: Thu, 18 May 2017 09:01:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7ffc3a25-f38a-4617-ab81-62b1dcfbab39 X-Archives-Hash: 283d4f8b82e32abb6ebb2e0316fb8d3c commit: 7f87b19d87d4769a1dfb7392868e3f0c0732ae06 Author: Lars Wendler gentoo org> AuthorDate: Thu May 18 09:00:32 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Thu May 18 09:01:01 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f87b19d games-fps/xonotic: Bump to version 0.8.2 Package-Manager: Portage-2.3.5, Repoman-2.3.2 games-fps/xonotic/Manifest | 1 + games-fps/xonotic/xonotic-0.8.2.ebuild | 119 +++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) diff --git a/games-fps/xonotic/Manifest b/games-fps/xonotic/Manifest index 79b609af77e..a18db6cb7b8 100644 --- a/games-fps/xonotic/Manifest +++ b/games-fps/xonotic/Manifest @@ -1 +1,2 @@ DIST xonotic-0.8.1.zip 984854761 SHA256 be8bcc41e2993a2f26d4d04c65a7eab810443bd98b11b45e482ffdbbf284c46f SHA512 adfce546257bdc7cfebe94f53eaa9cc9b19eaa546c6405e31ed6af080e3948732c960a024126202e5853cb98b955daadeeb5a96c602a6d4d83e284d3540214a4 WHIRLPOOL 4359263c98352a8b5d169147d9bfecb4258628f212d9a965f0d1577d0a8b2469648ae1ce21d8dc0ff622d20e126ea52e1464363f69fcf514991aefad71c1bee7 +DIST xonotic-0.8.2.zip 991045679 SHA256 a22f7230f486c5825b55cfdadd73399c9b0fae98c9e081dd8ac76eca08359ad5 SHA512 0787fcf326827ae0292e5917c7ff2c7fd79947209d4b62e7f83b8b828bec15b575da304e0631f9f163c9b0bd93bed13616e142398ff08cbdaaea890a939dfca5 WHIRLPOOL aff99ae1e995265c832747923afb5ee1048719d4410cc6b55ec773e51dc0920acffe627541209b5450f572e78ef7c74c8822ae2f6ebec2a8888f80dbfd34afba diff --git a/games-fps/xonotic/xonotic-0.8.2.ebuild b/games-fps/xonotic/xonotic-0.8.2.ebuild new file mode 100644 index 00000000000..cd06a49ba1c --- /dev/null +++ b/games-fps/xonotic/xonotic-0.8.2.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils check-reqs toolchain-funcs + +# Switch to ^ when we switch to EAPI=6. +MY_PN="X${PN:1}" +DESCRIPTION="Fork of Nexuiz, Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine" +HOMEPAGE="http://www.xonotic.org/" +SRC_URI="http://dl.xonotic.org/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug dedicated doc ode sdl" + +UIRDEPEND=" + media-libs/libogg + media-libs/libtheora + media-libs/libvorbis + media-libs/libmodplug + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXpm + x11-libs/libXext + x11-libs/libXdmcp + x11-libs/libXxf86dga + x11-libs/libXxf86vm + virtual/opengl + media-libs/freetype:2 + alsa? ( media-libs/alsa-lib ) + ode? ( dev-games/ode[double-precision] ) + sdl? ( media-libs/libsdl[X,sound,joystick,opengl,video,alsa?] )" +UIDEPEND=" + x11-proto/xextproto + x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto + x11-proto/xproto" +RDEPEND=" + sys-libs/zlib + virtual/jpeg:0 + media-libs/libpng:0 + net-misc/curl + ~dev-libs/d0_blind_id-1.0 + !dedicated? ( ${UIRDEPEND} )" +DEPEND="${RDEPEND} + !dedicated? ( ${UIDEPEND} )" + +CHECKREQS_DISK_BUILD="1200M" +CHECKREQS_DISK_USR="950M" + +S="${WORKDIR}/${MY_PN}" + +pkg_pretend() { + check-reqs_pkg_pretend +} + +pkg_setup() { + check-reqs_pkg_setup +} + +src_prepare() { + default + + sed -i \ + -e "/^EXE_/s:darkplaces:${PN}:" \ + -e "s:-O3:${CFLAGS}:" \ + -e "/-lm/s:$: ${LDFLAGS}:" \ + -e '/^STRIP/s/strip/true/' \ + source/darkplaces/makefile.inc || die + + if ! use alsa; then + sed -i \ + -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \ + source/darkplaces/makefile || die + fi +} + +src_compile() { + local t="$(usex debug debug release)" + local i + + tc-export CC CXX LD AR RANLIB + + # use a for-loop wrt bug 473352 + for i in sv-${t} $(usex !dedicated "cl-${t} $(usex sdl "sdl-${t}" "")" "") ; do + emake \ + -C source/darkplaces \ + DP_LINK_ODE=$(usex ode shared no) \ + DP_FS_BASEDIR="/usr/${PN}" \ + ${i} + done +} + +src_install() { + if ! use dedicated; then + dobin source/darkplaces/${PN}-glx + newicon misc/logos/${PN}_icon.svg ${PN}.svg + make_desktop_entry ${PN}-glx "${MY_PN} (GLX)" + + if use sdl; then + dobin source/darkplaces/${PN}-sdl + make_desktop_entry ${PN}-sdl "${MY_PN} (SDL)" + fi + fi + dobin source/darkplaces/${PN}-dedicated + + dodoc Docs/*.txt + use doc && dohtml -r Docs + + insinto "/usr/${PN}" + doins -r key_0.d0pk server data +} + +pkg_postinst() { + elog "If you are using opensource drivers you should consider installing: " + elog " media-libs/libtxc_dxtn" +}