Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/minetest/
Date: Tue, 09 Apr 2019 08:08:05
Message-Id: 1554795205.8f65ceefc10565c1613551b9f1f9b55a65109896.monsieurp@gentoo
1 commit: 8f65ceefc10565c1613551b9f1f9b55a65109896
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Fri Mar 8 10:26:45 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 07:33:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f65ceef
7
8 games-action/minetest: version bump to 5.0.1.
9
10 A pkg_postinst message is added to notify users the 5.x series is not
11 compatible to the 0.4 series. The ebuild is updated to EAPI 7 and the
12 gnome2_utils eclass is replaced with the xdg eclass.
13
14 Closes: https://bugs.gentoo.org/679730
15 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
16 Closes: https://github.com/gentoo/gentoo/pull/11568
17 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
18
19 games-action/minetest/Manifest | 1 +
20 games-action/minetest/minetest-5.0.1.ebuild | 145 ++++++++++++++++++++++++++++
21 2 files changed, 146 insertions(+)
22
23 diff --git a/games-action/minetest/Manifest b/games-action/minetest/Manifest
24 index 0f90bfd0f67..5c9157dbe70 100644
25 --- a/games-action/minetest/Manifest
26 +++ b/games-action/minetest/Manifest
27 @@ -1,3 +1,4 @@
28 DIST minetest-0.4.16.tar.gz 7753044 BLAKE2B a35a0bcab00393fc72e5d932a86ebacdd1b3aa5a850e36f7b788599086c65f549341fa05fcbc0c6a09540df79d840611ec352d79e673ba63575a9f51fd5e22af SHA512 c124a997d9eb242885551e5c68948158cbd172ccd44fb1feb4d7aea487f876a2421bc990528dbfb6baf2033bfd4759d17138ed95b077e0ba80785a6e7ff521a2
29 DIST minetest-0.4.17.1.tar.gz 7758675 BLAKE2B 93f5f1ce32b98bb78a6ae5bc2ab9110902e118480b37b8c9cf87f1c6aa986f379e1191e82d4a764fb2aa0a0747c113e80cd014e6a06e0a485a59e516c4644fc6 SHA512 9f84ae45ebe181cb1cd2dff6b71b558eb276472efdfcd73bd02a111b2761793d49681bdfbbeaccc28f4a2f49e15b80d04b78db2f2f728c852c188b0c96aae618
30 DIST minetest-0.4.17.tar.gz 7757149 BLAKE2B 9ee908990224da800e7f0f4fc5e28d5bde03f4486d43ad58225d8ec056f8209fde94597798c977e1d3f3f8cbeadeb0bcdae6eb2aac2b8572fcbcfa28bbd62eba SHA512 3015f5a03be37c5395b55b6dc9f883f9270b19f709a47250f36bc7b1ce6d04a0e89e4366d86da33bbebbfb64f04ff008aec66c96930d7314991a21160265bafe
31 +DIST minetest-5.0.1.tar.gz 8761122 BLAKE2B 888e29b956d66543dd506b8e7eadd2e9d37324aebd4f84989745090fe927e97355c2baa7d615f5e0f8e2a074724b89bdf5f807c297cce1bc8483e500b0248e22 SHA512 00f0c77c19eb9619387285e5dad690c8aa9969ff11c4de0bdae99ee6e9a4508a8c2f977837fc2e01aebc5d4c1a5191d4f56acb131182d73c8f50da1458695607
32
33 diff --git a/games-action/minetest/minetest-5.0.1.ebuild b/games-action/minetest/minetest-5.0.1.ebuild
34 new file mode 100644
35 index 00000000000..61809625372
36 --- /dev/null
37 +++ b/games-action/minetest/minetest-5.0.1.ebuild
38 @@ -0,0 +1,145 @@
39 +# Copyright 1999-2019 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +inherit cmake-utils user xdg
45 +
46 +DESCRIPTION="An InfiniMiner/Minecraft inspired game"
47 +HOMEPAGE="https://www.minetest.net"
48 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
49 +
50 +LICENSE="LGPL-2.1+ CC-BY-SA-3.0 OFL-1.1 Apache-2.0"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="+curl dedicated doc jsoncpp +leveldb luajit ncurses nls postgres redis +server +sound spatial +truetype"
54 +
55 +RDEPEND="
56 + dev-db/sqlite:3
57 + dev-libs/gmp:0=
58 + sys-libs/zlib
59 + curl? ( net-misc/curl )
60 + !dedicated? (
61 + app-arch/bzip2
62 + dev-games/irrlicht
63 + media-libs/libpng:0=
64 + virtual/jpeg:0
65 + virtual/opengl
66 + x11-libs/libX11
67 + x11-libs/libXxf86vm
68 + sound? (
69 + media-libs/libogg:=
70 + media-libs/libvorbis:=
71 + media-libs/openal:=
72 + )
73 + truetype? ( media-libs/freetype:2 )
74 + )
75 + jsoncpp? ( dev-libs/jsoncpp )
76 + leveldb? ( dev-libs/leveldb:= )
77 + luajit? ( dev-lang/luajit:2 )
78 + ncurses? ( sys-libs/ncurses:0= )
79 + nls? ( virtual/libintl )
80 + postgres? ( >=dev-db/postgresql-9.5:= )
81 + redis? ( dev-libs/hiredis )
82 + spatial? ( sci-libs/libspatialindex )"
83 +DEPEND="${RDEPEND}"
84 +BDEPEND="
85 + doc? (
86 + app-doc/doxygen
87 + media-gfx/graphviz
88 + )
89 + nls? ( sys-devel/gettext )"
90 +
91 +pkg_setup() {
92 + if use server || use dedicated ; then
93 + enewgroup ${PN}
94 + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
95 + fi
96 +}
97 +
98 +src_prepare() {
99 + cmake-utils_src_prepare
100 + # set paths
101 + sed \
102 + -e "s#@BINDIR@#${EPREFIX}/usr/bin#g" \
103 + -e "s#@GROUP@#${PN}#g" \
104 + "${FILESDIR}"/minetestserver.confd > "${T}"/minetestserver.confd || die
105 +}
106 +
107 +src_configure() {
108 + local mycmakeargs=(
109 + -DBUILD_CLIENT=$(usex !dedicated)
110 + -DCUSTOM_BINDIR="${EPREFIX}/usr/bin"
111 + -DCUSTOM_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
112 + -DCUSTOM_EXAMPLE_CONF_DIR="${EPREFIX}/usr/share/doc/${PF}"
113 + -DCUSTOM_LOCALEDIR="${EPREFIX}/usr/share/${PN}/locale"
114 + -DCUSTOM_SHAREDIR="${EPREFIX}/usr/share/${PN}"
115 + -DENABLE_CURL=$(usex curl)
116 + -DENABLE_CURSES=$(usex ncurses)
117 + -DENABLE_FREETYPE=$(usex truetype)
118 + -DENABLE_GETTEXT=$(usex nls)
119 + -DENABLE_GLES=0
120 + -DENABLE_LEVELDB=$(usex leveldb)
121 + -DENABLE_LUAJIT=$(usex luajit)
122 + -DENABLE_POSTGRESQL=$(usex postgres)
123 + -DENABLE_REDIS=$(usex redis)
124 + -DENABLE_SPATIAL=$(usex spatial)
125 + -DENABLE_SOUND=$(usex sound)
126 + -DENABLE_SYSTEM_JSONCPP=$(usex jsoncpp)
127 + -DRUN_IN_PLACE=0
128 + )
129 +
130 + use dedicated && mycmakeargs+=(
131 + -DIRRLICHT_INCLUDE_DIR="${EPREFIX}/usr/include/irrlicht"
132 + )
133 +
134 + cmake-utils_src_configure
135 +}
136 +
137 +src_compile() {
138 + cmake-utils_src_compile
139 +
140 + if use doc ; then
141 + cmake-utils_src_compile doc
142 + HTML_DOCS=( "${CMAKE_BUILD_DIR}"/doc/html/. )
143 + fi
144 +}
145 +
146 +src_install() {
147 + cmake-utils_src_install
148 +
149 + if use server || use dedicated ; then
150 + newinitd "${FILESDIR}"/minetestserver.initd minetest-server
151 + newconfd "${T}"/minetestserver.confd minetest-server
152 + fi
153 +}
154 +
155 +pkg_postinst() {
156 + xdg_pkg_postinst
157 +
158 + if ! use dedicated ; then
159 + elog
160 + elog "optional dependencies:"
161 + elog " games-action/minetest_game (official mod)"
162 + elog
163 + fi
164 +
165 + if use server || use dedicated ; then
166 + elog
167 + elog "Configure your server via /etc/conf.d/minetest-server"
168 + elog "The user \"minetest\" is created with /var/lib/${PN} homedir."
169 + elog "Default logfile is ~/minetest-server.log"
170 + elog
171 + fi
172 +
173 + elog
174 + elog "The version 5.x series is not compatible to the version 0.4 series."
175 + elog "This applies to clients and servers, other content such as mods,"
176 + elog "texture packs and worlds is unaffected and backwards-compatible"
177 + elog "as usual."
178 + elog
179 +}
180 +
181 +pkg_postrm() {
182 + xdg_pkg_postrm
183 +}