/[gentoo-x86]/games-strategy/openxcom/openxcom-1.0.0.ebuild
Gentoo

Contents of /games-strategy/openxcom/openxcom-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 14 19:28:46 2014 UTC (3 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove non-games team commit

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/openxcom/openxcom-1.0.0.ebuild,v 1.1 2014/06/14 16:15:27 maksbotan Exp $
4
5 EAPI=5
6
7 inherit cmake-utils games
8
9 DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown"
10 HOMEPAGE="http://openxcom.org/"
11 SRC_URI="http://openxcom.org/wp-content/uploads/downloads/2014/06/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="debug doc"
17
18 RDEPEND="app-arch/unzip
19 >=dev-cpp/yaml-cpp-0.5.1
20 media-libs/libsdl
21 media-libs/sdl-gfx
22 media-libs/sdl-image
23 media-libs/sdl-mixer"
24 DEPEND="${RDEPEND}
25 doc? ( app-doc/doxygen )"
26
27 DOCS=( README.txt )
28
29 src_configure() {
30 mycmakeargs=(
31 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
32 "-DDATADIR=${GAMES_DATADIR}/${PN}"
33 )
34 cmake-utils_src_configure
35 }
36
37 src_compile() {
38 use doc && cmake-utils_src_compile doxygen
39 cmake-utils_src_compile
40 }
41
42 src_install() {
43 cmake-utils_src_install
44 use doc && dohtml -r "${CMAKE_BUILD_DIR}"/docs/html/*
45 doicon res/linux/icons/openxcom.svg
46 domenu res/linux/openxcom.desktop
47
48 prepgamesdirs
49 }
50
51 pkg_postinst() {
52 games_pkg_postinst
53 elog "In order to play you need to copy GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND,"
54 elog "TERRAIN, UFOGRAPH, UFOINTRO, UNITS folders from the original X-COM game to"
55 elog "${GAMES_DATADIR}/${PN}/data"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20