diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-11-24 23:42:57 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-11-24 23:42:57 +0000 |
commit | 22e81792d661f52cbf6951d0f2b6552dc7f75223 (patch) | |
tree | f0848e2527b63faba8b8b4de6948179bfe3a2ae7 /games-action | |
parent | initial import (diff) | |
download | historical-22e81792d661f52cbf6951d0f2b6552dc7f75223.tar.gz historical-22e81792d661f52cbf6951d0f2b6552dc7f75223.tar.bz2 historical-22e81792d661f52cbf6951d0f2b6552dc7f75223.zip |
version bump wrt #492466
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/minetest/ChangeLog | 11 | ||||
-rw-r--r-- | games-action/minetest/Manifest | 23 | ||||
-rw-r--r-- | games-action/minetest/files/minetest-0.4.8-as-needed.patch | 35 | ||||
-rw-r--r-- | games-action/minetest/files/minetest-0.4.8-lua-luajit-option.patch | 56 | ||||
-rw-r--r-- | games-action/minetest/files/minetest-0.4.8-shared-irrlicht.patch | 23 | ||||
-rw-r--r-- | games-action/minetest/metadata.xml | 3 | ||||
-rw-r--r-- | games-action/minetest/minetest-0.4.8.ebuild | 144 |
7 files changed, 284 insertions, 11 deletions
diff --git a/games-action/minetest/ChangeLog b/games-action/minetest/ChangeLog index 27d962817a84..02349356891b 100644 --- a/games-action/minetest/ChangeLog +++ b/games-action/minetest/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for games-action/minetest # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/ChangeLog,v 1.4 2013/10/27 10:34:39 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/ChangeLog,v 1.5 2013/11/24 23:42:51 hasufell Exp $ + +*minetest-0.4.8 (24 Nov 2013) + + 24 Nov 2013; Julian Ospald <hasufell@gentoo.org> + +files/minetest-0.4.8-as-needed.patch, + +files/minetest-0.4.8-lua-luajit-option.patch, + +files/minetest-0.4.8-shared-irrlicht.patch, +minetest-0.4.8.ebuild, + metadata.xml: + version bump wrt #492466 27 Oct 2013; Julian Ospald <hasufell@gentoo.org> minetest-0.4.7.ebuild: stable for x86 wrt #486228 diff --git a/games-action/minetest/Manifest b/games-action/minetest/Manifest index c42bc2ef62ef..6c231564629d 100644 --- a/games-action/minetest/Manifest +++ b/games-action/minetest/Manifest @@ -5,20 +5,25 @@ AUX minetest-0.4.7-as-needed.patch 889 SHA256 95c4fb67c15daaea2ec241aa710d512244 AUX minetest-0.4.7-jthread-option-and-pkgconfig.patch 2740 SHA256 86d1ff02e35b7cf5b0d3b79808f9a5ea4e4fe16c8b47a07d35457af67d869caa SHA512 2b0e25ea1b0422b7c8e1d2ba9dd8863d752d14d5bb59f3e0deb23773c7fdaad05c874fbd5d96ce70f54ad96a47f934097092a90846b169dca8ea21aee315a5a7 WHIRLPOOL 00e303565388d2a267a6f581bc3b403beaa0f4f56bd41d68da5fdd2938f88318dfc6f527247cd1d4901ed8df39783f945ab142c3a968679babc114f5bd883a33 AUX minetest-0.4.7-lua-luajit-option.patch 1530 SHA256 311027d316eec9ea5d5de582cd57b684246164c86490f8484579b15f971ef0f1 SHA512 0dd5e31db5489f8974c64c367eff076b1da2cae0e66ce1e786291732a4b2c8d999d2c514f8f39796d5b3993f17029078862ffed29626baf1c996fff98999b22e WHIRLPOOL 619bba39c8d7267a097fea24b5c067769d6a02c3eea7b1368c5f9627f4a11f1626d66ea785beb17161ea8072f92924f0433155698ef0c56bf8a37b916252ca34 AUX minetest-0.4.7-shared-irrlicht.patch 614 SHA256 12d03fb8f9523028dacd5fd45d74dfe901b6d659698cf90aafa8f164018f28cc SHA512 d737d076db32bf62df73f6568f7423511ee27573c08fb975c8d876f7cd56a8f942804ed667b9988f3048cb1efdb52fca0ae9a4f1ff1e912607c7d3765b6149e7 WHIRLPOOL 33452e4c94744f20abebe4ce8db75260c83efb2588ba7235844a3a02dab72f3c6c5a60e62383c3dc3fd04db7cbc9b60bf2ebccd7f173fb12220223c9e9fa5546 +AUX minetest-0.4.8-as-needed.patch 876 SHA256 9be3034a8360300855d4c317e295d19e41ac3907cf852e135d6836cc616a7458 SHA512 c148df8878c1ab10fee8ed57029bc705db7c2343172ca0c7821b6bf87c3b755e3397ce1ea28e10200413604591e6a221702b1d097359156ec4adc4e5672f24c3 WHIRLPOOL c32e687f805cf7d4434a44066c975eeaa4f48615343a2e716ed2ee79219addba7649ce3947197da95eb3b1ec208bc925a9496af49401f0ce83336e8e464930eb +AUX minetest-0.4.8-lua-luajit-option.patch 1639 SHA256 ba5ea20c8683e54fb6ef1219ced42fdff37c495bcd5d806e663e40848670c125 SHA512 528f9967fc99b5beb1a07cfb20544cffb7a5093e0330f4ac35e24267babb368488e6fc8b3b0169dbb92a10c1a35dbecaf2e7bf47637b4cd2ad6bf01cc6d7c1f9 WHIRLPOOL ce1bd39f00d1c5fb263c5fc630d38602d58e124c32f360a67a2c3cdf62dea4d6033de68aee165e55baf222308c23f078f41e0471a8dc238875947bc2b0d5b10f +AUX minetest-0.4.8-shared-irrlicht.patch 614 SHA256 12d03fb8f9523028dacd5fd45d74dfe901b6d659698cf90aafa8f164018f28cc SHA512 d737d076db32bf62df73f6568f7423511ee27573c08fb975c8d876f7cd56a8f942804ed667b9988f3048cb1efdb52fca0ae9a4f1ff1e912607c7d3765b6149e7 WHIRLPOOL 33452e4c94744f20abebe4ce8db75260c83efb2588ba7235844a3a02dab72f3c6c5a60e62383c3dc3fd04db7cbc9b60bf2ebccd7f173fb12220223c9e9fa5546 AUX minetestserver.confd 313 SHA256 b360d2f80fb9793994a33778ef907a5b9220ba0a6a8a312d75499718cb9b5f81 SHA512 96fe764d78b383f294bce81e8631861057f309fd9d13f9397ca0c715396f3793f201f313a3507c0b190f41891441eb4fe418b5888cb73ffdea0d27969d0172c3 WHIRLPOOL 6be18593d29f593904760e19486eb77b3ac6bb6b02eaf7de54aba7f5cc117ebafa6ab355787015d3fc2baec6ef8368b3dc8e37bf5df9a901595ccc082adae941 AUX minetestserver.initd 682 SHA256 5c808e03db1d234922b960a1691326bdcd8195593edd6c9d5edec878d60f6e8d SHA512 08c652e7f32194b957220ebba6bd8aceb02f9da69cb5e513aedbc6942671df1d4371282a2798f7b83c9d38fbd2c16e46147b963219b8b456881517920cb446f2 WHIRLPOOL 30fc5942a292a6aaed846e9fa44038cc5e8bc3d4466d5ff17f7bf6c0fd753e13a8c484a6fa3de5705e2ec4633ba45895ff6ab25f41b07228eebd7c9e96b3f19a DIST minetest-0.4.7.tar.gz 2775618 SHA256 08aa3695ae32aa5e1c1468fba3159fa84abcf465da89324af2f356eaa9b0b29e SHA512 59faa70e081ecf1d440ac919124a81a06996fbf86237f06b687db2015d53dc5e180d65f2d1aa4f01f7078ee8cf4134f645bc4a21eab3b37f976d7b791ac3e369 WHIRLPOOL 85bab3251e095061249b345c4f45fdb6bb5517f6f189479f065ec62ec81fae458a1fa2d793468f14eb7bd16245380d9a2903158e93626ae362e8a18bb6101ecc +DIST minetest-0.4.8.tar.gz 5157034 SHA256 657329dd4733801617f32f110e527ce6e0fc93d30168683842f881414d28c309 SHA512 2ad93bc449bd6ba77f81584e3aec90af8f8d632c7e8238ac3b7fabe2759636f2a0652ff697b53f1d95e95cf96493b1915ddedf18e5df3ef97d5638adce9c9fd4 WHIRLPOOL bf464ace8dc707c4f2875e7041d432462c6988f7b40a2747b4b1b6c2c6a231581c4ef9b144ba632ffe15d179e1530e2a0a5265355cae852488e84838bced727b EBUILD minetest-0.4.7.ebuild 3451 SHA256 74fe769a4885597f7fc605f1390b1d87539924fddcfb9150e8abc6d73abced81 SHA512 31af611d9281041a0a1b11d39b832f628afee0dbb31bb6f7bb5bdd2453857f7cc63f9b22c73da229a5f266ee8324a1e3f47140904f6ddefd7f9839ed9549450b WHIRLPOOL e29b4eb562bf67cc37170bc140d914a4bb620ab863c0a6318cfd8051e6deff43510d0bda6a1b2ec95392653e23c2023b3018bb18c76c773871314bcfbdb18a74 -MISC ChangeLog 927 SHA256 4310ef506570188efc97dc80ae3a841599b6a4fa7ef6534f0df8d983542c1204 SHA512 8e376293d4a9774e104bc455a46144ea372d6f1d54a3c169ed3840619791f095146364fa8117e441aeb6c3dc32be85e881ec97e1b8302ea6439d5e6a43df14c5 WHIRLPOOL 98c9842bbb9c80fbefc9cade9b393e404d2e48c32f49e602d27f1c4cf8e48dc0089489394b13e9dcbd0ba3bd491e1b7526fdede57cb12cabe6ecec4151f05d33 -MISC metadata.xml 1851 SHA256 8b92715ad8c2abf2d6f02d2eb73b8d2290185d936328eab71ecc4daffddb48c2 SHA512 ba997212a5ba51a1dc9f6fbaf12fe0d8a0eff6fc8820f0d6931768fa38fa284bff7f56e62858994c2429a3467048f61f7b497f3b6f881dd604e2d3363de20721 WHIRLPOOL 1daaf7e50244697089b18cc0cd2ddcb49d4cce960cee74b3cfed5d90d395b5ad49e43113bcf883902ba2fddce6e973c307dd914fed01898a192a8dbd73050535 +EBUILD minetest-0.4.8.ebuild 3450 SHA256 cf75a174ae8fe2e6d4e28689eae601d73237828926c8603c231e594cb6cd801b SHA512 e264a7b7d65057b13648da7a8914f5797cd4052cb2d36b61312159cb4c20ffa417d88b49271ca1383741c6c748b8c888da5e35d351525989161a57e1b201c706 WHIRLPOOL dedfeff6e7d77accaf9f00b622dc5236f62a16826f08f0faee1f398ff42e1f6b19b5908d3c2fc64cc0040f2b0b5223701c9dbded60e869e4d26749ae846137c0 +MISC ChangeLog 1214 SHA256 c21405b5e895edbf931eea1fe2d33950a74133ff195bea5e2684fd710ec1e7d6 SHA512 967f7f4cd5d2f67b58552706bf8a05b8760e63b075608955f77338afb70aaafc8cf9b7afa8a5de0d713cfc1fa6dce0063326d8836d6e1de2f8c1130007e1bbc7 WHIRLPOOL 54df5d7e05ee94e7a36a72fa733390609cf37e0c539d765d2661f60d2e4e89cfa098666231145179b0a5294d36bfb22626589fc4474254cc4d9ccbd8795000f2 +MISC metadata.xml 1903 SHA256 5b6707ba69f9646cdaef945da26950237bcd3ac577436f0abbfd408c105e2a0d SHA512 8272162cb4b5524a026488ceaf6cb8cedd4460f362e56b70ee6d02e532cf1956eb8f4f3cb2b25bd47138c589c32d8a07bd2c75ab2fe76b2985c3e575b3c45aba WHIRLPOOL 4cdc00f61a8604f6aed29d45080900135d27d57f462af464811045eb564259c8ee0e124c2b3635d92b7039d4c1e7d965aa343447f79869fec4ef90ba253dced5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJSbOxDAAoJEFpvPKfnPDWz0DwH+wUnFYblctQYnhDcKueLug0P -WbL8k3mqdHTRp5nn1xh9HrR2yifWrFr0osucgLpeD8yJ31wxtZXBcd98rf6SfpRX -+M8AWv8Ndyt1gigVpOwNUpyv/JaYzY3hxVntAa6Fjd9iYLT/USOoce1wzjzykI9E -Mv5oLygirJIfZipGiS+tHzRCTJdlZAXENew44DChbOMto5kpZgkUE941cYF3YDZc -Ybn8UjYJRbXCBy/m2Qrok9j16iJJYYFMpeFluM45u3hYATJZxn316qaG8pn3K3Im -IvYhFDdX5bCavkGI3tI9SiMLagBMNhnvpU85Km+wEIlDhobkpRE8bQlIhU/1t10= -=MQw7 +iQEcBAEBCAAGBQJSko8AAAoJEFpvPKfnPDWzigUH/jr+NUoVbDh+NP7gcQQJDYxY +JVSajKugkxoOBdUkRLPbN5Mi0aJBXXsie521eAFGUZG/nVlCqKvaLRKIysixFU6+ +w2rk7ih7J6jtCLkJ+Na+6MY1GPptAkPw9MKjKHFDdoyUD1KuCtod/LHIaK+2OHV3 +sn7r3c7vwB/9oA+L62v8MzVXJyqy2ZLi4nvIqRxoAND3DG2kQ8qjEEDEmrIoyvlZ +KFUP8g3VnROh3p4WDOCiQr5SA1xOf846T6L9XkmhLTEsOQdbfqADANUL/dUG1ooe +R1i7xVwrKbNbLGVEyz+zB22+wV5anvrpMXR+fiwdqFAUw7L95GYt06qWfvgtKrc= +=3dfC -----END PGP SIGNATURE----- diff --git a/games-action/minetest/files/minetest-0.4.8-as-needed.patch b/games-action/minetest/files/minetest-0.4.8-as-needed.patch new file mode 100644 index 000000000000..803ea0284827 --- /dev/null +++ b/games-action/minetest/files/minetest-0.4.8-as-needed.patch @@ -0,0 +1,35 @@ +commit a88bfd5b77fa0b5c60e438c0011dbdcee5e14dfd +Author: hasufell <hasufell@gentoo.org> +Date: Mon Nov 25 00:28:55 2013 +0100 + + CMAKE: fix linking order + + this also fixes linking with as-needed wrt + https://github.com/minetest/minetest/issues/617 + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index a1fee7a..a72bd4a 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -427,18 +427,18 @@ if(BUILD_CLIENT) + target_link_libraries( + ${PROJECT_NAME} + ${ZLIB_LIBRARIES} +- ${IRRLICHT_LIBRARY} ++ ${X11_LIBRARIES} + ${OPENGL_LIBRARIES} ++ ${OPENGLES2_LIBRARIES} + ${JPEG_LIBRARIES} + ${BZIP2_LIBRARIES} + ${PNG_LIBRARIES} +- ${X11_LIBRARIES} ++ ${IRRLICHT_LIBRARY} + ${GETTEXT_LIBRARY} + ${SOUND_LIBRARIES} + ${SQLITE3_LIBRARY} + ${LUA_LIBRARY} + ${JSON_LIBRARY} +- ${OPENGLES2_LIBRARIES} + ${PLATFORM_LIBS} + ${CLIENT_PLATFORM_LIBS} + ) diff --git a/games-action/minetest/files/minetest-0.4.8-lua-luajit-option.patch b/games-action/minetest/files/minetest-0.4.8-lua-luajit-option.patch new file mode 100644 index 000000000000..9badeaeb24ec --- /dev/null +++ b/games-action/minetest/files/minetest-0.4.8-lua-luajit-option.patch @@ -0,0 +1,56 @@ +commit d8dbda3636a91eba52c97450b58f767d5a4a376e +Author: hasufell <hasufell@gentoo.org> +Date: Mon Nov 25 00:25:55 2013 +0100 + + add USE_LUAJIT option + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index a30dc98..a1fee7a 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -179,24 +179,29 @@ if(USE_FREETYPE) + endif(USE_FREETYPE) + + +-find_library(LUA_LIBRARY luajit +- NAMES luajit-5.1) +-find_path(LUA_INCLUDE_DIR luajit.h +- NAMES luajit.h +- PATH_SUFFIXES luajit-2.0) +-message (STATUS "LuaJIT library: ${LUA_LIBRARY}") +-message (STATUS "LuaJIT headers: ${LUA_INCLUDE_DIR}") ++option(USE_LUAJIT "Use luajit instead of lua" OFF) + + set(USE_LUAJIT 0) +-if(LUA_LIBRARY AND LUA_INCLUDE_DIR) +- message (STATUS "LuaJIT found.") +- set(USE_LUAJIT 1) +-else(LUA_LIBRARY AND LUA_INCLUDE_DIR) +- message (STATUS "LuaJIT not found, using bundled Lua.") +- set(LUA_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lua/src") +- set(LUA_LIBRARY "lua") +- add_subdirectory(lua) +-endif(LUA_LIBRARY AND LUA_INCLUDE_DIR) ++if(USE_LUAJIT) ++ find_library(LUA_LIBRARY luajit ++ NAMES luajit-5.1) ++ find_path(LUA_INCLUDE_DIR luajit.h ++ NAMES luajit.h ++ PATH_SUFFIXES luajit-2.0) ++ if(LUA_LIBRARY AND LUA_INCLUDE_DIR) ++ message (STATUS "LuaJIT found") ++ set(USE_LUAJIT 1) ++ else(LUA_LIBRARY AND LUA_INCLUDE_DIR) ++ message (FATAL_ERROR "LuaJIT not found!") ++ endif(LUA_LIBRARY AND LUA_INCLUDE_DIR) ++else(USE_LUAJIT) ++ find_package(Lua51) ++ if(LUA51_FOUND) ++ message (STATUS "Lua51 found") ++ else(LUA51_FOUND) ++ message (FATAL_ERROR "Lua51 not found!") ++ endif(LUA51_FOUND) ++endif(USE_LUAJIT) + + mark_as_advanced(LUA_LIBRARY) + mark_as_advanced(LUA_INCLUDE_DIR) diff --git a/games-action/minetest/files/minetest-0.4.8-shared-irrlicht.patch b/games-action/minetest/files/minetest-0.4.8-shared-irrlicht.patch new file mode 100644 index 000000000000..b552c0937039 --- /dev/null +++ b/games-action/minetest/files/minetest-0.4.8-shared-irrlicht.patch @@ -0,0 +1,23 @@ +commit 11d35e62fe13b47c5b34139559e650dfe6ebbd84 +Author: hasufell <julian.ospald@googlemail.com> +Date: Sat Jun 8 13:40:30 2013 +0200 + + CMAKE: use shared lib from Irrlicht + +diff --git a/cmake/Modules/FindIrrlicht.cmake b/cmake/Modules/FindIrrlicht.cmake +index bd00422..4632993 100644 +--- a/cmake/Modules/FindIrrlicht.cmake ++++ b/cmake/Modules/FindIrrlicht.cmake +@@ -50,10 +50,11 @@ else() + /usr/include/irrlicht + ) + +- FIND_LIBRARY(IRRLICHT_LIBRARY NAMES libIrrlicht.a Irrlicht ++ FIND_LIBRARY(IRRLICHT_LIBRARY NAMES libIrrlicht.so Irrlicht + PATHS + /usr/local/lib + /usr/lib ++ /usr/lib64 + ) + endif() + diff --git a/games-action/minetest/metadata.xml b/games-action/minetest/metadata.xml index fd7ce545d351..103f9905e399 100644 --- a/games-action/minetest/metadata.xml +++ b/games-action/minetest/metadata.xml @@ -19,7 +19,7 @@ Minetest is designed to be simple, stable and portable. It is lightweight enough to run on fairly old hardware. It currently runs playably on a laptop with Intel 945GM graphics. Though, as - for the CPU, dualcore is recommended. + for the CPU, dualcore is recommended. Features * Walk around, dig and build in an infinite voxel world, @@ -35,6 +35,7 @@ * Supports multiple languages, translated by the community. </longdescription> <use> + <flag name="leveldb">Enable LevelDB backend</flag> <flag name="luajit"> Use <pkg>dev-lang/luajit</pkg> instead of <pkg>dev-lang/lua</pkg> diff --git a/games-action/minetest/minetest-0.4.8.ebuild b/games-action/minetest/minetest-0.4.8.ebuild new file mode 100644 index 000000000000..7d195d6e01ad --- /dev/null +++ b/games-action/minetest/minetest-0.4.8.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/minetest-0.4.8.ebuild,v 1.1 2013/11/24 23:42:51 hasufell Exp $ + +EAPI=5 +inherit eutils cmake-utils gnome2-utils vcs-snapshot user games + +DESCRIPTION="An InfiniMiner/Minecraft inspired game" +HOMEPAGE="http://minetest.net/" +SRC_URI="http://github.com/minetest/minetest/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+ CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+curl dedicated leveldb luajit nls +server +sound +truetype" + +RDEPEND="dev-db/sqlite:3 + >=dev-games/irrlicht-1.8-r2 + sys-libs/zlib + curl? ( net-misc/curl ) + !dedicated? ( + app-arch/bzip2 + media-libs/libpng:0 + virtual/jpeg + virtual/opengl + x11-libs/libX11 + x11-libs/libXxf86vm + sound? ( + media-libs/libogg + media-libs/libvorbis + media-libs/openal + ) + truetype? ( media-libs/freetype:2 ) + ) + leveldb? ( dev-libs/leveldb ) + luajit? ( dev-lang/luajit:2 ) + !luajit? ( >=dev-lang/lua-5.1.4 ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + 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-luajit-option.patch \ + "${FILESDIR}"/${P}-shared-irrlicht.patch \ + "${FILESDIR}"/${P}-as-needed.patch + + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + for i in $(cd po ; echo *) ; do + if ! has ${i} ${LINGUAS} ; then + rm -r po/${i} || die + fi + done + fi + + # jthread is modified + # json is modified + rm -r src/{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}" + -DCUSTOM_LOCALEDIR="/usr/share/locale" + $(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_use_enable curl CURL) + $(cmake-utils_use_use luajit LUAJIT) + $(cmake-utils_use_enable truetype FREETYPE) + $(cmake-utils_use_enable sound SOUND) + $(cmake-utils_use_enable leveldb LEVELDB) + ) + + 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 " games-action/minetest_common (official mod)" + elog " games-action/minetest_build (official mod)" + elog " games-action/minetest_survival (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 +} |