blob: bf164fad0582d16c3e93c25f841abfd01830ebf5 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft. It is a multi-player event-driven simulator written in C++ that models raid damage."
HOMEPAGE="http://simulationcraft.org/"
LICENSE="GPL-3.0"
SLOT="0"
if [[ ${PV} = 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/simulationcraft/simc.git"
EGIT_BRANCH="legion-dev"
fi
IUSE="
+gui"
RDEPEND="gui? ( dev-qt/qtchooser )"
DEPEND="
${RDEPEND}
dev-libs/openssl
gui? ( dev-qt/qtwebkit:5 )
"
src_configure() {
use gui && qtchooser -run-tool=qmake -qt=5 simcqt.pro PREFIX="${D}/usr" CONFIG+=openssl LIBS+="-lssl"
}
src_compile() {
emake -C engine OPENSSL=1 optimized
use gui && emake
}
src_install() {
install -D -m755 engine/simc "${D}"/usr/bin/simc
use gui && emake install
}
pkg_postinst() {
elog "You will need to obtain an API key if you wish to import from the"
elog "WoW armory."
elog "Follow the instructions here:"
elog " https://github.com/simulationcraft/simc/wiki/BattleArmoryAPI"
}
|