From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E2EB6138A1F for ; Tue, 29 Apr 2014 18:34:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EEDFE09F8; Tue, 29 Apr 2014 18:34:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1562E09F8 for ; Tue, 29 Apr 2014 18:34:20 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC5A03400A0 for ; Tue, 29 Apr 2014 18:34:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 81F0A1818D for ; Tue, 29 Apr 2014 18:34:18 +0000 (UTC) From: "Vicente Olivert Riera" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vicente Olivert Riera" Message-ID: <1398796377.446fe60e386b2cb6e6fe7cac4d09592ed7281bbb.vincent@gentoo> Subject: [gentoo-commits] dev/vincent:master commit in: games-emulation/pcsx2/ X-VCS-Repository: dev/vincent X-VCS-Files: games-emulation/pcsx2/pcsx2-9999.ebuild X-VCS-Directories: games-emulation/pcsx2/ X-VCS-Committer: vincent X-VCS-Committer-Name: Vicente Olivert Riera X-VCS-Revision: 446fe60e386b2cb6e6fe7cac4d09592ed7281bbb X-VCS-Branch: master Date: Tue, 29 Apr 2014 18:34:18 +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: e0f92509-9e52-41c8-8964-46a9beddde7c X-Archives-Hash: e3938e3024f32bc6e4e40b16da88fd6e commit: 446fe60e386b2cb6e6fe7cac4d09592ed7281bbb Author: Vicente Olivert Riera gentoo org> AuthorDate: Tue Apr 29 18:32:57 2014 +0000 Commit: Vicente Olivert Riera gentoo org> CommitDate: Tue Apr 29 18:32:57 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/vincent.git;a=commit;h=446fe60e Add pcsx2 live ebuild Signed-off-by: Vicente Olivert Riera gentoo.org> --- games-emulation/pcsx2/pcsx2-9999.ebuild | 97 +++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild new file mode 100644 index 0000000..3927d1f --- /dev/null +++ b/games-emulation/pcsx2/pcsx2-9999.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils git-r3 wxwidgets games + + +DESCRIPTION="A PlayStation 2 emulator" +HOMEPAGE="http://www.pcsx2.net" +EGIT_REPO_URI="git://github.com/PCSX2/pcsx2.git" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-* ~x86 ~amd64" + +DEPEND="dev-cpp/sparsehash + media-libs/alsa-lib + media-libs/glew + media-libs/libsdl + media-libs/libsoundtouch + media-libs/portaudio + sys-libs/zlib + virtual/jpeg + virtual/opengl + x11-libs/gtk+:2 + x11-libs/libICE + x11-libs/libX11 + x11-libs/libXext + x11-libs/wxGTK:2.8[X] + x86? ( + dev-libs/libaio + media-gfx/nvidia-cg-toolkit + ) + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-opengl + app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-gtklibs + app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-soundlibs + app-emulation/emul-linux-x86-libsoundtouch + app-emulation/emul-linux-x86-wxGTK:2.8 + >=dev-libs/libaio-0.3.109-r4[multilib] + >=media-gfx/nvidia-cg-toolkit-3.1[multilib] + )" +RDEPEND="${DEPEND}" + +src_unpack() { + git-r3_src_unpack + cd "${S}" +} + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + use amd64 && local ABI="x86" + + local wxgtk_config="" + local cg_config="" + local mylibpath="" + + if use amd64 ; then + mylibpath="/usr/$(get_libdir)" + wxgtk_config="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.8-32" + cg_config="-DCG_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCg.so + -DCG_GL_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCgGL.so" + else + mylibpath="/usr/$(get_libdir)" + fi + + mycmakeargs="-DPACKAGE_MODE=1 + -DCMAKE_VERBOSE_MAKEFILE=TRUE + -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_LIBRARY_PATH=${mylibpath} + -DBUILD_REPLAY_LOADERS=FALSE + ${wxgtk_config} + ${cg_config}" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + dogamesbin "${D}usr/bin/${PN}" + rm "${D}usr/bin/${PN}" || die "rm failed" + + prepgamesdirs +}