1 |
commit: ce7e1d3cac54933122ab489563519b708d3c4038 |
2 |
Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 19:57:44 2016 +0000 |
4 |
Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 03:25:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce7e1d3c |
7 |
|
8 |
games-engines/openxcom: add live ebuild since upstream is so bad at rolling releases (bug #576502) |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
games-engines/openxcom/openxcom-9999.ebuild | 84 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 84 insertions(+) |
14 |
|
15 |
diff --git a/games-engines/openxcom/openxcom-9999.ebuild b/games-engines/openxcom/openxcom-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..b29d5df |
18 |
--- /dev/null |
19 |
+++ b/games-engines/openxcom/openxcom-9999.ebuild |
20 |
@@ -0,0 +1,84 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+inherit eutils cmake-utils gnome2-utils git-r3 games |
27 |
+ |
28 |
+DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown" |
29 |
+HOMEPAGE="http://openxcom.org/" |
30 |
+EGIT_REPO_URI="https://github.com/SupSuper/OpenXcom.git" |
31 |
+ |
32 |
+LICENSE="GPL-3+ CC-BY-SA-4.0" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="" |
35 |
+IUSE="doc" |
36 |
+ |
37 |
+RDEPEND=">=dev-cpp/yaml-cpp-0.5.1 |
38 |
+ media-libs/libsdl[opengl,video] |
39 |
+ media-libs/sdl-gfx |
40 |
+ media-libs/sdl-image[png] |
41 |
+ media-libs/sdl-mixer[flac,mikmod,vorbis]" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ doc? ( app-doc/doxygen )" |
44 |
+ |
45 |
+src_unpack() { |
46 |
+ git-r3_src_unpack |
47 |
+} |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ cmake-utils_src_prepare |
51 |
+ sed -i -e '/\/res\//d' CMakeLists.txt || die |
52 |
+} |
53 |
+ |
54 |
+src_configure() { |
55 |
+ mycmakeargs=( |
56 |
+ "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" |
57 |
+ "-DCMAKE_INSTALL_DATADIR=${GAMES_DATADIR}" |
58 |
+ ) |
59 |
+ cmake-utils_src_configure |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ use doc && cmake-utils_src_compile doxygen |
64 |
+ cmake-utils_src_compile |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ DOCS="README.md" \ |
69 |
+ cmake-utils_src_install |
70 |
+ use doc && dohtml -r "${CMAKE_BUILD_DIR}"/docs/html/* |
71 |
+ doicon -s scalable res/linux/icons/openxcom.svg |
72 |
+ newicon -s 48 res/linux/icons/openxcom_48x48.png openxcom.png |
73 |
+ newicon -s 128 res/linux/icons/openxcom_128x128.png openxcom.png |
74 |
+ domenu res/linux/openxcom.desktop |
75 |
+ |
76 |
+ prepgamesdirs |
77 |
+} |
78 |
+ |
79 |
+pkg_preinst() { |
80 |
+ games_pkg_preinst |
81 |
+ gnome2_icon_savelist |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ games_pkg_postinst |
86 |
+ gnome2_icon_cache_update |
87 |
+ echo |
88 |
+ elog "In order to play you need copy GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND," |
89 |
+ elog "TERRAIN, UFOGRAPH, UFOINTRO, UNITS folders from original X-COM game to" |
90 |
+ elog "${GAMES_DATADIR}/${PN}/UFO" |
91 |
+ echo |
92 |
+ elog "If you want to play the TFTD mod, you need to copy ANIMS, FLOP_INT," |
93 |
+ elog "GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND, TERRAIN, UFOGRAPH, UNITS folders" |
94 |
+ elog "from the original Terror from the Deep game to" |
95 |
+ elog "${GAMES_DATADIR}/${PN}/TFTD" |
96 |
+ echo |
97 |
+ elog "If you need or want text in some language other than english, download:" |
98 |
+ elog "http://openxcom.org/translations/latest.zip and uncompress it in" |
99 |
+ elog "${GAMES_DATADIR}/${PN}/common/Language" |
100 |
+} |
101 |
+ |
102 |
+pkg_postrm() { |
103 |
+ gnome2_icon_cache_update |
104 |
+} |