summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-03 22:44:50 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-03 22:44:50 +0000
commitdba57e4751482823ec2524f07cd4a769b6babd8a (patch)
tree1f008f4ddad8cc4530aa0808754116830557177b /dev-games/cegui
parentVersion bump, remove old. (diff)
downloadgentoo-2-dba57e4751482823ec2524f07cd4a769b6babd8a.tar.gz
gentoo-2-dba57e4751482823ec2524f07cd4a769b6babd8a.tar.bz2
gentoo-2-dba57e4751482823ec2524f07cd4a769b6babd8a.zip
Version bump by Patrick McMunn, Jacek Szafarkiewicz, and Eric Womer #286722.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Diffstat (limited to 'dev-games/cegui')
-rw-r--r--dev-games/cegui/ChangeLog10
-rw-r--r--dev-games/cegui/cegui-0.7.5.ebuild101
-rw-r--r--dev-games/cegui/files/cegui-0.7.5-tinyxml.patch17
-rw-r--r--dev-games/cegui/metadata.xml3
4 files changed, 129 insertions, 2 deletions
diff --git a/dev-games/cegui/ChangeLog b/dev-games/cegui/ChangeLog
index f406b13cb7ff..02fdec8c08d0 100644
--- a/dev-games/cegui/ChangeLog
+++ b/dev-games/cegui/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-games/cegui
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/ChangeLog,v 1.31 2010/11/06 01:45:36 rafaelmartins Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/ChangeLog,v 1.32 2011/03/03 22:44:50 vapier Exp $
+
+*cegui-0.7.5 (03 Mar 2011)
+
+ 03 Mar 2011; Mike Frysinger <vapier@gentoo.org> +cegui-0.7.5.ebuild,
+ +files/cegui-0.7.5-tinyxml.patch:
+ Version bump by Patrick McMunn, Jacek Szafarkiewicz, and Eric Womer #286722.
06 Nov 2010; Rafael G. Martins <rafaelmartins@gentoo.org>
cegui-0.6.2b.ebuild:
diff --git a/dev-games/cegui/cegui-0.7.5.ebuild b/dev-games/cegui/cegui-0.7.5.ebuild
new file mode 100644
index 000000000000..58c08ee31f71
--- /dev/null
+++ b/dev-games/cegui/cegui-0.7.5.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/cegui-0.7.5.ebuild,v 1.1 2011/03/03 22:44:50 vapier Exp $
+
+EAPI="2"
+
+inherit autotools eutils
+
+MY_P=CEGUI-${PV}
+MY_D=CEGUI-DOCS-${PV}
+DESCRIPTION="Crazy Eddie's GUI System"
+HOMEPAGE="http://www.cegui.org.uk/"
+SRC_URI="mirror://sourceforge/crayzedsgui/${MY_P}.tar.gz
+ doc? ( mirror://sourceforge/crayzedsgui/${MY_D}.tar.gz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 -ppc ~x86"
+IUSE="bidi debug devil doc examples expat gtk irrlicht lua ogre opengl pcre static-libs tinyxml truetype xerces-c xml zip"
+
+RDEPEND="bidi? ( dev-libs/fribidi )
+ devil? ( media-libs/devil )
+ doc? ( app-doc/doxygen )
+ expat? ( dev-libs/expat )
+ truetype? ( media-libs/freetype:2 )
+ irrlicht? ( dev-games/irrlicht )
+ lua? (
+ dev-lang/lua
+ dev-lua/toluapp
+ )
+ ogre? ( dev-games/ogre )
+ opengl? (
+ virtual/opengl
+ virtual/glu
+ media-libs/freeglut
+ media-libs/glew
+ )
+ pcre? ( dev-libs/libpcre )
+ tinyxml? ( dev-libs/tinyxml )
+ xerces-c? ( dev-libs/xerces-c )
+ xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-tinyxml.patch
+
+ if use examples ; then
+ cp -r Samples Samples.clean
+ rm -f $(find Samples.clean -name 'Makefile*')
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable bidi bidirectional-text) \
+ $(use_enable debug) \
+ $(use_enable devil) \
+ $(use_enable examples samples) \
+ $(use_enable expat) \
+ $(use_enable truetype freetype) \
+ $(use_enable irrlicht irrlicht-renderer) \
+ $(use_enable lua lua-module) \
+ $(use_enable lua toluacegui) \
+ --enable-external-toluapp \
+ $(use_enable ogre ogre-renderer) \
+ $(use_enable opengl opengl-renderer) \
+ --enable-external-glew \
+ $(use_enable pcre) \
+ $(use_enable tinyxml) \
+ --enable-external-tinyxml \
+ $(use_enable xerces-c) \
+ $(use_enable xml libxml) \
+ $(use_enable zip minizip-resource-provider) \
+ --enable-tga \
+ --disable-corona \
+ --disable-dependency-tracking \
+ --disable-samples \
+ --disable-silly \
+ $(use_with gtk gtk2) \
+ $(use_enable static-libs static) \
+ --enable-shared
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ # remove .la files
+ use static-libs || rm -f "${D}"/usr/*/*.la
+
+ if use doc ; then
+ emake html || die
+ dohtml -r doc/doxygen/html/* || die
+ fi
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/Samples
+ doins -r Samples.clean/* || die
+ fi
+}
diff --git a/dev-games/cegui/files/cegui-0.7.5-tinyxml.patch b/dev-games/cegui/files/cegui-0.7.5-tinyxml.patch
new file mode 100644
index 000000000000..94ed3ca35a03
--- /dev/null
+++ b/dev-games/cegui/files/cegui-0.7.5-tinyxml.patch
@@ -0,0 +1,17 @@
+diff -Naur CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp
+--- CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp 2010-11-19 11:19:09.000000000 +0000
++++ CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp 2010-11-19 11:20:09.000000000 +0000
+@@ -131,10 +131,10 @@
+ {
+ switch(childNode->Type())
+ {
+- case CEGUI_TINYXML_NAMESPACE::TiXmlNode::ELEMENT:
++ case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TINYXML_ELEMENT:
+ processElement(childNode->ToElement());
+ break;
+- case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TEXT:
++ case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TINYXML_TEXT:
+ if (childNode->ToText()->Value() != '\0')
+ d_handler->text((utf8*)childNode->ToText()->Value());
+ break;
+
diff --git a/dev-games/cegui/metadata.xml b/dev-games/cegui/metadata.xml
index dfc9dab1d818..192bc9f39542 100644
--- a/dev-games/cegui/metadata.xml
+++ b/dev-games/cegui/metadata.xml
@@ -5,6 +5,9 @@
<use>
<flag name="devil">Enable image loading via DevIL</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>
</pkgmetadata>