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