diff options
Diffstat (limited to 'dev-games/cegui')
-rw-r--r-- | dev-games/cegui/Manifest | 4 | ||||
-rw-r--r-- | dev-games/cegui/cegui-0.8.7.ebuild | 109 | ||||
-rw-r--r-- | dev-games/cegui/files/cegui-0.8.7-icu-59.patch | 11 | ||||
-rw-r--r-- | dev-games/cegui/metadata.xml | 20 |
4 files changed, 144 insertions, 0 deletions
diff --git a/dev-games/cegui/Manifest b/dev-games/cegui/Manifest new file mode 100644 index 000000000000..dcec0d57e0b7 --- /dev/null +++ b/dev-games/cegui/Manifest @@ -0,0 +1,4 @@ +AUX cegui-0.8.7-icu-59.patch 444 BLAKE2B 7ba31c1a856638be317c0d3166159bea14be9f3ccc79e8b361907e9ba1bf7c07a77ba5cf76a49f33d7ceca8d6aedf659f7bdd2826cc1eec3b72352a8a0ed6d7e SHA512 6a8838e8a6ddfb5b73bb765470185530a81ffeaec9d090e1038d317aca800a987b08d3a82744c0b77266d2f351ae2668bada741b26ac303be052071f9daf3408 +DIST cegui-0.8.7.tar.bz2 18114465 BLAKE2B cf0a4867f0e32c6a6b585821c915dc1fbd532e0f95effe28f6d3e4f1a2bccd23f47c7c33a3115befdf8b3f094d49a5af042d28c1e1fbb88e7c7f6da7f3fa173b SHA512 271ff2a1e19f46c7d40cbc210bc665666e45b56cd0efea460db4d08df134d929337846eaf923db1b915597965aab27ad39512d6567cc63ef883555cbff542e56 +EBUILD cegui-0.8.7.ebuild 3222 BLAKE2B 8313bb7d2c46f774fb4106f0c3fe52e73bce957d7168a772d9621f82e3cbb83335e061a53e65a1704076e07a28685ab62417d9c41a8533dcfb93ccf851082e22 SHA512 6ee93d44cfe059b5db49a34669daf1741e7e847ad01def67c9afcb5162a079cc4fe0d8907e5e0d3815f3ac16cc3c6719bb5224085aad58beef55f71f2d07e496 +MISC metadata.xml 803 BLAKE2B da9534a051925be6cd6d285ce3335c65ba799481840f95aadedb2f81f7a06e05253e8949bf77e7626635437bc5ad5b91af11d6aa452f3524669efdd6216b3bd6 SHA512 47d0eeed54ab5b192051b976a5e1a9790c9e0321753cdc8da73fda4131ac30e40fb57f418418ea7b2bbb30041f76def1a79803d699962488ea4dc1dad50c4996 diff --git a/dev-games/cegui/cegui-0.8.7.ebuild b/dev-games/cegui/cegui-0.8.7.ebuild new file mode 100644 index 000000000000..179c88599c41 --- /dev/null +++ b/dev-games/cegui/cegui-0.8.7.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# TODO: multiple ABI? +PYTHON_COMPAT=( python2_7 ) +inherit eutils flag-o-matic cmake-utils python-single-r1 + +DESCRIPTION="Crazy Eddie's GUI System" +HOMEPAGE="http://www.cegui.org.uk/" +SRC_URI="mirror://sourceforge/crayzedsgui/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="bidi debug devil doc freeimage expat irrlicht lua ogre opengl pcre python static-libs tinyxml truetype xerces-c +xml zip" +REQUIRED_USE="|| ( expat tinyxml xerces-c xml ) + ${PYTHON_REQUIRED_USE}" # bug 362223 + +# gles broken +# gles? ( media-libs/mesa[gles1] ) +# directfb broken +# directfb? ( dev-libs/DirectFB ) +RDEPEND=" + dev-libs/boost:= + virtual/libiconv + bidi? ( dev-libs/fribidi ) + devil? ( media-libs/devil ) + expat? ( dev-libs/expat ) + freeimage? ( media-libs/freeimage ) + irrlicht? ( dev-games/irrlicht ) + lua? ( + dev-lang/lua:0 + dev-lua/toluapp + ) + ogre? ( >=dev-games/ogre-1.7:= ) + opengl? ( + virtual/opengl + virtual/glu + media-libs/glew:= + ) + pcre? ( dev-libs/libpcre ) + python? ( + ${PYTHON_DEPS} + dev-libs/boost:=[python,${PYTHON_USEDEP}] + ) + tinyxml? ( dev-libs/tinyxml ) + truetype? ( media-libs/freetype:2 ) + xerces-c? ( dev-libs/xerces-c ) + xml? ( dev-libs/libxml2 ) + zip? ( sys-libs/zlib[minizip] )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + opengl? ( media-libs/glm )" + +PATCHES=( "${FILESDIR}"/${P}-icu-59.patch ) + +src_configure() { + # http://www.cegui.org.uk/mantis/view.php?id=991 + append-ldflags $(no-as-needed) + + local mycmakeargs=( + -DCEGUI_BUILD_IMAGECODEC_CORONA=OFF + $(cmake-utils_use devil CEGUI_BUILD_IMAGECODEC_DEVIL) + $(cmake-utils_use freeimage CEGUI_BUILD_IMAGECODEC_FREEIMAGE) + -DCEGUI_BUILD_IMAGECODEC_PVR=OFF + -DCEGUI_BUILD_IMAGECODEC_SILLY=OFF + -DCEGUI_BUILD_IMAGECODEC_STB=ON + -DCEGUI_BUILD_IMAGECODEC_TGA=ON + $(cmake-utils_use lua CEGUI_BUILD_LUA_GENERATOR) + $(cmake-utils_use lua CEGUI_BUILD_LUA_MODULE) + $(cmake-utils_use python CEGUI_BUILD_PYTHON_MODULES) + -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF + $(cmake-utils_use irrlicht CEGUI_BUILD_RENDERER_IRRLICHT) + -DCEGUI_BUILD_RENDERER_NULL=ON + $(cmake-utils_use ogre CEGUI_BUILD_RENDERER_OGRE) + $(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL) + $(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL3) + -DCEGUI_BUILD_RENDERER_OPENGLES=OFF + $(cmake-utils_use static-libs CEGUI_BUILD_STATIC_CONFIGURATION) + -DCEGUI_BUILD_TESTS=OFF + $(cmake-utils_use expat CEGUI_BUILD_XMLPARSER_EXPAT) + $(cmake-utils_use xml CEGUI_BUILD_XMLPARSER_LIBXML2) + -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF + $(cmake-utils_use tinyxml CEGUI_BUILD_XMLPARSER_TINYXML) + $(cmake-utils_use xerces-c CEGUI_BUILD_XMLPARSER_XERCES) + $(cmake-utils_use truetype CEGUI_HAS_FREETYPE) + $(cmake-utils_use zip CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER) + $(cmake-utils_use pcre CEGUI_HAS_PCRE_REGEX) + -DCEGUI_SAMPLES_ENABLED=OFF + $(cmake-utils_use bidi CEGUI_USE_FRIBIDI) + -DCEGUI_USE_MINIBIDI=OFF + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && emake -C "${BUILD_DIR}" html +} + +src_install() { + cmake-utils_src_install + use doc && dohtml "${BUILD_DIR}"/doc/doxygen/html/* +} diff --git a/dev-games/cegui/files/cegui-0.8.7-icu-59.patch b/dev-games/cegui/files/cegui-0.8.7-icu-59.patch new file mode 100644 index 000000000000..e64dfc97ab59 --- /dev/null +++ b/dev-games/cegui/files/cegui-0.8.7-icu-59.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -72,7 +72,7 @@ + + if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") +- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03") ++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") + elseif (NOT CMAKE_VERSION VERSION_LESS "3.1") + set (CMAKE_C_STANDARD_REQUIRED TRUE) + set (CMAKE_C_STANDARD "99") diff --git a/dev-games/cegui/metadata.xml b/dev-games/cegui/metadata.xml new file mode 100644 index 000000000000..424b06f2e571 --- /dev/null +++ b/dev-games/cegui/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="devil">Build the DevIL based ImageCodec module</flag> + <flag name="freeimage">Build the FreeImage based ImageCodec module</flag> + <flag name="irrlicht">Enable the Irrlicht renderer</flag> + <flag name="ogre">Enable the OGRE renderer</flag> + <flag name="tinyxml">Enable the Tiny XML parser module</flag> + <flag name="xerces-c">Enable the Xerces-C++ XML parser module</flag> + <flag name="zip">Enable the Minizip resource provider</flag> + </use> + <upstream> + <remote-id type="sourceforge">crayzedsgui</remote-id> + </upstream> +</pkgmetadata> |