diff options
Diffstat (limited to 'games-engines/openxcom/openxcom-1.0.0_p20150123.ebuild')
-rw-r--r-- | games-engines/openxcom/openxcom-1.0.0_p20150123.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/games-engines/openxcom/openxcom-1.0.0_p20150123.ebuild b/games-engines/openxcom/openxcom-1.0.0_p20150123.ebuild new file mode 100644 index 0000000..836bc5e --- /dev/null +++ b/games-engines/openxcom/openxcom-1.0.0_p20150123.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils games git-2 + +DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown" +HOMEPAGE="http://openxcom.org/" +# For translation files +SRC_URI="http://openxcom.org/git_builds/openxcom_git_master_2015_01_23_1405.zip" +EGIT_REPO_URI="https://github.com/SupSuper/OpenXcom.git" +EGIT_COMMIT=18bba3f2a886161ff4077e75b56ae88fc5e96236 + +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 )" + +S="${WORKDIR}/OpenXcom" + +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/* + insinto "${GAMES_DATADIR}/${PN}/data/" + doins -r "../openxcom/data/Language/" + 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" +} |