From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 52D70158094 for ; Tue, 9 Aug 2022 11:38:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63FEEE09A7; Tue, 9 Aug 2022 11:38:03 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B010CE09A7 for ; Tue, 9 Aug 2022 11:38:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD833341044 for ; Tue, 9 Aug 2022 11:38:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 328B656D for ; Tue, 9 Aug 2022 11:38:00 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1660044976.d9ed1a885054fdebf8fc154c054205f373daaa15.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/minetest/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-action/minetest/Manifest games-action/minetest/minetest-5.6.0.ebuild X-VCS-Directories: games-action/minetest/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: d9ed1a885054fdebf8fc154c054205f373daaa15 X-VCS-Branch: master Date: Tue, 9 Aug 2022 11:38:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a1d55426-8862-412e-9ffe-e8afb3ae50b0 X-Archives-Hash: 8ad69c31e6be7fd7c7cf3194da09c4ce commit: d9ed1a885054fdebf8fc154c054205f373daaa15 Author: Marek Szuba gentoo org> AuthorDate: Tue Aug 9 11:27:09 2022 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Aug 9 11:36:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9ed1a88 games-action/minetest: add 5.6.0 Signed-off-by: Marek Szuba gentoo.org> games-action/minetest/Manifest | 1 + games-action/minetest/minetest-5.6.0.ebuild | 142 ++++++++++++++++++++++++++++ 2 files changed, 143 insertions(+) diff --git a/games-action/minetest/Manifest b/games-action/minetest/Manifest index 4e5e338be3ba..ddf7a1447f83 100644 --- a/games-action/minetest/Manifest +++ b/games-action/minetest/Manifest @@ -1,3 +1,4 @@ DIST minetest-5.4.1.tar.gz 11209289 BLAKE2B a8517309ee98c3991e7ce2d67bb8d14a5697a299b480835c79b1e3c7161ebc94f6245f36c09d88903c052fca1de52fe0253f055059c3d72745c724d117d9753a SHA512 8f9985c6a658c868ed8971f112eae3c71c2b1535fd433689920be6d42ac2c7eb8453d58ec2825573764ee2f56b651c5e27895b7fd58fada61fbaf4758fc69471 DIST minetest-5.5.0.tar.gz 9558895 BLAKE2B 13db90556a4faaac31cca7427fb85439cab144d73f25b79ae9f8367883b0fafa39c39fe0e40f3734d7e3f48cef4942a37a302cf58993707a14024905d8ed9b61 SHA512 9c744eac2704457d6896485997666d614dd156214dae26c2cb413771fd3eab54d80731a5220bcc4a18ddc737db64971893a3c89a56a46020adf8d00aad299817 DIST minetest-5.5.1.tar.gz 9559568 BLAKE2B 76f8da1844c0b87f93ae6227aa224a4afbef2ffed604bd0375cf63a243f9792dceb197512af1bfebced32decf9ecb32bd2698dab48f998397624793d17b493be SHA512 d430c665f9634d34e3c2341300ea294204687ab8fce8f5a895cde38be277cac02d83777924524950f22027ee0d4a43a21a1dace8b1fe467e40bb7d30095de570 +DIST minetest-5.6.0.tar.gz 9922682 BLAKE2B 10787b9bbc397d3d214b22640a830fc429bd8292541e0b71b50d05d483f87469cedf03fcf7a898bd83486c55911439a9804eab2bca58cd464a69adaa76b4f820 SHA512 e87c4036f17a61d3e623b2f48e3611ba1bc0177b5d58330fe6e64a74075c78ab7cd5eb7b855097ce98819112a54857324237f7d3b81ec504a1f608444e74a630 diff --git a/games-action/minetest/minetest-5.6.0.ebuild b/games-action/minetest/minetest-5.6.0.ebuild new file mode 100644 index 000000000000..586774932b7f --- /dev/null +++ b/games-action/minetest/minetest-5.6.0.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 luajit ) + +inherit cmake flag-o-matic lua-single systemd xdg + +DESCRIPTION="A free open-source voxel game engine with easy modding and game creation" +HOMEPAGE="https://www.minetest.net" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+ CC-BY-SA-3.0 OFL-1.1 Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv" +IUSE="+client +curl doc leveldb ncurses nls postgres prometheus redis +server +sound spatial test" + +REQUIRED_USE="${LUA_REQUIRED_USE} + || ( client server )" + +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS} + $(lua_gen_impl_dep 'deprecated' lua5-1) + app-arch/zstd + dev-db/sqlite:3 + dev-libs/gmp:0= + dev-libs/jsoncpp:= + sys-libs/zlib + client? ( + >=dev-games/irrlicht-mt-1.9.0.7 + media-libs/freetype:2 + media-libs/libpng:0= + media-libs/libjpeg-turbo + virtual/opengl + x11-libs/libX11 + x11-libs/libXxf86vm + sound? ( + media-libs/libvorbis + media-libs/openal + ) + ) + curl? ( net-misc/curl ) + leveldb? ( dev-libs/leveldb:= ) + ncurses? ( sys-libs/ncurses:0= ) + nls? ( virtual/libintl ) + postgres? ( >=dev-db/postgresql-9.5:= ) + prometheus? ( dev-cpp/prometheus-cpp ) + redis? ( dev-libs/hiredis:= ) + server? ( + acct-group/minetest + acct-user/minetest + >=dev-games/irrlicht-mt-headers-1.9.0.7 + ) + spatial? ( sci-libs/libspatialindex:= )" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( + app-doc/doxygen + media-gfx/graphviz + ) + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${PN}-5.4.1-system_puc_lua.patch +) + +src_prepare() { + cmake_src_prepare + + # remove bundled libraries other than bitop + rm -rf lib/{gmp,jsoncpp,lua} || die + + # To avoid TEXTRELs on riscv + append-flags -fPIC +} + +src_configure() { + local mycmakeargs=( + -DBUILD_CLIENT=$(usex client) + -DBUILD_SERVER=$(usex server) + -DBUILD_UNITTESTS=$(usex test) + -DCUSTOM_BINDIR="${EPREFIX}/usr/bin" + -DCUSTOM_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + -DCUSTOM_EXAMPLE_CONF_DIR="${EPREFIX}/usr/share/doc/${PF}" + -DCUSTOM_LOCALEDIR="${EPREFIX}/usr/share/${PN}/locale" + -DCUSTOM_MANDIR="${EPREFIX}/usr/share/man" + -DCUSTOM_SHAREDIR="${EPREFIX}/usr/share/${PN}" + -DENABLE_CURL=$(usex curl) + -DENABLE_CURSES=$(usex ncurses) + -DENABLE_GETTEXT=$(usex nls) + -DENABLE_GLES=no + -DENABLE_LEVELDB=$(usex leveldb) + -DENABLE_LUAJIT=$(usex lua_single_target_luajit) + -DENABLE_POSTGRESQL=$(usex postgres) + -DENABLE_PROMETHEUS=$(usex prometheus) + -DENABLE_REDIS=$(usex redis) + -DENABLE_SPATIAL=$(usex spatial) + -DENABLE_SOUND=$(usex sound) + -DENABLE_SYSTEM_GMP=1 + -DENABLE_SYSTEM_JSONCPP=1 + -DRUN_IN_PLACE=0 + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + cmake_src_compile doc + HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + fi +} + +src_install() { + cmake_src_install + + if use server; then + keepdir /etc/minetest + fowners root:minetest /etc/minetest + fperms 2750 /etc/minetest + + keepdir /var/log/minetest + fowners minetest:minetest /var/log/minetest + + newconfd "${FILESDIR}"/minetestserver.confd minetest-server + newinitd "${FILESDIR}"/minetestserver.initd minetest-server + + systemd_newunit "${FILESDIR}"/minetestserver_default.service minetest-server.service + systemd_newunit "${FILESDIR}"/minetestserver_template.service minetest-server@.service + + insinto /etc/logrotate.d + newins "${FILESDIR}"/minetestserver.logrotate minetest-server + fi +} + +pkg_postinst() { + xdg_pkg_postinst +}