diff options
author | hasufell <julian.ospald@googlemail.com> | 2012-04-23 02:38:16 +0200 |
---|---|---|
committer | hasufell <julian.ospald@googlemail.com> | 2012-04-23 02:38:16 +0200 |
commit | 00e524e8415020ef0d5e152995382164d35e7b44 (patch) | |
tree | f3698143bf31738eb03e6585060ef9e0e4a876b4 /dev-games | |
parent | Mask packages due to changes in gentoo-x86. (diff) | |
download | sunrise-00e524e8415020ef0d5e152995382164d35e7b44.tar.gz sunrise-00e524e8415020ef0d5e152995382164d35e7b44.tar.bz2 sunrise-00e524e8415020ef0d5e152995382164d35e7b44.zip |
dev-games/gigi: New Ebuild for bug 349367 thanks to all
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/gigi/ChangeLog | 12 | ||||
-rw-r--r-- | dev-games/gigi/Manifest | 6 | ||||
-rw-r--r-- | dev-games/gigi/files/gigi-0.8.0_pre1074-devil.patch | 18 | ||||
-rw-r--r-- | dev-games/gigi/files/gigi-0.8.0_pre1074-docdir.patch | 18 | ||||
-rw-r--r-- | dev-games/gigi/files/gigi-0.8.0_pre1074-libtool.patch | 96 | ||||
-rw-r--r-- | dev-games/gigi/gigi-0.8.0_pre1074.ebuild | 92 | ||||
-rw-r--r-- | dev-games/gigi/metadata.xml | 13 |
7 files changed, 255 insertions, 0 deletions
diff --git a/dev-games/gigi/ChangeLog b/dev-games/gigi/ChangeLog new file mode 100644 index 000000000..d3fb37c24 --- /dev/null +++ b/dev-games/gigi/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-games/gigi +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*gigi-0.8.0_pre1074 (23 Apr 2012) + + 23 Apr 2012; hasufell <julian.ospald@googlemail.com> + +gigi-0.8.0_pre1074.ebuild, +files/gigi-0.8.0_pre1074-devil.patch, + +files/gigi-0.8.0_pre1074-docdir.patch, + +files/gigi-0.8.0_pre1074-libtool.patch, +metadata.xml: + New Ebuild for bug 349367 thanks to all + diff --git a/dev-games/gigi/Manifest b/dev-games/gigi/Manifest new file mode 100644 index 000000000..e6d1e6639 --- /dev/null +++ b/dev-games/gigi/Manifest @@ -0,0 +1,6 @@ +AUX gigi-0.8.0_pre1074-devil.patch 582 RMD160 6fc612643fee6574c37cd7d512f847b2b03895f5 SHA1 bee591cf24da4040c6952ba2ba4e06070375a2f6 SHA256 c01b3ea268c7406dfdea59bda69e2344e0b2add156ab92599c1bbf00721dad41 +AUX gigi-0.8.0_pre1074-docdir.patch 469 RMD160 6ef08b1682561501f18064409b829ddef796193a SHA1 22d8704e8e8587ed622f8da5465db54260a55ecf SHA256 d1d6e79f5e59131081850be8a174ccf342e36eef7b36ca671f5d011249710c4e +AUX gigi-0.8.0_pre1074-libtool.patch 3086 RMD160 ceb8f724f41615c527f984ce8c2d5ef9669cffed SHA1 8e3b51762927d2d82f1122f5a166b3109023b80c SHA256 61205615f6b4330b8afcd94477f83ef8b9290302fc3b961a44db4b37feb5f86b +EBUILD gigi-0.8.0_pre1074.ebuild 2271 RMD160 5e6c56ffcea248c87454d2e3f4174ca1e45df8b9 SHA1 a25cd6a9479ed4984ec419b65de57a07e9ff61a2 SHA256 71ca8d281939195f9adca2a90231fc9e642f4164f2ced210fd6c957e09682315 +MISC ChangeLog 417 RMD160 3beb476e8e03e2a9eb29d974a1b9aaec70f919a0 SHA1 64fcefb4d3655e9f87f6fbf5157f4a8555291f6b SHA256 512f56778f026dd7d82ba6ded62bda6047891dc5b91069924f8878d589c51b5b +MISC metadata.xml 492 RMD160 83ce68de26386f7f8d688be95c688301fcc78486 SHA1 8a9df3aa10107e398b354714b65e83a3d9c61fcf SHA256 29e8616a7da0d0a1fc06ab827d5af181d259687e0a822f007473de1898fdceee diff --git a/dev-games/gigi/files/gigi-0.8.0_pre1074-devil.patch b/dev-games/gigi/files/gigi-0.8.0_pre1074-devil.patch new file mode 100644 index 000000000..406a9b46e --- /dev/null +++ b/dev-games/gigi/files/gigi-0.8.0_pre1074-devil.patch @@ -0,0 +1,18 @@ +From: hasufell <julian.ospald@googlemail.com> +Date: Sun Apr 22 23:43:33 UTC 2012 + +fix devil library variables + +!! applied on top of libtool.patch !! + +--- GG/src/CMakeLists.txt ++++ GG/src/CMakeLists.txt +@@ -176,7 +176,7 @@ + + set(THIS_LIB_LINK_LIBS ${Boost_LIBRARIES} ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} ${LIBTOOL_LIB}) + if (USE_DEVIL) +- list(APPEND THIS_LIB_LINK_LIBS ${IL_LIBRARY} ${ILUT_LIBRARY}) ++ list(APPEND THIS_LIB_LINK_LIBS ${IL_LIBRARIES} ${ILU_LIBRARIES} ${ILUT_LIBRARIES}) + else () + if (JPEG_FOUND) + list(APPEND THIS_LIB_LINK_LIBS ${JPEG_LIBRARIES}) diff --git a/dev-games/gigi/files/gigi-0.8.0_pre1074-docdir.patch b/dev-games/gigi/files/gigi-0.8.0_pre1074-docdir.patch new file mode 100644 index 000000000..c2deda266 --- /dev/null +++ b/dev-games/gigi/files/gigi-0.8.0_pre1074-docdir.patch @@ -0,0 +1,18 @@ +From: hasufell <julian.ospald@googlemail.com> +Date: Thu Apr 19 19:26:44 UTC 2012 + +fixed hardcoded DOCDIR + +--- GG/CMakeLists.txt ++++ GG/CMakeLists.txt +@@ -332,8 +332,8 @@ + endif () + if (BUILD_DOCUMENTATION AND NOT NO_DOCS_PACKAGE) + install( +- DIRECTORY ${CMAKE_BINARY_DIR}/doc/GG +- DESTINATION doc ++ DIRECTORY ${CMAKE_BINARY_DIR}/doc/GG/ ++ DESTINATION ${DOCDIR} + ) + endif () + elseif (BUILD_DOCUMENTATION) diff --git a/dev-games/gigi/files/gigi-0.8.0_pre1074-libtool.patch b/dev-games/gigi/files/gigi-0.8.0_pre1074-libtool.patch new file mode 100644 index 000000000..8bbf3e6aa --- /dev/null +++ b/dev-games/gigi/files/gigi-0.8.0_pre1074-libtool.patch @@ -0,0 +1,96 @@ +From: hasufell <julian.ospald@googlemail.com> +Date: Sun Apr 22 23:09:06 UTC 2012 + +use system ltdl header and link against libltdl + +--- GG/CMakeLists.txt ++++ GG/CMakeLists.txt +@@ -228,36 +228,6 @@ + ######################################## + # Header Generation # + ######################################## +-if (NOT EXISTS ${CMAKE_HOME_DIRECTORY}/libltdl/config.h) +- if (UNIX) +- message("-- Configuring libltdl using \"libltdl/configure\" ...") +- execute_process( +- COMMAND ${CMAKE_HOME_DIRECTORY}/libltdl/configure +- WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/libltdl +- OUTPUT_QUIET +- ) +- else () +- file(WRITE ${CMAKE_HOME_DIRECTORY}/libltdl/config.h +- "/* WARNING: Generated by GG's build system. All local changes will be lost! */ +-#define error_t int +-#define HAVE_STDIO_H 1 +-#define HAVE_STDLIB_H 1 +-#define HAVE_STRING_H 1 +-#define HAVE_CTYPE_H 1 +-#define HAVE_MEMORY_H 1 +-#define HAVE_ERRNO_H 1 +-#define __WIN32__ +-#define HAVE_MEMCPY 1 +-#define HAVE_MEMMOVE 1 +-#define LTDL_OBJDIR \".libs\" +-#define LTDL_DLOPEN_DEPLIBS 1 +-#define LTDL_SHLIBPATH_VAR \"PATH\" +-#define LTDL_SHLIB_EXT \".dll\" +-" +- ) +- endif () +-endif () +- + configure_file( + ${CMAKE_HOME_DIRECTORY}/cmake/Config.h.in + ${CMAKE_HOME_DIRECTORY}/GG/Config.h +--- GG/src/CMakeLists.txt ++++ GG/src/CMakeLists.txt +@@ -49,8 +49,6 @@ + dialogs/ColorDlg.cpp + dialogs/FileDlg.cpp + dialogs/ThreeButtonDlg.cpp +- +- ../libltdl/ltdl.c + + adobe/adam.cpp + adobe/adam_evaluate.cpp +@@ -162,14 +160,21 @@ + ) + endif () + +-set_source_files_properties(${CMAKE_HOME_DIRECTORY}/libltdl/ltdl.c PROPERTIES COMPILE_DEFINITIONS HAVE_CONFIG_H=1) +-execute_process( +- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_HOME_DIRECTORY}/libltdl/ltdl.h ${CMAKE_HOME_DIRECTORY}/GG/ltdl.h +- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_HOME_DIRECTORY}/libltdl/config.h ${CMAKE_HOME_DIRECTORY}/GG/ltdl_config.h +-) +-set_source_files_properties(${CMAKE_HOME_DIRECTORY}/GG/ltdl.h ${CMAKE_HOME_DIRECTORY}/GG/ltdl_config.h PROPERTIES GENERATED true) +- +-set(THIS_LIB_LINK_LIBS ${Boost_LIBRARIES} ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES}) ++find_library(LIBTOOL_LIB ltdl) ++if (LIBTOOL_LIB) ++ MESSAGE(STATUS " libtool-libraries : ${LIBTOOL_LIB}") ++else (LIBTOOL_LIB) ++ MESSAGE(FATAL_ERROR "libtool library not found!") ++endif (LIBTOOL_LIB) ++ ++find_file(LIBTOOL_HEADER ltdl.h PATHS ${CMAKE_INCLUDE_PATH}) ++if (LIBTOOL_HEADER) ++ MESSAGE(STATUS " libtool-header : ${LIBTOOL_HEADER}") ++else (LIBTOOL_HEADER) ++ MESSAGE(FATAL_ERROR "libtool header not found!") ++endif (LIBTOOL_HEADER) ++ ++set(THIS_LIB_LINK_LIBS ${Boost_LIBRARIES} ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} ${LIBTOOL_LIB}) + if (USE_DEVIL) + list(APPEND THIS_LIB_LINK_LIBS ${IL_LIBRARY} ${ILUT_LIBRARY}) + else () +--- GG/GG/PluginInterface.h ++++ GG/GG/PluginInterface.h +@@ -35,7 +35,7 @@ + #if defined(__APPLE__) && defined(__MACH__) + # include "../libltdl/ltdl.h" + #else +-# include <GG/ltdl.h> ++# include <ltdl.h> + #endif + + #include <string> diff --git a/dev-games/gigi/gigi-0.8.0_pre1074.ebuild b/dev-games/gigi/gigi-0.8.0_pre1074.ebuild new file mode 100644 index 000000000..fc5c124e5 --- /dev/null +++ b/dev-games/gigi/gigi-0.8.0_pre1074.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +PYTHON_DEPEND="2" + +inherit cmake-utils eutils python subversion + +DESCRIPTION="An OpenGL interface library" +HOMEPAGE="http://gigi.sourceforge.net" +ESVN_REPO_URI="https://${PN}.svn.sourceforge.net/svnroot/${PN}/trunk" +ESVN_PROJECT="${PN}" +ESVN_REVISION="${PV#*_pre}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="" # keywords removed due to fragile nature of this package +IUSE="devil doc eve ogre ois sdl static-libs threads" +RESTRICT="test" # fails for unknown reasons + +RDEPEND=" + >=dev-libs/boost-1.47 + media-libs/freetype:2 + sys-devel/libtool + sys-libs/zlib + x11-libs/libX11 + virtual/opengl + devil? ( >=media-libs/devil-1.6.1 ) + !devil? ( + media-libs/libpng:0 + media-libs/tiff:0 + virtual/jpeg + ) + ogre? ( + >=dev-games/ogre-1.7.4[ois?] + ois? ( dev-games/ois ) + ) + sdl? ( media-libs/libsdl )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-doc/doxygen )" +REQUIRED_USE="ois? ( ogre )" + +CMAKE_USE_DIR="${S}"/GG +CMAKE_VERBOSE="1" + +pkg_setup() { + ewarn "${PN} needs about 4GB of memory for compilation and" + ewarn "may even then swap out heavily." + ewarn "" + ewarn "If you get segfault during build time try disabling debug" + ewarn "compiler flags https://qa.mandriva.com/show_bug.cgi?id=62558" + ewarn "If that fails too consider retrying with gcc:4.4" + + sleep 5 + python_pkg_setup +} + +src_prepare() { + # fix docdir + epatch "${FILESDIR}"/${P}-docdir.patch + + # use systems ltdl + rm -r "${CMAKE_USE_DIR}"/libltdl || die + epatch "${FILESDIR}"/${P}-libtool.patch + + # fix devil (apply after libtool.patch) + epatch "${FILESDIR}"/${P}-devil.patch + + python_convert_shebangs 2 GG/GG/gen_signals.py +} + +src_configure() { + # USE_DEVIL broken + # BUILD_TUTORIALS incomplete + local mycmakeargs=( + -DDOCDIR=/usr/share/doc/${PF}/html + -DRELEASE_COMPILE_FLAGS="" + $(cmake-utils_use_use devil DEVIL) + $(cmake-utils_use_build eve EXPERIMENTAL_EVE_SUPPORT) + $(cmake-utils_use_build ogre OGRE_DRIVER) + $(cmake-utils_use_build ois OGRE_OIS_PLUGIN) + $(cmake-utils_use_build sdl SDL_DRIVER) + $(cmake-utils_use_build doc DOCUMENTATION) + $(cmake-utils_use_build static-libs STATIC) + $(cmake-utils_use_build threads MULTI_THREADED) + ) + + cmake-utils_src_configure +} diff --git a/dev-games/gigi/metadata.xml b/dev-games/gigi/metadata.xml new file mode 100644 index 000000000..c5c583020 --- /dev/null +++ b/dev-games/gigi/metadata.xml @@ -0,0 +1,13 @@ +<?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="devil">Use DevIL instead of libpng/libjpeg/libtiff</flag> + <flag name="eve">Add experimental eve support</flag> + <flag name="ogre">Add support for <pkg>dev-games/ogre</pkg></flag> + <flag name="ois">Add support for <pkg>dev-games/ois</pkg></flag> + </use> +</pkgmetadata> |