blob: aea550f43e63898c6a3f05677ee602b786385ea1 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit cmake-utils games
DESCRIPTION="Internet Doom server browser"
HOMEPAGE="http://doomseeker.drdteam.org/"
SRC_URI="http://doomseeker.drdteam.org/files/${P}_src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="fake-plugins legacy-plugins"
DEPEND="app-arch/bzip2
dev-qt/qtcore:4
dev-qt/qtgui:4
sys-libs/zlib"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}_src"
src_prepare() {
#libs go into libdir, not share
sed -i -e "s:DESTINATION share/:DESTINATION $(games_get_libdir)/:" src/plugins/PluginFooter.txt
sed -i -e "s:INSTALL_PREFIX \"/share/doomseeker/\":\"$(games_get_libdir)/doomseeker/\":" src/core/main.cpp
#fix some paths
sed -i -e "s:LIBRARY DESTINATION lib:LIBRARY DESTINATION $(games_get_libdir):" src/wadseeker/CMakeLists.txt
sed -i -e "s:/usr/share:${GAMES_PREFIX}/share:" src/core/datapaths.cpp
sed -i -e "s:Icon=/usr/local:Icon=${GAMES_PREFIX}:" media/Doomseeker.desktop
}
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
$(cmake-utils_use_build fake-plugins FAKE_PLUGINS)
$(cmake-utils_use_build legacy-plugins LEGACY_PLUGINS)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
prepgamesdirs
}
|