blob: 5384630c757e68ac187aed5b150670c9b54e850c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/openxcom/openxcom-9999.ebuild,v 1.3 2011/11/05 19:04:55 scarabeus Exp $
EAPI=3
EGIT_REPO_URI="https://github.com/SupSuper/OpenXcom.git"
[[ ${PV} = 9999 ]] && SCM_ECLASS="git-2 autotools"
inherit games ${SCM_ECLASS}
unset SCM_ECLASS
DESCRIPTION="Open-source reimplementation of the original X-Com"
HOMEPAGE="http://openxcom.org/"
[[ ${PV} = 9999 ]] || SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
[[ ${PV} = 9999 ]] || KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc"
RDEPEND="
dev-cpp/yaml-cpp
media-libs/libsdl
media-libs/sdl-gfx
media-libs/sdl-mixer
"
DEPEND="${DEPEND}
doc? ( app-doc/doxygen )
"
src_prepare() {
[[ ${PV} = 9999 ]] && eautoreconf
}
src_configure() {
egamesconf \
--disable-werror \
$(use_with doc docs)
}
src_install() {
emake DESTDIR="${ED}" install || die
if [[ -e "${S}"/ChangeLog ]]; then
dodoc "${S}"/ChangeLog || die "dodoc failed"
fi
elog "Remember to put X-Com data to proper location:"
elog " ${ED}/usr/share/${PN}/"
prepgamesdirs
}
|