Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-games/mygui: mygui-3.2.1.ebuild ChangeLog metadata.xml
Date: Sun, 24 Aug 2014 18:01:23
Message-Id: 20140824180119.3D2CD3D0B@oystercatcher.gentoo.org
1 hasufell 14/08/24 18:01:19
2
3 Modified: ChangeLog metadata.xml
4 Added: mygui-3.2.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.7 dev-games/mygui/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-games/mygui/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 8 Mar 2014 23:17:25 -0000 1.6
24 +++ ChangeLog 24 Aug 2014 18:01:18 -0000 1.7
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-games/mygui
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-games/mygui/ChangeLog,v 1.6 2014/03/08 23:17:25 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-games/mygui/ChangeLog,v 1.7 2014/08/24 18:01:18 hasufell Exp $
30 +
31 +*mygui-3.2.1 (24 Aug 2014)
32 +
33 + 24 Aug 2014; Julian Ospald <hasufell@g.o> +mygui-3.2.1.ebuild,
34 + +files/mygui-3.2.1-FHS.patch, metadata.xml:
35 + version bump
36
37 08 Mar 2014; Julian Ospald <hasufell@g.o> mygui-3.2.0-r1.ebuild:
38 add subslot dep for dev-games/ogre
39
40
41
42 1.3 dev-games/mygui/metadata.xml
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/metadata.xml?rev=1.3&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/metadata.xml?rev=1.3&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/metadata.xml?r1=1.2&r2=1.3
47
48 Index: metadata.xml
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/dev-games/mygui/metadata.xml,v
51 retrieving revision 1.2
52 retrieving revision 1.3
53 diff -u -r1.2 -r1.3
54 --- metadata.xml 31 Oct 2012 21:43:44 -0000 1.2
55 +++ metadata.xml 24 Aug 2014 18:01:18 -0000 1.3
56 @@ -18,8 +18,10 @@
57 </upstream>
58 <use>
59 <flag name="linguas_ru">Install some additional russian docs if 'doc' useflag enabled</flag>
60 + <flag name="opengl">Use the opengl render subsystem. (cannot combine with ogre)</flag>
61 + <flag name="ogre">Use the ogre render subsystem. (cannot combine with opengl)</flag>
62 <flag name="plugins">Build MyGUI plugins</flag>
63 - <flag name="samples">Install MyGUI demos</flag>
64 + <flag name="samples">Install MyGUI demos (needs ogre USE flag)</flag>
65 <flag name="tools">Build the tools for development</flag>
66 </use>
67 <longdescription lang="en">
68
69
70
71 1.1 dev-games/mygui/mygui-3.2.1.ebuild
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/mygui-3.2.1.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/mygui/mygui-3.2.1.ebuild?rev=1.1&content-type=text/plain
75
76 Index: mygui-3.2.1.ebuild
77 ===================================================================
78 # Copyright 1999-2014 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/dev-games/mygui/mygui-3.2.1.ebuild,v 1.1 2014/08/24 18:01:18 hasufell Exp $
81
82 EAPI=5
83 CMAKE_REMOVE_MODULES="yes"
84 CMAKE_REMOVE_MODULES_LIST="FindFreetype"
85 inherit eutils cmake-utils flag-o-matic multilib
86
87 MY_PN=MyGUI
88 MY_P=${MY_PN}${PV}
89
90 DESCRIPTION="A library for creating GUIs for games"
91 HOMEPAGE="http://mygui.info/"
92 SRC_URI="https://github.com/MyGUI/mygui/archive/${MY_P}.tar.gz"
93
94 LICENSE="MIT"
95 SLOT="0"
96 KEYWORDS="~amd64 ~x86"
97 IUSE="debug doc +ogre -opengl plugins samples static-libs test tools linguas_ru"
98 REQUIRED_USE="ogre? ( !opengl )
99 opengl? ( !ogre )"
100
101 RDEPEND="
102 media-libs/freetype:2
103 ogre? (
104 dev-games/ogre:=[freeimage,opengl]
105 samples? ( dev-games/ois )
106 )
107 opengl? ( virtual/opengl )
108 tools? ( dev-games/ois )"
109 DEPEND="${RDEPEND}
110 virtual/pkgconfig
111 doc? ( app-doc/doxygen )"
112
113 S=${WORKDIR}/mygui-${MY_P}
114 STATIC_BUILD=${WORKDIR}/${P}_build_static
115
116 pkg_setup() {
117 if use samples && use !ogre ; then
118 ewarn "Samples disabled, because they only work with ogre!"
119 ewarn "Enable ogre USE flag if you want to use samples."
120 fi
121 }
122
123 src_prepare() {
124 epatch "${FILESDIR}"/${PN}-3.2.0-underlinking.patch \
125 "${FILESDIR}"/${PN}-3.2.0-build.patch \
126 "${FILESDIR}"/${PN}-3.2.1-FHS.patch
127 }
128
129 src_configure() {
130 use debug && append-cppflags -DDEBUG
131
132 local mycmakeargs=()
133
134 # static configuration
135 if use static-libs ; then
136 mycmakeargs=( -DMYGUI_STATIC=ON
137 -DMYGUI_BUILD_DOCS=OFF
138 -DMYGUI_INSTALL_DOCS=OFF
139 -DMYGUI_USE_FREETYPE=ON
140 $(cmake-utils_use plugins MYGUI_BUILD_PLUGINS)
141 -DMYGUI_BUILD_DEMOS=OFF
142 -DMYGUI_INSTALL_SAMPLES=OFF
143 -DMYGUI_BUILD_TOOLS=OFF
144 -DMYGUI_INSTALL_TOOLS=OFF
145 -DMYGUI_BUILD_WRAPPER=OFF
146 -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") )
147
148 CMAKE_BUILD_DIR=${STATIC_BUILD} cmake-utils_src_configure
149 unset mycmakeargs
150 fi
151
152 # main configuration
153 mycmakeargs=( -DMYGUI_STATIC=OFF
154 $(cmake-utils_use doc MYGUI_BUILD_DOCS)
155 $(cmake-utils_use doc MYGUI_INSTALL_DOCS)
156 -DMYGUI_USE_FREETYPE=ON
157 $(cmake-utils_use plugins MYGUI_BUILD_PLUGINS)
158 $(usex ogre "$(cmake-utils_use samples MYGUI_BUILD_DEMOS)" "-DMYGUI_BUILD_DEMOS=OFF")
159 $(usex ogre "$(cmake-utils_use samples MYGUI_INSTALL_SAMPLES)" "-DMYGUI_INSTALL_SAMPLES=OFF")
160 $(cmake-utils_use tools MYGUI_BUILD_TOOLS)
161 $(cmake-utils_use tools MYGUI_INSTALL_TOOLS)
162 -DMYGUI_BUILD_WRAPPER=OFF
163 -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") )
164
165 if use tools || (use samples && use ogre) ; then
166 mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=ON )
167 else
168 mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=OFF )
169 fi
170
171 cmake-utils_src_configure
172 }
173
174 src_compile() {
175 # build system does not support building static and shared at once,
176 # run a double build
177 if use static-libs ; then
178 CMAKE_BUILD_DIR=${STATIC_BUILD} cmake-utils_src_compile
179 fi
180
181 cmake-utils_src_compile
182
183 use doc && emake -C "${CMAKE_BUILD_DIR}"/Docs api-docs
184 }
185
186 src_install() {
187 cmake-utils_src_install
188
189 if use static-libs ; then
190 find "${STATIC_BUILD}" -name "*.a" \! -name "libCommon.a" -exec dolib.a '{}' \;
191 insinto /usr/$(get_libdir)/pkgconfig
192 doins "${STATIC_BUILD}"/pkgconfig/MYGUIStatic.pc
193 fi
194
195 if use doc ; then
196 dohtml -r "${CMAKE_BUILD_DIR}"/Docs/html/*
197
198 if use linguas_ru ; then
199 docompress -x /usr/share/doc/${PF}/Papers
200 dodoc -r Docs/Papers
201 fi
202 fi
203
204 keepdir /etc/MYGUI
205 fperms o+w /etc/MYGUI
206
207 # test media not needed at runtime
208 rm -rf "${D}"/usr/share/MYGUI/Media/UnitTests
209 # wrapper not available for linux, remove related media
210 rm -rf "${D}"/usr/share/MYGUI/Media/Wrapper
211 }
212
213 pkg_postinst() {
214 einfo
215 elog "ogre.cfg and Ogre.log are created as"
216 elog "/etc/MYGUI/mygui-ogre.cfg and /etc/MYGUI/mygui-Ogre.log"
217 einfo
218 }