diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-11-30 22:25:19 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-11-30 23:50:39 +0100 |
commit | d147227360cd1220b393b4d4df2a9ebcab2523f3 (patch) | |
tree | e1af626263b9e5d25aff66307d5bc3fb9295f750 /dev-games/cegui | |
parent | games-rpg/kqlives: migrate to lua-single.eclass (diff) | |
download | gentoo-d147227360cd1220b393b4d4df2a9ebcab2523f3.tar.gz gentoo-d147227360cd1220b393b4d4df2a9ebcab2523f3.tar.bz2 gentoo-d147227360cd1220b393b4d4df2a9ebcab2523f3.zip |
dev-games/cegui: migrate to lua-single.eclass
Both is locked to Lua5.1 in upstream build scripts and depends on
fails-to-build-against-5.2-or-newer dev-lua/toluapp.
Closes: https://bugs.gentoo.org/752915
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-games/cegui')
-rw-r--r-- | dev-games/cegui/cegui-0.8.7-r100.ebuild | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/dev-games/cegui/cegui-0.8.7-r100.ebuild b/dev-games/cegui/cegui-0.8.7-r100.ebuild new file mode 100644 index 000000000000..7c84fecbec66 --- /dev/null +++ b/dev-games/cegui/cegui-0.8.7-r100.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# TODO: multiple ABI? +LUA_COMPAT=( lua5-1 ) +PYTHON_COMPAT=( python3_8 ) +inherit flag-o-matic cmake lua-single 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 ) + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${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? ( + ${LUA_DEPS} + dev-lua/toluapp[${LUA_SINGLE_USEDEP}] + ) + ogre? ( >=dev-games/ogre-1.7:= ) + opengl? ( + virtual/opengl + virtual/glu + media-libs/glew:= + ) + pcre? ( dev-libs/libpcre ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost:=[python,${PYTHON_MULTI_USEDEP}] + ') + ) + tinyxml? ( dev-libs/tinyxml ) + truetype? ( media-libs/freetype:2 ) + xerces-c? ( dev-libs/xerces-c ) + xml? ( dev-libs/libxml2:2 ) + zip? ( sys-libs/zlib[minizip] )" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + opengl? ( media-libs/glm )" + +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" + +PATCHES=( + "${FILESDIR}"/${P}-icu-59.patch + "${FILESDIR}"/${P}-python3.patch + "${FILESDIR}"/${P}-musl.patch +) + +pkg_setup() { + use lua && lua-single_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_configure() { + # http://www.cegui.org.uk/mantis/view.php?id=991 + append-ldflags $(no-as-needed) + + local mycmakeargs=( + -DCEGUI_BUILD_IMAGECODEC_CORONA=OFF + -DCEGUI_BUILD_IMAGECODEC_DEVIL=$(usex devil) + -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=$(usex freeimage) + -DCEGUI_BUILD_IMAGECODEC_PVR=OFF + -DCEGUI_BUILD_IMAGECODEC_SILLY=OFF + -DCEGUI_BUILD_IMAGECODEC_STB=ON + -DCEGUI_BUILD_IMAGECODEC_TGA=ON + -DCEGUI_BUILD_LUA_GENERATOR=$(usex lua) + -DCEGUI_BUILD_LUA_MODULE=$(usex lua) + -DCEGUI_BUILD_PYTHON_MODULES=$(usex python) + -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF + -DCEGUI_BUILD_RENDERER_IRRLICHT=$(usex irrlicht) + -DCEGUI_BUILD_RENDERER_NULL=ON + -DCEGUI_BUILD_RENDERER_OGRE=$(usex ogre) + -DCEGUI_BUILD_RENDERER_OPENGL=$(usex opengl) + -DCEGUI_BUILD_RENDERER_OPENGL3=$(usex opengl) + -DCEGUI_BUILD_RENDERER_OPENGLES=OFF + -DCEGUI_BUILD_STATIC_CONFIGURATION=$(usex static-libs) + -DCEGUI_BUILD_TESTS=OFF + -DCEGUI_BUILD_XMLPARSER_EXPAT=$(usex expat) + -DCEGUI_BUILD_XMLPARSER_LIBXML2=$(usex xml) + -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF + -DCEGUI_BUILD_XMLPARSER_TINYXML=$(usex tinyxml) + -DCEGUI_BUILD_XMLPARSER_XERCES=$(usex xerces-c) + -DCEGUI_HAS_FREETYPE=$(usex truetype) + -DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=$(usex zip) + -DCEGUI_HAS_PCRE_REGEX=$(usex pcre) + -DCEGUI_SAMPLES_ENABLED=OFF + -DCEGUI_USE_FRIBIDI=$(usex bidi) + -DCEGUI_USE_MINIBIDI=OFF + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile all $(usex doc html "") +} + +src_install() { + cmake_src_install + docinto html + use doc && dodoc -r "${BUILD_DIR}"/doc/doxygen/html/* +} |