blob: 7b36a98d41d50b7f75dd399950d159392cbf09ae (
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
|
# 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 -lcrypto"
}
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
}
|