1 |
commit: f8c5e6f2ffd709c96e25d8bb744c1c43a2bbd370 |
2 |
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 27 09:08:18 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 27 15:03:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8c5e6f2 |
7 |
|
8 |
games-action/minetest: Fix missing Irrlicht headers error |
9 |
|
10 |
Irrlicht headers are required even for a server-only build. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/688598 |
13 |
Package-Manager: Portage-2.3.67, Repoman-2.3.15 |
14 |
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/12337 |
16 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
17 |
|
18 |
games-action/minetest/minetest-5.0.1-r3.ebuild | 146 +++++++++++++++++++++++++ |
19 |
1 file changed, 146 insertions(+) |
20 |
|
21 |
diff --git a/games-action/minetest/minetest-5.0.1-r3.ebuild b/games-action/minetest/minetest-5.0.1-r3.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..044a72c0e99 |
24 |
--- /dev/null |
25 |
+++ b/games-action/minetest/minetest-5.0.1-r3.ebuild |
26 |
@@ -0,0 +1,146 @@ |
27 |
+# Copyright 1999-2019 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+inherit cmake-utils user xdg |
33 |
+ |
34 |
+DESCRIPTION="An InfiniMiner/Minecraft inspired game" |
35 |
+HOMEPAGE="https://www.minetest.net" |
36 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="LGPL-2.1+ CC-BY-SA-3.0 OFL-1.1 Apache-2.0" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="+client +curl doc +leveldb luajit ncurses nls postgres redis +server +sound spatial +truetype" |
42 |
+REQUIRED_USE="|| ( client server )" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ dev-db/sqlite:3 |
46 |
+ dev-games/irrlicht |
47 |
+ dev-libs/gmp:0= |
48 |
+ dev-libs/jsoncpp:= |
49 |
+ sys-libs/zlib |
50 |
+ client? ( |
51 |
+ app-arch/bzip2 |
52 |
+ media-libs/libpng:0= |
53 |
+ virtual/jpeg:0 |
54 |
+ virtual/opengl |
55 |
+ x11-libs/libX11 |
56 |
+ x11-libs/libXxf86vm |
57 |
+ sound? ( |
58 |
+ media-libs/libogg:= |
59 |
+ media-libs/libvorbis:= |
60 |
+ media-libs/openal:= |
61 |
+ ) |
62 |
+ truetype? ( media-libs/freetype:2 ) |
63 |
+ ) |
64 |
+ curl? ( net-misc/curl ) |
65 |
+ leveldb? ( dev-libs/leveldb:= ) |
66 |
+ luajit? ( dev-lang/luajit:2 ) |
67 |
+ ncurses? ( sys-libs/ncurses:0= ) |
68 |
+ nls? ( virtual/libintl ) |
69 |
+ postgres? ( >=dev-db/postgresql-9.5:= ) |
70 |
+ redis? ( dev-libs/hiredis ) |
71 |
+ spatial? ( sci-libs/libspatialindex )" |
72 |
+DEPEND="${RDEPEND}" |
73 |
+BDEPEND=" |
74 |
+ doc? ( |
75 |
+ app-doc/doxygen |
76 |
+ media-gfx/graphviz |
77 |
+ ) |
78 |
+ nls? ( sys-devel/gettext )" |
79 |
+ |
80 |
+pkg_setup() { |
81 |
+ if use server ; then |
82 |
+ enewgroup ${PN} |
83 |
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ cmake-utils_src_prepare |
89 |
+ # set paths |
90 |
+ sed \ |
91 |
+ -e "s#@BINDIR@#${EPREFIX}/usr/bin#g" \ |
92 |
+ -e "s#@GROUP@#${PN}#g" \ |
93 |
+ "${FILESDIR}"/minetestserver.confd > "${T}"/minetestserver.confd || die |
94 |
+ |
95 |
+ # remove bundled gmp/jsoncpp |
96 |
+ rm -rf lib/{gmp,jsoncpp} || die |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ local mycmakeargs=( |
101 |
+ -DBUILD_CLIENT=$(usex client) |
102 |
+ -DBUILD_SERVER=$(usex server) |
103 |
+ -DCUSTOM_BINDIR="${EPREFIX}/usr/bin" |
104 |
+ -DCUSTOM_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
105 |
+ -DCUSTOM_EXAMPLE_CONF_DIR="${EPREFIX}/usr/share/doc/${PF}" |
106 |
+ -DCUSTOM_LOCALEDIR="${EPREFIX}/usr/share/${PN}/locale" |
107 |
+ -DCUSTOM_SHAREDIR="${EPREFIX}/usr/share/${PN}" |
108 |
+ -DENABLE_CURL=$(usex curl) |
109 |
+ -DENABLE_CURSES=$(usex ncurses) |
110 |
+ -DENABLE_FREETYPE=$(usex truetype) |
111 |
+ -DENABLE_GETTEXT=$(usex nls) |
112 |
+ -DENABLE_GLES=0 |
113 |
+ -DENABLE_LEVELDB=$(usex leveldb) |
114 |
+ -DENABLE_LUAJIT=$(usex luajit) |
115 |
+ -DENABLE_POSTGRESQL=$(usex postgres) |
116 |
+ -DENABLE_REDIS=$(usex redis) |
117 |
+ -DENABLE_SPATIAL=$(usex spatial) |
118 |
+ -DENABLE_SOUND=$(usex sound) |
119 |
+ -DENABLE_SYSTEM_JSONCPP=1 |
120 |
+ -DRUN_IN_PLACE=0 |
121 |
+ ) |
122 |
+ |
123 |
+ use server && mycmakeargs+=( |
124 |
+ -DIRRLICHT_INCLUDE_DIR="${EPREFIX}/usr/include/irrlicht" |
125 |
+ ) |
126 |
+ |
127 |
+ cmake-utils_src_configure |
128 |
+} |
129 |
+ |
130 |
+src_compile() { |
131 |
+ cmake-utils_src_compile |
132 |
+ |
133 |
+ if use doc ; then |
134 |
+ cmake-utils_src_compile doc |
135 |
+ HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) |
136 |
+ fi |
137 |
+} |
138 |
+ |
139 |
+src_install() { |
140 |
+ cmake-utils_src_install |
141 |
+ |
142 |
+ if use server ; then |
143 |
+ newinitd "${FILESDIR}"/minetestserver.initd minetest-server |
144 |
+ newconfd "${T}"/minetestserver.confd minetest-server |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ xdg_pkg_postinst |
150 |
+ |
151 |
+ if use client ; then |
152 |
+ elog |
153 |
+ elog "optional dependencies:" |
154 |
+ elog " games-action/minetest_game (official mod)" |
155 |
+ elog |
156 |
+ fi |
157 |
+ |
158 |
+ if use server ; then |
159 |
+ elog |
160 |
+ elog "Configure your server via /etc/conf.d/minetest-server" |
161 |
+ elog "The user \"minetest\" is created with /var/lib/${PN} homedir." |
162 |
+ elog "Default logfile is ~/minetest-server.log" |
163 |
+ elog |
164 |
+ fi |
165 |
+ |
166 |
+ elog |
167 |
+ elog "The version 5.x series is not compatible to the version 0.4 series." |
168 |
+ elog "This applies to clients and servers, other content such as mods," |
169 |
+ elog "texture packs and worlds is unaffected and backwards-compatible" |
170 |
+ elog "as usual." |
171 |
+ elog |
172 |
+} |