diff options
author | 2014-06-14 19:33:21 +0000 | |
---|---|---|
committer | 2014-06-14 19:33:21 +0000 | |
commit | b94e2cc78f93e23193eb0da2a5af6aebc949f1eb (patch) | |
tree | 44d88a70b96f49b0e0093c08f30482c9d500a399 /games-engines/openxcom | |
parent | Version bump, adds ISO 639-5 codes. Use l10n eclass (since we are explicitly ... (diff) | |
download | gentoo-2-b94e2cc78f93e23193eb0da2a5af6aebc949f1eb.tar.gz gentoo-2-b94e2cc78f93e23193eb0da2a5af6aebc949f1eb.tar.bz2 gentoo-2-b94e2cc78f93e23193eb0da2a5af6aebc949f1eb.zip |
initial import (bug #470188)
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-engines/openxcom')
-rw-r--r-- | games-engines/openxcom/ChangeLog | 9 | ||||
-rw-r--r-- | games-engines/openxcom/metadata.xml | 5 | ||||
-rw-r--r-- | games-engines/openxcom/openxcom-1.0.0.ebuild | 67 |
3 files changed, 81 insertions, 0 deletions
diff --git a/games-engines/openxcom/ChangeLog b/games-engines/openxcom/ChangeLog new file mode 100644 index 000000000000..b2a33bc0b66c --- /dev/null +++ b/games-engines/openxcom/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for games-engines/openxcom +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/openxcom/ChangeLog,v 1.1 2014/06/14 19:33:21 mr_bones_ Exp $ + +*openxcom-1.0.0 (14 Jun 2014) + + 14 Jun 2014; Michael Sterrett <mr_bones_@gentoo.org> +metadata.xml, + +openxcom-1.0.0.ebuild: + initial import (bug #470188) diff --git a/games-engines/openxcom/metadata.xml b/games-engines/openxcom/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-engines/openxcom/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-engines/openxcom/openxcom-1.0.0.ebuild b/games-engines/openxcom/openxcom-1.0.0.ebuild new file mode 100644 index 000000000000..80e8dc30514c --- /dev/null +++ b/games-engines/openxcom/openxcom-1.0.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/openxcom/openxcom-1.0.0.ebuild,v 1.1 2014/06/14 19:33:21 mr_bones_ Exp $ + +EAPI=5 +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown" +HOMEPAGE="http://openxcom.org/" +SRC_URI="http://openxcom.org/wp-content/uploads/downloads/2014/06/${P}.tar.gz" + +LICENSE="GPL-3 CC-BY-SA-4.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +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" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +DOCS=( README.txt ) + +src_configure() { + mycmakeargs=( + "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" + "-DDATADIR=${GAMES_DATADIR}/${PN}" + ) + cmake-utils_src_configure +} + +src_compile() { + use doc && cmake-utils_src_compile doxygen + cmake-utils_src_compile +} + +src_install() { + 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}/data" +} + +pkg_postrm() { + gnome2_icon_cache_update +} |