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 5E43B138206 for ; Thu, 28 Apr 2016 04:08:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7D3A21C01C; Thu, 28 Apr 2016 04:08:25 +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 0C7C921C01C for ; Thu, 28 Apr 2016 04:08:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9AFC2340C77 for ; Thu, 28 Apr 2016 04:08:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4DFC15F for ; Thu, 28 Apr 2016 04:08:20 +0000 (UTC) From: "Michael Sterrett" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Sterrett" Message-ID: <1461813951.ce7e1d3cac54933122ab489563519b708d3c4038.mr_bones_@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/openxcom/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-engines/openxcom/openxcom-9999.ebuild X-VCS-Directories: games-engines/openxcom/ X-VCS-Committer: mr_bones_ X-VCS-Committer-Name: Michael Sterrett X-VCS-Revision: ce7e1d3cac54933122ab489563519b708d3c4038 X-VCS-Branch: master Date: Thu, 28 Apr 2016 04:08:20 +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: f645aab1-c011-4f7d-879e-820d6021bb21 X-Archives-Hash: dece293af281f309bd21091246a1b171 commit: ce7e1d3cac54933122ab489563519b708d3c4038 Author: Michael Sterrett gentoo org> AuthorDate: Wed Apr 27 19:57:44 2016 +0000 Commit: Michael Sterrett gentoo org> CommitDate: Thu Apr 28 03:25:51 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce7e1d3c games-engines/openxcom: add live ebuild since upstream is so bad at rolling releases (bug #576502) Package-Manager: portage-2.2.26 games-engines/openxcom/openxcom-9999.ebuild | 84 +++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/games-engines/openxcom/openxcom-9999.ebuild b/games-engines/openxcom/openxcom-9999.ebuild new file mode 100644 index 0000000..b29d5df --- /dev/null +++ b/games-engines/openxcom/openxcom-9999.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils cmake-utils gnome2-utils git-r3 games + +DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown" +HOMEPAGE="http://openxcom.org/" +EGIT_REPO_URI="https://github.com/SupSuper/OpenXcom.git" + +LICENSE="GPL-3+ CC-BY-SA-4.0" +SLOT="0" +KEYWORDS="" +IUSE="doc" + +RDEPEND=">=dev-cpp/yaml-cpp-0.5.1 + media-libs/libsdl[opengl,video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-mixer[flac,mikmod,vorbis]" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_unpack() { + git-r3_src_unpack +} + +src_prepare() { + cmake-utils_src_prepare + sed -i -e '/\/res\//d' CMakeLists.txt || die +} + +src_configure() { + mycmakeargs=( + "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" + "-DCMAKE_INSTALL_DATADIR=${GAMES_DATADIR}" + ) + cmake-utils_src_configure +} + +src_compile() { + use doc && cmake-utils_src_compile doxygen + cmake-utils_src_compile +} + +src_install() { + DOCS="README.md" \ + cmake-utils_src_install + use doc && dohtml -r "${CMAKE_BUILD_DIR}"/docs/html/* + doicon -s scalable res/linux/icons/openxcom.svg + newicon -s 48 res/linux/icons/openxcom_48x48.png openxcom.png + newicon -s 128 res/linux/icons/openxcom_128x128.png openxcom.png + domenu res/linux/openxcom.desktop + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + echo + elog "In order to play you need copy GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND," + elog "TERRAIN, UFOGRAPH, UFOINTRO, UNITS folders from original X-COM game to" + elog "${GAMES_DATADIR}/${PN}/UFO" + echo + elog "If you want to play the TFTD mod, you need to copy ANIMS, FLOP_INT," + elog "GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND, TERRAIN, UFOGRAPH, UNITS folders" + elog "from the original Terror from the Deep game to" + elog "${GAMES_DATADIR}/${PN}/TFTD" + echo + elog "If you need or want text in some language other than english, download:" + elog "http://openxcom.org/translations/latest.zip and uncompress it in" + elog "${GAMES_DATADIR}/${PN}/common/Language" +} + +pkg_postrm() { + gnome2_icon_cache_update +}