Add 0.A.D game

This commit is contained in:
Sergey Morozov 2014-05-04 13:00:06 +04:00
parent 0783bcee97
commit 825b496027
2 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,101 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
WX_GTK_VER="2.8"
inherit eutils subversion wxwidgets games
MY_PV="r${PV%_*}-alpha"
MY_P=${PN}-${MY_PV}
DESCRIPTION="A free, real-time strategy game of ancient warfare"
HOMEPAGE="http://play0ad.com/"
ESVN_REPO_URI="http://svn.wildfiregames.com/public/ps/trunk"
LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 as-is"
SLOT="svn"
KEYWORDS=""
IUSE="+audio editor fam +lobby pch test upnp"
RDEPEND="media-gfx/nvidia-texture-tools
dev-lang/spidermonkey:24
dev-libs/boost
dev-libs/libxml2
media-libs/libpng:0
media-libs/libsdl[X,opengl,video]
net-libs/enet:1.3
lobby? ( net-libs/gloox )
upnp? ( net-libs/miniupnpc )
net-misc/curl
sys-libs/zlib
virtual/jpeg
virtual/opengl
x11-libs/libX11
x11-libs/libXcursor
audio? ( media-libs/libogg
media-libs/libvorbis
media-libs/openal )
editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )"
DEPEND="${RDEPEND}
virtual/pkgconfig
test? ( dev-lang/perl )"
S=${WORKDIR}/trunk
CHECKREQS_DISK_USR="1900M"
src_unpack() {
subversion_src_unpack
}
src_configure() {
cd build/workspaces || die
./update-workspaces.sh \
--with-system-nvtt \
--with-system-enet \
--with-system-mozjs24 \
$(usex pch "" "--without-pch") \
$(usex test "" "--without-tests") \
$(usex audio "" "--without-audio") \
$(usex lobby "" "--without-lobby") \
$(usex upnp "" "--without-miniupnpc") \
$(use_enable editor atlas) \
--bindir="${GAMES_BINDIR}" \
--libdir="$(games_get_libdir)"/${PN}-${SLOT} \
--datadir="${GAMES_DATADIR}"/${PN}-${SLOT}
}
src_compile() {
emake -C build/workspaces/gcc verbose=1
}
src_test() {
cd binaries/system || die
./test -libdir "${S}/binaries/system" || die "test phase failed"
}
src_install() {
# data
insinto "${GAMES_DATADIR}"/${PN}-${SLOT}
doins -r binaries/data/*
# bin
newgamesbin binaries/system/pyrogenesis 0ad-${SLOT}
# libs
exeinto "$(games_get_libdir)"/${PN}-${SLOT}
doexe binaries/system/libCollada.so
use editor && doexe binaries/system/libAtlasUI.so
# other
dodoc binaries/system/readme.txt
newicon build/resources/${PN}.png ${PN}-${SLOT}.png
make_desktop_entry ${PN}-${SLOT} "0 A.D. (svn)"
# permissions
prepgamesdirs
}

View File

@ -0,0 +1 @@
EBUILD 0ad-9999.ebuild 2259 SHA256 3792d22f09c77a8885c87241d4448691f0d5b5a2de903e5c09ec8e6d1e22d8ef SHA512 5254cd7de24f6d8b1ac42873a99330bccf852f7e9438af9d5d97a6e1b886f87cea3297ec37746fd8013f3c2047c403f2d7657285f1b16a07ff487ce3a1deed88 WHIRLPOOL 138f8a3f1b5fd107e7411600da02ca9e57835cc745df3c61aa3a01ea2d2bcc11c10ebb18ac51b33beaa0f0c1a4d2e6660cc7a5c66bbf03e9bae6589827609259