Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/s25rttr: s25rttr-0.8.1.ebuild ChangeLog
Date: Mon, 23 Dec 2013 13:45:13
Message-Id: 20131223134508.EE76B2004C@flycatcher.gentoo.org
1 hasufell 13/12/23 13:45:08
2
3 Modified: ChangeLog
4 Added: s25rttr-0.8.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.5 games-strategy/s25rttr/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/s25rttr/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/s25rttr/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/s25rttr/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-strategy/s25rttr/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 5 Nov 2013 15:41:29 -0000 1.4
24 +++ ChangeLog 23 Dec 2013 13:45:08 -0000 1.5
25 @@ -1,6 +1,13 @@
26 # ChangeLog for games-strategy/s25rttr
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/s25rttr/ChangeLog,v 1.4 2013/11/05 15:41:29 chithanh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/s25rttr/ChangeLog,v 1.5 2013/12/23 13:45:08 hasufell Exp $
30 +
31 +*s25rttr-0.8.1 (23 Dec 2013)
32 +
33 + 23 Dec 2013; Julian Ospald <hasufell@g.o>
34 + +files/s25rttr-0.8.1-cmake.patch, +files/s25rttr-0.8.1-soundconverter.patch,
35 + +s25rttr-0.8.1.ebuild:
36 + version bump
37
38 05 Nov 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
39 s25rttr-0.8.ebuild:
40
41
42
43 1.1 games-strategy/s25rttr/s25rttr-0.8.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/s25rttr/s25rttr-0.8.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/s25rttr/s25rttr-0.8.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: s25rttr-0.8.1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-strategy/s25rttr/s25rttr-0.8.1.ebuild,v 1.1 2013/12/23 13:45:08 hasufell Exp $
53
54 EAPI=5
55 inherit eutils cmake-utils gnome2-utils games
56
57 DESCRIPTION="Open Source remake of The Settlers II game (needs original game files)"
58 HOMEPAGE="http://www.siedler25.org/"
59 # no upstream source tarball yet
60 # https://bugs.launchpad.net/s25rttr/+bug/1069546
61 SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
62
63 LICENSE="GPL-3"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="debug glfw"
67
68 RDEPEND="app-arch/bzip2
69 media-libs/libsamplerate
70 media-libs/libsdl[X,audio,opengl,video]
71 media-libs/libsndfile
72 media-libs/sdl-mixer[vorbis]
73 net-libs/miniupnpc
74 virtual/libiconv
75 virtual/opengl
76 glfw? ( <media-libs/glfw-3 )"
77 DEPEND="${RDEPEND}
78 sys-devel/gettext"
79
80 src_prepare() {
81 epatch "${FILESDIR}"/${P}-cmake.patch \
82 "${FILESDIR}"/${P}-soundconverter.patch
83 }
84
85 src_configure() {
86 local arch
87 case ${ARCH} in
88 amd64)
89 arch="x86_64" ;;
90 x86)
91 arch="i386" ;;
92 *) die "Architecture ${ARCH} not yet supported" ;;
93 esac
94
95 local mycmakeargs=(
96 -DCOMPILEFOR="linux"
97 -DCOMPILEARCH="${arch}"
98 -DCMAKE_SKIP_RPATH=YES
99 -DPREFIX="${GAMES_PREFIX}"
100 -DBINDIR="${GAMES_BINDIR}"
101 -DDATADIR="${GAMES_DATADIR}"
102 -DLIBDIR="$(games_get_libdir)/${PN}"
103 -DDRIVERDIR="$(games_get_libdir)/${PN}"
104 -DGAMEDIR="~/.${PN}/S2"
105 $(cmake-utils_use_build glfw GLFW_DRIVER)
106 )
107
108 cmake-utils_src_configure
109 }
110
111 src_compile() {
112 # work around some relative paths (CMAKE_IN_SOURCE_BUILD not supported)
113 ln -s "${CMAKE_USE_DIR}"/RTTR "${CMAKE_BUILD_DIR}"/RTTR || die
114
115 cmake-utils_src_compile
116
117 mv "${CMAKE_USE_DIR}"/RTTR/{sound-convert,s-c_resample} "${T}"/ || die
118 }
119
120 src_install() {
121 cd "${CMAKE_BUILD_DIR}" || die
122
123 exeinto "$(games_get_libdir)"/${PN}
124 doexe "${T}"/{sound-convert,s-c_resample}
125 exeinto "$(games_get_libdir)"/${PN}/video
126 doexe driver/video/SDL/src/libvideoSDL.so
127 use glfw && doexe driver/video/GLFW/src/libvideoGLFW.so
128 exeinto "$(games_get_libdir)"/${PN}/audio
129 doexe driver/audio/SDL/src/libaudioSDL.so
130
131 insinto "${GAMES_DATADIR}"
132 doins -r "${CMAKE_USE_DIR}"/RTTR
133 dosym ./LSTS/splash.bmp "${GAMES_DATADIR}"/RTTR/splash.bmp
134
135 doicon -s 64 "${CMAKE_USE_DIR}"/debian/${PN}.png
136 dogamesbin src/s25client
137 make_desktop_entry "s25client" "Settlers RTTR" "${PN}"
138 dodoc RTTR/texte/{keyboardlayout.txt,readme.txt}
139
140 prepgamesdirs
141 }
142
143 pkg_preinst() {
144 games_pkg_preinst
145 gnome2_icon_savelist
146 }
147
148 pkg_postinst() {
149 games_pkg_postinst
150 elog "Copy your Settlers2 game files into ~/.${PN}/S2"
151
152 gnome2_icon_cache_update
153 }
154
155 pkg_postrm() {
156 gnome2_icon_cache_update
157 }