blob: 8a29715ffc495d5b92e2d34e02745f6436f20c0f (
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
|
# By eroen, 2014
# Distributed under the terms of the ISC licence
# $Header: $
EAPI=5
inherit eutils games
DESCRIPTION="Operational-level wargame covering the 1942/43 Stalingrad campaign"
HOMEPAGE="http://unityofcommand.net/"
SRC_URI="Unity_of_Command_LINUX_v104d.tgz"
RESTRICT="fetch mirror"
S="${WORKDIR}/Unity of Command"
LICENSE="all-rights-reserved BSD FTL LGPL-2.1 libpng MIT ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
HDEPEND=""
LIBDEPEND="
sys-libs/readline
"
#DEPEND="${LIBDEPEND}"
RDEPEND="${LIBDEPEND}"
[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}"
MY_PREFIX=${GAMES_PREFIX_OPT}/${P}
#QA_PREBUILT=${MY_PREFIX#/}/bin/\*
pkg_nofetch() {
elog "Please download ${SRC_URI}"
elog "from ${HOMEPAGE} or http://humblebundle.com"
elog "and place it in ${DISTDIR}"
}
src_prepare() {
rm -r license/ || die
}
src_install() {
insinto "${MY_PREFIX}"
doins -r *
# Creates fontconfig crap in CWD if writeable, falls back to ~/.fontconfig/
games_make_wrapper ${P} bin/uoc "${MY_PREFIX}" "${MY_PREFIX}/bin"
prepgamesdirs
chmod 750 "${D%/}/${MY_PREFIX}"/bin/uoc || die
}
|