commit: 0d1d4b7832a673827cb49cf1baf90e335af9f4e2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Sat Jun 14 07:10:41 2014 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Sat Jun 14 07:10:41 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=0d1d4b78
[games-strategy/openxcom] 1.0 is here, watch out! Package-Manager: portage-2.2.8-r1 Manifest-Sign-Key: A018DE8C --- games-strategy/openxcom/openxcom-1.0.0.ebuild | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/games-strategy/openxcom/openxcom-1.0.0.ebuild b/games-strategy/openxcom/openxcom-1.0.0.ebuild new file mode 100644 index 0000000..709a530 --- /dev/null +++ b/games-strategy/openxcom/openxcom-1.0.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-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" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc" + +RDEPEND="app-arch/unzip + >=dev-cpp/yaml-cpp-0.5.1 + media-libs/libsdl + media-libs/sdl-gfx + media-libs/sdl-image + media-libs/sdl-mixer + media-sound/timidity++" +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 res/linux/icons/openxcom.svg + domenu res/linux/openxcom.desktop + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + 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" +}