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