blob: 6a8081353842f09539d237dd1cb21d6cf3d553a9 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="PuzzleMoppet"
inherit cmake desktop
DESCRIPTION="a serenely peaceful yet devilishly challenging 3D puzzle game"
HOMEPAGE="http://garnetgames.com/puzzlemoppet"
SRC_URI="
http://garnetgames.com/${MY_PN}Full.tar.gz
http://garnetgames.com/${MY_PN}Source.tar.gz
https://raw.githubusercontent.com/nothings/stb/e2caccb811d70af0dc359be5522e6b0d3b503e46/stb_vorbis.c -> ${PN}.stb_vorbis.c
"
LICENSE="WTFPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-games/ode
dev-games/irrlicht
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_PN}Source/Litha Engine"
DAT="${WORKDIR}/${MY_PN}FullVersion"
PATCHES=(
"${FILESDIR}/${PN}-irrpatch.patch"
"${FILESDIR}/${PN}-irrhack.patch"
"${FILESDIR}/${PN}-cmake.patch"
"${FILESDIR}/${PN}-64bit.patch"
)
src_prepare() {
cp "${DISTDIR}/${PN}.stb_vorbis.c" "${S}/source/SoundSystems/OpenALSoundSystem/stb_vorbis.c"
for i in `find projects/Puzzle -name *.cpp`; do
sed -i "$i" -e "s:../projects:/usr/share/${PN}/projects:g";
done
for i in `find projects/ConfigApp -name *.cpp`; do
sed -i "$i" -e "s:../projects:/usr/share/${PN}/projects:g";
done
sed -i -e "s:config:"${PN}-config":g" -i projects/ConfigApp/CMakeLists.txt
cmake_src_prepare
}
src_install() {
insinto "/usr/share/${PN}"
doins -r "${DAT}/projects"
dobin "bin/${PN}"
dobin "bin/${PN}-config"
newicon "${DAT}/icons/main.png" "${PN}.png"
make_desktop_entry "${PN}" "${MY_PN}" "${PN}"
}
|