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-action/minetest: ChangeLog metadata.xml minetest-0.4.10.ebuild
Date: Mon, 07 Jul 2014 13:41:55
Message-Id: 20140707133556.804D42004E@flycatcher.gentoo.org
1 hasufell 14/07/07 13:35:56
2
3 Modified: ChangeLog metadata.xml
4 Added: minetest-0.4.10.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.11 games-action/minetest/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-action/minetest/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 5 Apr 2014 11:11:05 -0000 1.10
24 +++ ChangeLog 7 Jul 2014 13:35:56 -0000 1.11
25 @@ -1,6 +1,14 @@
26 # ChangeLog for games-action/minetest
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/ChangeLog,v 1.10 2014/04/05 11:11:05 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/ChangeLog,v 1.11 2014/07/07 13:35:56 hasufell Exp $
30 +
31 +*minetest-0.4.10 (07 Jul 2014)
32 +
33 + 07 Jul 2014; Julian Ospald <hasufell@g.o> +minetest-0.4.10.ebuild,
34 + +files/minetest-0.4.10-as-needed.patch,
35 + +files/minetest-0.4.10-shared-irrlicht.patch,
36 + +files/minetest-0.4.10-system-lua.patch, metadata.xml:
37 + version bump
38
39 05 Apr 2014; Agostino Sarubbo <ago@g.o> minetest-0.4.9.ebuild:
40 Stable for x86, wrt bug #504358
41
42
43
44 1.4 games-action/minetest/metadata.xml
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/metadata.xml?rev=1.4&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/metadata.xml?rev=1.4&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/metadata.xml?r1=1.3&r2=1.4
49
50 Index: metadata.xml
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/games-action/minetest/metadata.xml,v
53 retrieving revision 1.3
54 retrieving revision 1.4
55 diff -u -r1.3 -r1.4
56 --- metadata.xml 30 Nov 2013 12:26:31 -0000 1.3
57 +++ metadata.xml 7 Jul 2014 13:35:56 -0000 1.4
58 @@ -47,6 +47,9 @@
59 Use <pkg>dev-lang/luajit</pkg>
60 instead of <pkg>dev-lang/lua</pkg>
61 </flag>
62 + <flag name="redis">Enable redis backend via
63 + <pkg>dev-libs/hiredis</pkg>
64 + </flag>
65 <flag name="server">Build minetest server</flag>
66 </use>
67 <upstream>
68
69
70
71 1.1 games-action/minetest/minetest-0.4.10.ebuild
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/minetest-0.4.10.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/minetest/minetest-0.4.10.ebuild?rev=1.1&content-type=text/plain
75
76 Index: minetest-0.4.10.ebuild
77 ===================================================================
78 # Copyright 1999-2014 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/games-action/minetest/minetest-0.4.10.ebuild,v 1.1 2014/07/07 13:35:56 hasufell Exp $
81
82 EAPI=5
83 inherit eutils cmake-utils gnome2-utils vcs-snapshot user games
84
85 DESCRIPTION="An InfiniMiner/Minecraft inspired game"
86 HOMEPAGE="http://minetest.net/"
87 SRC_URI="http://github.com/minetest/minetest/tarball/${PV} -> ${P}.tar.gz"
88
89 LICENSE="LGPL-2.1+ CC-BY-SA-3.0"
90 SLOT="0"
91 KEYWORDS="~amd64 ~x86"
92 IUSE="+curl dedicated leveldb luajit nls redis +server +sound +truetype"
93
94 RDEPEND="dev-db/sqlite:3
95 >=dev-games/irrlicht-1.8-r2
96 sys-libs/zlib
97 curl? ( net-misc/curl )
98 !dedicated? (
99 app-arch/bzip2
100 media-libs/libpng:0
101 virtual/jpeg
102 virtual/opengl
103 x11-libs/libX11
104 x11-libs/libXxf86vm
105 sound? (
106 media-libs/libogg
107 media-libs/libvorbis
108 media-libs/openal
109 )
110 truetype? ( media-libs/freetype:2 )
111 )
112 leveldb? ( dev-libs/leveldb )
113 luajit? ( dev-lang/luajit:2 )
114 !luajit? ( >=dev-lang/lua-5.1.4[deprecated] )
115 nls? ( virtual/libintl )
116 redis? ( dev-libs/hiredis )"
117 DEPEND="${RDEPEND}
118 nls? ( sys-devel/gettext )"
119
120 pkg_setup() {
121 games_pkg_setup
122
123 if use server || use dedicated ; then
124 enewuser ${PN} -1 -1 /var/lib/${PN} ${GAMES_GROUP}
125 fi
126 }
127
128 src_unpack() {
129 vcs-snapshot_src_unpack
130 }
131
132 src_prepare() {
133 epatch \
134 "${FILESDIR}"/${P}-shared-irrlicht.patch \
135 "${FILESDIR}"/${P}-as-needed.patch \
136 "${FILESDIR}"/${P}-system-lua.patch
137
138 # correct gettext behavior
139 if [[ -n "${LINGUAS+x}" ]] ; then
140 for i in $(cd po ; echo *) ; do
141 if ! has ${i} ${LINGUAS} ; then
142 rm -r po/${i} || die
143 fi
144 done
145 fi
146
147 # jthread is modified
148 # json is modified
149 rm -r src/{lua,sqlite} || die
150
151 # set paths
152 sed \
153 -e "s#@BINDIR@#${GAMES_BINDIR}#g" \
154 -e "s#@GROUP@#${GAMES_GROUP}#g" \
155 "${FILESDIR}"/minetestserver.confd > "${T}"/minetestserver.confd || die
156 }
157
158 src_configure() {
159 local mycmakeargs=(
160 $(usex dedicated "-DBUILD_SERVER=ON -DBUILD_CLIENT=OFF" "$(cmake-utils_use_build server SERVER) -DBUILD_CLIENT=ON")
161 -DCUSTOM_BINDIR="${GAMES_BINDIR}"
162 -DCUSTOM_DOCDIR="/usr/share/doc/${PF}"
163 -DCUSTOM_LOCALEDIR="/usr/share/locale"
164 -DCUSTOM_SHAREDIR="${GAMES_DATADIR}/${PN}"
165 $(cmake-utils_use_enable curl CURL)
166 $(cmake-utils_use_enable truetype FREETYPE)
167 $(cmake-utils_use_enable nls GETTEXT)
168 -DENABLE_GLES=0
169 $(cmake-utils_use_enable leveldb LEVELDB)
170 $(cmake-utils_use_enable redis REDIS)
171 $(cmake-utils_use_enable sound SOUND)
172 $(cmake-utils_use !luajit DISABLE_LUAJIT)
173 -DRUN_IN_PLACE=0
174 -DWITH_BUNDLED_LUA=0
175 )
176
177 cmake-utils_src_configure
178 }
179
180 src_compile() {
181 cmake-utils_src_compile
182 }
183
184 src_install() {
185 cmake-utils_src_install
186
187 if use server || use dedicated ; then
188 newinitd "${FILESDIR}"/minetestserver.initd minetest-server
189 newconfd "${T}"/minetestserver.confd minetest-server
190 fi
191
192 prepgamesdirs
193 }
194
195 pkg_preinst() {
196 games_pkg_preinst
197 gnome2_icon_savelist
198 }
199
200 pkg_postinst() {
201 games_pkg_postinst
202 gnome2_icon_cache_update
203
204 if ! use dedicated ; then
205 elog
206 elog "optional dependencies:"
207 elog " games-action/minetest_game (official mod)"
208 elog
209 fi
210
211 if use server || use dedicated ; then
212 elog
213 elog "Configure your server via /etc/conf.d/minetest-server"
214 elog "The user \"minetest\" is created with /var/lib/${PN} homedir."
215 elog "Default logfile is ~/minetest-server.log"
216 elog
217 fi
218 }
219
220 pkg_postrm() {
221 gnome2_icon_cache_update
222 }