2016-02-10 15:55:18 +01:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
2012-08-08 09:29:25 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-21 14:38:36 +02:00
|
|
|
# $Id$
|
2012-08-08 09:29:25 +02:00
|
|
|
|
2016-02-10 15:55:18 +01:00
|
|
|
EAPI="6"
|
2012-08-08 09:29:25 +02:00
|
|
|
|
|
|
|
inherit cmake-utils
|
|
|
|
|
|
|
|
DESCRIPTION="Warcraft 3 Game Host"
|
|
|
|
HOMEPAGE="http://www.codelain.com"
|
|
|
|
SRC_URI="http://people.znc.in/~dessa/ghost/${P}.tar.xz"
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
|
2013-04-30 18:33:24 +02:00
|
|
|
LICENSE="Apache-2.0"
|
2012-08-08 09:29:25 +02:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="ggb mysql"
|
|
|
|
|
2015-01-25 21:10:38 +01:00
|
|
|
DEPEND="dev-libs/boost:=
|
2012-08-08 09:29:25 +02:00
|
|
|
dev-games/bncsutil
|
2015-01-25 21:10:38 +01:00
|
|
|
dev-games/StormLib:=
|
2012-08-08 09:29:25 +02:00
|
|
|
dev-db/sqlite
|
2013-11-13 17:10:32 +01:00
|
|
|
mysql? ( virtual/mysql )
|
|
|
|
sys-libs/zlib"
|
2012-08-08 09:29:25 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
#pkg_setup() {
|
|
|
|
# enewgroup ghost
|
|
|
|
# enewuser ghost -1 -1 /var/lib/ghost ghost
|
|
|
|
#}
|
|
|
|
|
|
|
|
src_prepare() {
|
2013-11-13 17:10:32 +01:00
|
|
|
epatch "${FILESDIR}/${PN}-stormlib-8.22.patch"
|
2012-08-08 09:29:25 +02:00
|
|
|
epatch "${FILESDIR}/${PN}-sqlite-include-guard.patch"
|
|
|
|
epatch "${FILESDIR}/${PN}-configpath.patch"
|
|
|
|
use ggb && epatch "${FILESDIR}/${PN}-ggb.patch"
|
|
|
|
cp "${FILESDIR}/CMakeLists.txt" "${S}"
|
|
|
|
cp -r "${FILESDIR}/cmake" "${S}"
|
|
|
|
cp "${FILESDIR}/ghost++.cfg" "${S}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs="
|
|
|
|
-DCONFIGPATH="${EROOT}etc/ghost++/"
|
|
|
|
$(cmake-utils_use_with mysql MYSQL)"
|
|
|
|
|
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake-utils_src_install
|
|
|
|
|
|
|
|
# keepdir /var/lib/ghost++ /var/run/ghost++ /var/log/ghost++
|
|
|
|
# fowners -R ghost /var/lib/ghost++ /var/run/ghost++ /var/log/ghost++ /etc/ghost++
|
|
|
|
# fperms 750 /var/lib/ghost++ /var/run/ghost++ /var/log/ghost++
|
|
|
|
}
|