minetest-0.4.4 added.

This commit is contained in:
Kolan Sh 2012-12-07 14:19:33 +04:00
parent ad4fede532
commit 00d5060056
11 changed files with 313 additions and 0 deletions

View File

@ -0,0 +1,9 @@
AUX minetest-0.4.3-irrlicht.patch 392 SHA256 b24a6a729c31c940115284e4720efe1b9d5384c0868abac86be42ac2db329335 SHA512 6551bf9b43d0de765e33c2a2a44d500d8ac7360968c60b791f9708458bb82fc3a224b10ecc0e47ab2d7a23cb51f0515e275b8e7d9029b5eec2e5b51b88374b69 WHIRLPOOL c24f7604409ea59a3e2b4f28a34305931b8c3f03b6ecf08cd62c7aac6908c474d305a99bcf773e59bbe44501fb80b4bdff0dffa2a896ebb6cd9c7f2ef1b777f6
AUX minetest-0.4.3-jthread.patch 558 SHA256 a223de98c1f75c89475a71a3c660358e5e34170f028574e309e1dcecdcdc81fb SHA512 278ce16f78596117b4485c5b45d0fadc74f11e464e94657296c0c2dd2222e162c1b38a88a63c4b181ae5871e9efb62405e0225301c9a689b0a9c2aab41e5d6b6 WHIRLPOOL dc89f93c3d2aff52b447378c8e11b9e30b4fee26e620d5f8f5c19c42e9d2c27e4ea41b1e4a0bc08ef7dcf1d5896a81d5e22457306e3273878891199aa44d2b98
AUX minetest-0.4.3-lua.patch 591 SHA256 bdd39451ca02bf16301b7ba139d41c40e49fe3f1a0827b4492dfb495a68c0e48 SHA512 d02d30b129f48835c1cb0a208cd0362af6a20aec248d1732621cf6a1bffc289c4f0946f43662c4b79a2948b6e87e42a02884b629073091d4f859c9608698de03 WHIRLPOOL 4b3877cc57e73f9b89367728c96b3897a33f9017524a00447b6984bc29815128be663bf94faa7094a57bbc6bd0dcbdf07f4ce48931cb7bec1ba7e1e12a43f3e1
AUX minetest-0.4.4-jthread.patch 558 SHA256 a223de98c1f75c89475a71a3c660358e5e34170f028574e309e1dcecdcdc81fb SHA512 278ce16f78596117b4485c5b45d0fadc74f11e464e94657296c0c2dd2222e162c1b38a88a63c4b181ae5871e9efb62405e0225301c9a689b0a9c2aab41e5d6b6 WHIRLPOOL dc89f93c3d2aff52b447378c8e11b9e30b4fee26e620d5f8f5c19c42e9d2c27e4ea41b1e4a0bc08ef7dcf1d5896a81d5e22457306e3273878891199aa44d2b98
AUX minetest-0.4.4-lua.patch 591 SHA256 bdd39451ca02bf16301b7ba139d41c40e49fe3f1a0827b4492dfb495a68c0e48 SHA512 d02d30b129f48835c1cb0a208cd0362af6a20aec248d1732621cf6a1bffc289c4f0946f43662c4b79a2948b6e87e42a02884b629073091d4f859c9608698de03 WHIRLPOOL 4b3877cc57e73f9b89367728c96b3897a33f9017524a00447b6984bc29815128be663bf94faa7094a57bbc6bd0dcbdf07f4ce48931cb7bec1ba7e1e12a43f3e1
AUX minetestserver.confd 313 SHA256 b360d2f80fb9793994a33778ef907a5b9220ba0a6a8a312d75499718cb9b5f81 SHA512 96fe764d78b383f294bce81e8631861057f309fd9d13f9397ca0c715396f3793f201f313a3507c0b190f41891441eb4fe418b5888cb73ffdea0d27969d0172c3 WHIRLPOOL 6be18593d29f593904760e19486eb77b3ac6bb6b02eaf7de54aba7f5cc117ebafa6ab355787015d3fc2baec6ef8368b3dc8e37bf5df9a901595ccc082adae941
AUX minetestserver.initd 570 SHA256 15d567577377cb8c2d6dc6e38b90e83aa08217ce4aa01e5f77b2b636c81c9e41 SHA512 dc0f106812bc52eec9436a9367b8eba0814642e8b74109c870046f8f9575ebb29561c168e05fe2b1faf12c17329cdc6b76442707ffe7dbe8fb7ee8cd4bb797c2 WHIRLPOOL 2ba91a77122142512c3123efc34dd19fd1437b68bcc1a51e17cd40040f3f6fc955927533472b98be047536db26679e45d5d54c2ad8512e9fe67bffd84a655e4e
DIST minetest-0.4.4.tar.gz 2104959 SHA256 127741d361e8642dd5b7e3aaad4b38bae4c19a5d1b8fac8f5acafbc2225f5de0 SHA512 36430c96753659becc33aa8f023da880a15ca209e9167243db7bfcefdf1290b0441889b085a90d744b5a1d0fccaf0fa73c394b315820f56e15218b9edc4c726c WHIRLPOOL 4a3cc86636a7c153681d413789bf7f196c715c1f8d11f868d5f7c9569ef7d07072c92adebf83f1b8c48b132e9976866ab476bf78fd153ebea37604c2e781f8b0
EBUILD minetest-0.4.4.ebuild 2506 SHA256 9d6b823596bf85692c674510a076b8fb5c4adbbdd9bf074e49929fc73582d9da SHA512 15a3661250885ad481d17a3941d9e07b95a6efb21005a56616f049c4eb8bc42a259106f00ad6170a992bc3aa4c69a48114a393ec509f4d77b4e1004c9e3c76de WHIRLPOOL 75ea031d23b2b98b99260386cf88efaac56e525812e6792bd15b9da2349d8a15fc1181d0c08a740da4597f302e05e24a38583b0e7a44fa65f026e52c61dfd746

View File

@ -0,0 +1,17 @@
From: Julian Ospald <hasufell@gentoo.org>
Date: Wed Sep 5 19:42:52 UTC 2012
Subject: cmake module
use shared lib
--- cmake/Modules/FindIrrlicht.cmake
+++ cmake/Modules/FindIrrlicht.cmake
@@ -50,7 +50,7 @@
/usr/include/irrlicht
)
- FIND_LIBRARY(IRRLICHT_LIBRARY NAMES libIrrlicht.a Irrlicht
+ FIND_LIBRARY(IRRLICHT_LIBRARY NAMES libIrrlicht.so
PATHS
/usr/local/lib
/usr/lib

View File

@ -0,0 +1,19 @@
From: hasufell <julian.ospald@googlemail.com>
Date: Mon Apr 23 21:34:29 UTC 2012
fix FIND_PATH to correctly find jthread
use shared lib
--- cmake/Modules/FindJthread.cmake
+++ cmake/Modules/FindJthread.cmake
@@ -1,8 +1,8 @@
# Look for jthread, use our own if not found
-FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h)
+FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h PATHS /usr/include/jthread)
-FIND_LIBRARY(JTHREAD_LIBRARY NAMES jthread)
+FIND_LIBRARY(JTHREAD_LIBRARY NAMES libjthread.so)
IF(JTHREAD_LIBRARY AND JTHREAD_INCLUDE_DIR)
SET( JTHREAD_FOUND TRUE )

View File

@ -0,0 +1,24 @@
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -142,10 +142,7 @@
find_package(Jthread REQUIRED)
find_package(Sqlite3 REQUIRED)
-# Do not use system-wide installation of Lua, because it'll likely be a
-# different version and/or has different build options.
-set(LUA_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lua/src")
-set(LUA_LIBRARY "lua")
+find_package(Lua51 REQUIRED)
configure_file(
"${PROJECT_SOURCE_DIR}/cmake_config.h.in"
@@ -480,9 +477,4 @@
add_subdirectory(sqlite)
endif (SQLITE3_FOUND)
-if (LUA_FOUND)
-else (LUA_FOUND)
- add_subdirectory(lua)
-endif (LUA_FOUND)
-
#end

View File

@ -0,0 +1,19 @@
From: hasufell <julian.ospald@googlemail.com>
Date: Mon Apr 23 21:34:29 UTC 2012
fix FIND_PATH to correctly find jthread
use shared lib
--- cmake/Modules/FindJthread.cmake
+++ cmake/Modules/FindJthread.cmake
@@ -1,8 +1,8 @@
# Look for jthread, use our own if not found
-FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h)
+FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h PATHS /usr/include/jthread)
-FIND_LIBRARY(JTHREAD_LIBRARY NAMES jthread)
+FIND_LIBRARY(JTHREAD_LIBRARY NAMES libjthread.so)
IF(JTHREAD_LIBRARY AND JTHREAD_INCLUDE_DIR)
SET( JTHREAD_FOUND TRUE )

View File

@ -0,0 +1,24 @@
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -142,10 +142,7 @@
find_package(Jthread REQUIRED)
find_package(Sqlite3 REQUIRED)
-# Do not use system-wide installation of Lua, because it'll likely be a
-# different version and/or has different build options.
-set(LUA_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lua/src")
-set(LUA_LIBRARY "lua")
+find_package(Lua51 REQUIRED)
configure_file(
"${PROJECT_SOURCE_DIR}/cmake_config.h.in"
@@ -480,9 +477,4 @@
add_subdirectory(sqlite)
endif (SQLITE3_FOUND)
-if (LUA_FOUND)
-else (LUA_FOUND)
- add_subdirectory(lua)
-endif (LUA_FOUND)
-
#end

View File

@ -0,0 +1,16 @@
# /etc/conf.d/minetest-server: config file for /etc/init.d/minetest-server
# user
USER="minetest"
# group
GROUP="@GROUP@"
# pidfile
PIDFILE="/var/run/minetest.pid"
# executable
MINETESTBIN="@BINDIR@/minetestserver"
# additional arguments for the server
ARGS="--logfile /var/lib/minetest/minetest-server.log"

View File

@ -0,0 +1,36 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
description="Minetest dedicated server"
depend() {
need net
}
start() {
ebegin "starting server"
start-stop-daemon \
--start \
--quiet \
--make-pidfile \
--pidfile "${PIDFILE}" \
--background \
--user ${USER} \
--group ${GROUP} \
--exec "${MINETESTBIN}" -- ${ARGS}
eend $?
}
stop() {
ebegin "stopping server"
start-stop-daemon \
--stop \
--signal 15 \
--quiet \
--pidfile "${PIDFILE}"
eend $?
}

View File

@ -0,0 +1,118 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils cmake-utils gnome2-utils vcs-snapshot user games
DESCRIPTION="An InfiniMiner/Minecraft inspired game"
HOMEPAGE="http://c55.me/minetest/"
SRC_URI="http://github.com/celeron55/minetest/tarball/${PV} -> ${P}.tar.gz"
LICENSE="LGPL-2.1+ CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dedicated nls +server"
RDEPEND="dev-db/sqlite:3
dev-lang/lua
>=dev-libs/jthread-1.2
sys-libs/zlib
!dedicated? (
app-arch/bzip2
media-libs/libogg
media-libs/libpng:0
media-libs/libvorbis
media-libs/openal
virtual/jpeg
virtual/opengl
x11-libs/libX11
x11-libs/libXxf86vm
)
nls? ( virtual/libintl )"
# XXX: support shared lib for irrlicht
DEPEND="${RDEPEND}
>=dev-games/irrlicht-1.7
nls? ( sys-devel/gettext )"
pkg_setup() {
games_pkg_setup
if use server || use dedicated ; then
enewuser ${PN} -1 -1 /var/lib/${PN} ${GAMES_GROUP}
fi
}
src_unpack() {
vcs-snapshot_src_unpack
}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-lua.patch
#rm -r src/{jthread,lua,sqlite} || die
# set paths
sed \
-e "s#@BINDIR@#${GAMES_BINDIR}#g" \
-e "s#@GROUP@#${GAMES_GROUP}#g" \
"${FILESDIR}"/minetestserver.confd > "${T}"/minetestserver.confd || die
}
src_configure() {
local mycmakeargs=(
-DRUN_IN_PLACE=0
-DCUSTOM_SHAREDIR="${GAMES_DATADIR}/${PN}"
-DCUSTOM_BINDIR="${GAMES_BINDIR}"
-DCUSTOM_DOCDIR="/usr/share/doc/${PF}"
$(usex dedicated "-DBUILD_SERVER=ON -DBUILD_CLIENT=OFF" "$(cmake-utils_use_build server SERVER) -DBUILD_CLIENT=ON")
$(cmake-utils_use_enable nls GETTEXT)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
if use server || use dedicated ; then
newinitd "${FILESDIR}"/minetestserver.initd minetest-server
newconfd "${T}"/minetestserver.confd minetest-server
fi
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
if ! use dedicated ; then
elog
elog "optional dependencies:"
elog " games-action/minetest_game (official mod)"
elog
fi
if use server || use dedicated ; then
elog
elog "Configure your server via /etc/conf.d/minetest-server"
elog "The user \"minetest\" is created with /var/lib/${PN} homedir."
elog "Default logfile is ~/minetest-server.log"
elog
fi
}
pkg_postrm() {
gnome2_icon_cache_update
}

View File

@ -0,0 +1,2 @@
DIST minetest_game-0.4.4.tar.gz 451470 SHA256 4bef31fd706ddecb72234b88a70b94e26065f9326c345b3a04b89b21e51eca86 SHA512 0ff051171ccc16bded0127ac6effd513729e986913d197d32a254f61a72385c6cd14fc29424032aa66b537a12c9c3f4d0488f54a15ff3c35b41a696bd3d300a0 WHIRLPOOL 89f5150a4786343effefc84fba16dd1b5fb39360812b1bcac3f57030a93aa3fcd1abed94f589a2e41d668f35e4186694bee95b8c1aa5a3b942149673b0450cc7
EBUILD minetest_game-0.4.4.ebuild 644 SHA256 c481d90c0bca56d1fd40adb5505a8a00d503a505e6bf2aca7c3cd3a56b3af703 SHA512 283a35632ad2236e7c8d66a157c6779f86929e67a16e36118bf9f3572fc5c73e2619f17e8c49b2c5a040eac9d3672685899da548279558258b7c304d43963807 WHIRLPOOL 49b7743d37ed1e08cc553ecfce420c56aa0f463642153c79fe394acaa48779f366410d68d83f127159d6e76875f1c1071bbf7dc9dd0e971af9d0b0dc0e110578

View File

@ -0,0 +1,29 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils cmake-utils gnome2-utils vcs-snapshot games
DESCRIPTION="Official mod for minetest"
HOMEPAGE="http://c55.me/minetest/"
SRC_URI="http://github.com/celeron55/minetest_game/tarball/${PV} -> ${P}.tar.gz"
LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="~games-action/minetest-${PV}[-dedicated]"
src_unpack() {
vcs-snapshot_src_unpack
}
src_install() {
insinto "${GAMES_DATADIR}"/minetest/games/${PN}
doins -r mods
doins game.conf
prepgamesdirs
}