diff options
Diffstat (limited to 'games-action/minetest')
-rw-r--r-- | games-action/minetest/Manifest | 2 | ||||
-rw-r--r-- | games-action/minetest/minetest-5.5.1.ebuild | 142 |
2 files changed, 144 insertions, 0 deletions
diff --git a/games-action/minetest/Manifest b/games-action/minetest/Manifest index 0d6f5fdb30bf..c48d2d91930e 100644 --- a/games-action/minetest/Manifest +++ b/games-action/minetest/Manifest @@ -8,6 +8,8 @@ AUX minetestserver_default.service 371 BLAKE2B a52989d01e7df20facac1796079e38d21 AUX minetestserver_template.service 353 BLAKE2B 8f4231481a23c1ef29523533955e373b50669d6a61a818fe5c36b29be54ec21669f6c0e17ea6675795eb2630be08dcb053ae1843789d615dddb1664ec96f6c55 SHA512 ff9584b709df5f8f6a8544954da7a6ef593ac0b8bad2352a459c6eb97c684104f47708952882bf6b7216b7636328a1ff533b97bbc08cd300f1a47d2af71ac895 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 EBUILD minetest-5.4.1-r1.ebuild 3473 BLAKE2B a6ef8825ce2a9d3dd4e3bc526763a84bae591cc4f3e41835d015358aae645239c7b56727a8af6369eb340b8854d0fe42af352bfe4cfe3ba5f24c831c2233c6e3 SHA512 9b261a166b0034f201b4b784a4b89f18b6651257a8958479f6f321fbd5d1d31260ee6ab49dfdf02277c0b3adfd4a9d00a5ddc566d291464f43bd3b4697062e2d EBUILD minetest-5.5.0.ebuild 3506 BLAKE2B c3aa05422df552e2662a678d65cce304677cbe3d45e7b84b7c4548da2ddc647f492147c9cd176421912f2cbe27f6e52a6d2261ade7cb17af8db80ac16464541c SHA512 ce823c2780a9474810900510e7cdf8b08f88275f0c8ef5b5dc9cc305d432ce04d7ec53cd2730a6f15489224138d1ebe6661436f2460f36d561afcf3b3f9b9158 +EBUILD minetest-5.5.1.ebuild 3466 BLAKE2B c153df547265136996636d83fca17d0948d84c97d18fa7bc8df895cec6692dacc40f4f87f61317bf2db2fc33e366d36fb9c49128b9d70f348e09bdb12963170b SHA512 3b81dbbfffc1f0410cf13771ef5f06b52ffa12b01b319116fa2712981b53cd0bd59f05b468bab7bac3ee41dd14ba390182fe2eb64b6764f5c8fcf822ce77d5cd MISC metadata.xml 2174 BLAKE2B ad72184bd3f52d94304fb316d325478b03a5751d564174deac0eec4d05dce67f55dabc0e7c0788f9221318ac453802be552a711e35c60cce7f8396afb5fc7a9c SHA512 e3d99fa37f56133a051d8369ee5c8bc60a8e7159683cf11fba95470ff2e00acd2c3987b3d261641e2508a9f8f409e2f7249167a4226f490152ac35e58b476b1b diff --git a/games-action/minetest/minetest-5.5.1.ebuild b/games-action/minetest/minetest-5.5.1.ebuild new file mode 100644 index 000000000000..0dd8837ab379 --- /dev/null +++ b/games-action/minetest/minetest-5.5.1.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.4 + 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.4 + ) + 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 +} |