Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-games/cegui/
Date: Mon, 30 Nov 2020 22:51:03
Message-Id: 1606776639.d147227360cd1220b393b4d4df2a9ebcab2523f3.marecki@gentoo
1 commit: d147227360cd1220b393b4d4df2a9ebcab2523f3
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 21:25:19 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 22:50:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1472273
7
8 dev-games/cegui: migrate to lua-single.eclass
9
10 Both is locked to Lua5.1 in upstream build scripts and depends on
11 fails-to-build-against-5.2-or-newer dev-lua/toluapp.
12
13 Closes: https://bugs.gentoo.org/752915
14 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
15
16 dev-games/cegui/cegui-0.8.7-r100.ebuild | 126 ++++++++++++++++++++++++++++++++
17 profiles/package.mask | 1 +
18 2 files changed, 127 insertions(+)
19
20 diff --git a/dev-games/cegui/cegui-0.8.7-r100.ebuild b/dev-games/cegui/cegui-0.8.7-r100.ebuild
21 new file mode 100644
22 index 00000000000..7c84fecbec6
23 --- /dev/null
24 +++ b/dev-games/cegui/cegui-0.8.7-r100.ebuild
25 @@ -0,0 +1,126 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +# TODO: multiple ABI?
32 +LUA_COMPAT=( lua5-1 )
33 +PYTHON_COMPAT=( python3_8 )
34 +inherit flag-o-matic cmake lua-single python-single-r1
35 +
36 +DESCRIPTION="Crazy Eddie's GUI System"
37 +HOMEPAGE="http://www.cegui.org.uk/"
38 +SRC_URI="mirror://sourceforge/crayzedsgui/${P}.tar.bz2"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +IUSE="bidi debug devil doc freeimage expat irrlicht lua ogre opengl pcre python static-libs tinyxml truetype xerces-c +xml zip"
44 +REQUIRED_USE="|| ( expat tinyxml xerces-c xml )
45 + lua? ( ${LUA_REQUIRED_USE} )
46 + python? ( ${PYTHON_REQUIRED_USE} )" # bug 362223
47 +
48 +# gles broken
49 +# gles? ( media-libs/mesa[gles1] )
50 +# directfb broken
51 +# directfb? ( dev-libs/DirectFB )
52 +RDEPEND="
53 + dev-libs/boost:=
54 + virtual/libiconv
55 + bidi? ( dev-libs/fribidi )
56 + devil? ( media-libs/devil )
57 + expat? ( dev-libs/expat )
58 + freeimage? ( media-libs/freeimage )
59 + irrlicht? ( dev-games/irrlicht )
60 + lua? (
61 + ${LUA_DEPS}
62 + dev-lua/toluapp[${LUA_SINGLE_USEDEP}]
63 + )
64 + ogre? ( >=dev-games/ogre-1.7:= )
65 + opengl? (
66 + virtual/opengl
67 + virtual/glu
68 + media-libs/glew:=
69 + )
70 + pcre? ( dev-libs/libpcre )
71 + python? (
72 + ${PYTHON_DEPS}
73 + $(python_gen_cond_dep '
74 + dev-libs/boost:=[python,${PYTHON_MULTI_USEDEP}]
75 + ')
76 + )
77 + tinyxml? ( dev-libs/tinyxml )
78 + truetype? ( media-libs/freetype:2 )
79 + xerces-c? ( dev-libs/xerces-c )
80 + xml? ( dev-libs/libxml2:2 )
81 + zip? ( sys-libs/zlib[minizip] )"
82 +
83 +DEPEND="${RDEPEND}
84 + ${PYTHON_DEPS}
85 + opengl? ( media-libs/glm )"
86 +
87 +BDEPEND="
88 + virtual/pkgconfig
89 + doc? ( app-doc/doxygen )
90 +"
91 +
92 +PATCHES=(
93 + "${FILESDIR}"/${P}-icu-59.patch
94 + "${FILESDIR}"/${P}-python3.patch
95 + "${FILESDIR}"/${P}-musl.patch
96 +)
97 +
98 +pkg_setup() {
99 + use lua && lua-single_pkg_setup
100 + use python && python-single-r1_pkg_setup
101 +}
102 +
103 +src_configure() {
104 + # http://www.cegui.org.uk/mantis/view.php?id=991
105 + append-ldflags $(no-as-needed)
106 +
107 + local mycmakeargs=(
108 + -DCEGUI_BUILD_IMAGECODEC_CORONA=OFF
109 + -DCEGUI_BUILD_IMAGECODEC_DEVIL=$(usex devil)
110 + -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=$(usex freeimage)
111 + -DCEGUI_BUILD_IMAGECODEC_PVR=OFF
112 + -DCEGUI_BUILD_IMAGECODEC_SILLY=OFF
113 + -DCEGUI_BUILD_IMAGECODEC_STB=ON
114 + -DCEGUI_BUILD_IMAGECODEC_TGA=ON
115 + -DCEGUI_BUILD_LUA_GENERATOR=$(usex lua)
116 + -DCEGUI_BUILD_LUA_MODULE=$(usex lua)
117 + -DCEGUI_BUILD_PYTHON_MODULES=$(usex python)
118 + -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF
119 + -DCEGUI_BUILD_RENDERER_IRRLICHT=$(usex irrlicht)
120 + -DCEGUI_BUILD_RENDERER_NULL=ON
121 + -DCEGUI_BUILD_RENDERER_OGRE=$(usex ogre)
122 + -DCEGUI_BUILD_RENDERER_OPENGL=$(usex opengl)
123 + -DCEGUI_BUILD_RENDERER_OPENGL3=$(usex opengl)
124 + -DCEGUI_BUILD_RENDERER_OPENGLES=OFF
125 + -DCEGUI_BUILD_STATIC_CONFIGURATION=$(usex static-libs)
126 + -DCEGUI_BUILD_TESTS=OFF
127 + -DCEGUI_BUILD_XMLPARSER_EXPAT=$(usex expat)
128 + -DCEGUI_BUILD_XMLPARSER_LIBXML2=$(usex xml)
129 + -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF
130 + -DCEGUI_BUILD_XMLPARSER_TINYXML=$(usex tinyxml)
131 + -DCEGUI_BUILD_XMLPARSER_XERCES=$(usex xerces-c)
132 + -DCEGUI_HAS_FREETYPE=$(usex truetype)
133 + -DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=$(usex zip)
134 + -DCEGUI_HAS_PCRE_REGEX=$(usex pcre)
135 + -DCEGUI_SAMPLES_ENABLED=OFF
136 + -DCEGUI_USE_FRIBIDI=$(usex bidi)
137 + -DCEGUI_USE_MINIBIDI=OFF
138 + )
139 +
140 + cmake_src_configure
141 +}
142 +
143 +src_compile() {
144 + cmake_src_compile all $(usex doc html "")
145 +}
146 +
147 +src_install() {
148 + cmake_src_install
149 + docinto html
150 + use doc && dodoc -r "${BUILD_DIR}"/doc/doxygen/html/*
151 +}
152
153 diff --git a/profiles/package.mask b/profiles/package.mask
154 index 5fdbbc40e69..805b9bbefe5 100644
155 --- a/profiles/package.mask
156 +++ b/profiles/package.mask
157 @@ -518,6 +518,7 @@ dev-lua/luacrypto
158 >=app-crypt/cardpeek-0.8.4
159 >=app-crypt/ekeyd-1.1.5-r100
160 >=app-misc/worker-3.8.3-r100
161 +>=dev-games/cegui-0.8.7-r100
162 =dev-games/openscenegraph-openmw-3.4_p20200425-r100
163 =dev-libs/efl-1.25.1-r10
164 >=dev-lua/busted-2.0.0-r100