diff options
author | hasufell <julian.ospald@googlemail.com> | 2012-04-03 06:44:25 +0200 |
---|---|---|
committer | hasufell <julian.ospald@googlemail.com> | 2012-04-03 06:44:25 +0200 |
commit | 663d90d2793854cbaa4625be66141039a014da55 (patch) | |
tree | 32b69b081acf2a93bb05a1dd68c8be90c117f717 | |
parent | Automatic update to use.local.desc (diff) | |
download | sunrise-reviewed-663d90d2793854cbaa4625be66141039a014da55.tar.gz sunrise-reviewed-663d90d2793854cbaa4625be66141039a014da55.tar.bz2 sunrise-reviewed-663d90d2793854cbaa4625be66141039a014da55.zip |
games-action/minetest: New Ebuild for bug 399867 thanks to binki
-rw-r--r-- | games-action/minetest/ChangeLog | 12 | ||||
-rw-r--r-- | games-action/minetest/Manifest | 6 | ||||
-rw-r--r-- | games-action/minetest/files/minetest-0.4_pre20120320-cmake.patch | 31 | ||||
-rw-r--r-- | games-action/minetest/files/minetest-0.4_pre20120320-sharepath.patch | 27 | ||||
-rw-r--r-- | games-action/minetest/metadata.xml | 26 | ||||
-rw-r--r-- | games-action/minetest/minetest-0.4_pre20120320.ebuild | 56 |
6 files changed, 158 insertions, 0 deletions
diff --git a/games-action/minetest/ChangeLog b/games-action/minetest/ChangeLog new file mode 100644 index 000000000..c522c9e16 --- /dev/null +++ b/games-action/minetest/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for games-action/minetest +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*minetest-0.4_pre20120320 (03 Apr 2012) + + 03 Apr 2012; hasufell <julian.ospald@googlemail.com> + +minetest-0.4_pre20120320.ebuild, + +files/minetest-0.4_pre20120320-cmake.patch, + +files/minetest-0.4_pre20120320-sharepath.patch, +metadata.xml: + New Ebuild for bug 399867 thanks to binki + diff --git a/games-action/minetest/Manifest b/games-action/minetest/Manifest new file mode 100644 index 000000000..a06af590d --- /dev/null +++ b/games-action/minetest/Manifest @@ -0,0 +1,6 @@ +AUX minetest-0.4_pre20120320-cmake.patch 1018 RMD160 e882484be3a954d78ce52464613c188b9fe2b001 SHA1 c2caaf1b476777cbab0b0f1bb875a1706e5b93b5 SHA256 a6e4841a0e80d374e7de1b246a67c2f5a8e01c1c1314bc5cd6e159a868bdbe3e +AUX minetest-0.4_pre20120320-sharepath.patch 847 RMD160 88829c0160eff6eb015946de3f4583f4c067fc58 SHA1 a7e532adee195351225149d98bc3595284593d52 SHA256 6b509da3fe716116e89000b9348535dcbde398df5a8592eebd411ad9d8527694 +DIST minetest-0.4_pre20120320.tar.gz 1968841 RMD160 dd3ca005c4ee7139960614fd7a2b2e4a31dcfe71 SHA1 d3ad5f7434bf92425fed975e2c659cc6f79e73ea SHA256 1c748e4b418d1333c8e7e5403ca48d863bb80451a688d2ac6859e3a1c31d9a17 +EBUILD minetest-0.4_pre20120320.ebuild 1135 RMD160 a07b86ed000aa70dbce758dd4225f0626cfa87fa SHA1 a3312483501b37aa4f2b278b39ab7958b962c57c SHA256 fc1ee9590bf7ac892641508624e24514f7f3cae9f374ffaf938defc54ffd5eb7 +MISC ChangeLog 412 RMD160 43d85647e115e6e2f8471de50b2b6171817de6e1 SHA1 e3ae6ebf654742cf74c91e111f997cc15696ebeb SHA256 65325223a6ee0330f610a1b0ebdbc9fdca1c7bb221d681a9a702766dfc0e9504 +MISC metadata.xml 1067 RMD160 de95c3440752579893031dfc078b07ed45b54709 SHA1 1f9751d126263c18edbb1df4276c60ea84788bef SHA256 d730d94d2e520dc4dd2e01f442706b941d7d607787a5755356094be7f1919947 diff --git a/games-action/minetest/files/minetest-0.4_pre20120320-cmake.patch b/games-action/minetest/files/minetest-0.4_pre20120320-cmake.patch new file mode 100644 index 000000000..3ae3e7a98 --- /dev/null +++ b/games-action/minetest/files/minetest-0.4_pre20120320-cmake.patch @@ -0,0 +1,31 @@ +From: Julian Ospald <julian.ospald@googlemail.com> +Date: Tue Apr 3 03:33:30 UTC 2012 + +make install-paths modifiable +prepend "CMAKE_INSTALL_PREFIX" to SHAREDIR for proper variable substitution + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -73,14 +73,14 @@ + set(ICONDIR "unix/icons") + set(LOCALEDIR "locale") + else() +- set(SHAREDIR "share/${PROJECT_NAME}") +- set(BINDIR "bin") +- set(DOCDIR "share/doc/${PROJECT_NAME}") +- set(MANDIR "share/man") +- set(EXAMPLE_CONF_DIR ${DOCDIR}) +- set(XDG_APPS_DIR "share/applications") +- set(ICONDIR "share/icons") +- set(LOCALEDIR "share/locale") ++ set(SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}" CACHE PATH "") ++ set(BINDIR "bin" CACHE PATH "") ++ set(DOCDIR "share/doc/${PROJECT_NAME}" CACHE PATH "") ++ set(MANDIR "share/man" CACHE PATH "") ++ set(EXAMPLE_CONF_DIR ${DOCDIR} CACHE PATH "") ++ set(XDG_APPS_DIR "share/applications" CACHE PATH "") ++ set(ICONDIR "share/icons" CACHE PATH "") ++ set(LOCALEDIR "share/locale" CACHE PATH "") + endif() + endif() + diff --git a/games-action/minetest/files/minetest-0.4_pre20120320-sharepath.patch b/games-action/minetest/files/minetest-0.4_pre20120320-sharepath.patch new file mode 100644 index 000000000..a3ba5c50c --- /dev/null +++ b/games-action/minetest/files/minetest-0.4_pre20120320-sharepath.patch @@ -0,0 +1,27 @@ +From: Julian Ospald <julian.ospald@googlemail.com> +Date: Tue Apr 3 03:33:30 UTC 2012 + +make path_share look explicitly in SHAREDIR instead of potentially-broken +relative path + +--- src/porting.cpp ++++ src/porting.cpp +@@ -244,7 +244,7 @@ + + pathRemoveFile(buf, '/'); + +- path_share = std::string(buf) + "/../share/" + PROJECT_NAME; ++ path_share = std::string(SHAREDIR); + //path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME; + if (!fs::PathExists(path_share)) { + dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\""; +--- src/cmake_config.h.in ++++ src/cmake_config.h.in +@@ -4,6 +4,7 @@ + #define CMAKE_CONFIG_H + + #define PROJECT_NAME "@PROJECT_NAME@" ++#define SHAREDIR "@SHAREDIR@" + #define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" + #define VERSION_STRING "@VERSION_STRING@" + #define USE_GETTEXT @USE_GETTEXT@ diff --git a/games-action/minetest/metadata.xml b/games-action/minetest/metadata.xml new file mode 100644 index 000000000..bc3249b06 --- /dev/null +++ b/games-action/minetest/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-wanted@gentoo.org</email> + </maintainer> + <use> + <flag name="client">Minetest client</flag> + <flag name="server">Minetest server</flag> + </use> + <longdescription lang="en"> + Minetest is a free and open source infinite-world block sandbox game and + a game engine, inspired by InfiniMiner, Minecraft and the like. It has + been in development since October 2010. + It is Free and Open Source Software, released under the GPL. This way + it is more readily available to Linux users, and random people (you!) + can fix bugs and experiment effectively. + Minetest is developed by Perttu "celeron55" Ahola and a number of + contributors. + Minetest is technically 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. + </longdescription> +</pkgmetadata> + diff --git a/games-action/minetest/minetest-0.4_pre20120320.ebuild b/games-action/minetest/minetest-0.4_pre20120320.ebuild new file mode 100644 index 000000000..4a13a04c2 --- /dev/null +++ b/games-action/minetest/minetest-0.4_pre20120320.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit eutils cmake-utils games + +DESCRIPTION="Building single/multiplayer game" +HOMEPAGE="http://c55.me/minetest/" +SRC_URI="https://github.com/celeron55/${PN}/tarball/${PV%_pre*}.dev-${PV#*_pre} -> + ${PF}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="+client nls +server" + +DEPEND="app-arch/bzip2 + dev-db/sqlite:3 + >=dev-games/irrlicht-1.7 + >=dev-libs/jthread-1.2 + media-libs/libpng + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXxf86vm + virtual/jpeg + virtual/opengl + nls? ( sys-devel/gettext )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/celeron55-${PN}-94f1ab4 + +src_prepare() { + epatch "${FILESDIR}"/${P}-cmake.patch \ + "${FILESDIR}"/${P}-sharepath.patch +} + +src_configure() { + local mycmakeargs=( + -DRUN_IN_PLACE=0 + -DSHAREDIR="${GAMES_DATADIR}/${PN}" + -DBINDIR="${GAMES_BINDIR}" + $(cmake-utils_use_build client CLIENT) + $(cmake-utils_use_build server SERVER) + $(cmake-utils_use_use nls GETTEXT) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} |