summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Brill <egore911@egore911.de>2010-03-23 09:20:14 +0100
committerChristoph Brill <egore911@egore911.de>2010-03-23 09:20:14 +0100
commitd9a3e4ff1b469792cf35469ac44218f6b8dfd735 (patch)
treeaad420b0c2c603b5332893912d9510778661aa1f
parent16b5cc7393c7a690272d3bc801f02f3040634f15 (diff)
gui-0.7.1.ebuild
Initial import. Ebuild taken from gentoos bugzilla #291953, stripped out the renaming stuff.
-rw-r--r--dev-games/cegui/ChangeLog9
-rw-r--r--dev-games/cegui/Manifest6
-rw-r--r--dev-games/cegui/cegui-0.7.1.ebuild95
-rw-r--r--dev-games/cegui/files/cegui-0.7.1-tinyxml.patch16
-rw-r--r--dev-games/cegui/metadata.xml8
5 files changed, 134 insertions, 0 deletions
diff --git a/dev-games/cegui/ChangeLog b/dev-games/cegui/ChangeLog
new file mode 100644
index 0000000..d34e1e7
--- /dev/null
+++ b/dev-games/cegui/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-games/cegui
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*cegui-0.7.1 (23 Mar 2010)
+
+ 23 Mar 2010; Christoph Brill <egore911@egore911.de> cegui-0.7.1.ebuild :
+ Initial import. Ebuild taken from gentoos bugzilla #291953, stripped out the
+ renaming stuff.
diff --git a/dev-games/cegui/Manifest b/dev-games/cegui/Manifest
new file mode 100644
index 0000000..fe8a483
--- /dev/null
+++ b/dev-games/cegui/Manifest
@@ -0,0 +1,6 @@
+AUX cegui-0.7.1-tinyxml.patch 959 RMD160 8819b1dea88721ca7235d203ccd51dbb6407284c SHA1 31da9659fe73a77a6e9fbe26f7a7829e6db5b1b9 SHA256 9b2676afdf37861dfde32445725029a19cb89758d74b53e4c80543e0c879017a
+DIST CEGUI-0.7.1.tar.gz 7626850 RMD160 7435c5fce48a2abcf5324782fff22f6bdb5929fa SHA1 c27969d8a72a7ed13fbb386cb21a387de7929b09 SHA256 921a075d04a9fc32261b46d24a32b45447dff0b154fae76ce3398a40eefe64bc
+DIST CEGUI-DOCS-0.7.1.tar.gz 20317057 RMD160 ac019bcf068ba710ca68a7b766d447081bd7fbeb SHA1 6b617eb149159dac11f1cef11866cec6dbaf5821 SHA256 ca3a2341c4533209266c2b2c39f12caf39d8a7a3657a0ad3154434fe4f74e445
+EBUILD cegui-0.7.1.ebuild 2316 RMD160 8597060e1cf235916922e14942c7177a80d2421b SHA1 1fa75e6151a0d8b8845625e7016ba626a8432df8 SHA256 1565ecc04a1fe86fbe887cb0d5962bc441c819fe189aa56c79f36f0f097eccf9
+MISC ChangeLog 316 RMD160 51cd0c270e96435f0a860d3133b62aa4f048bf19 SHA1 45f0666984021f08d0aa20b678832601331aeb6a SHA256 da42eea2ea80ef2c00f2d820c1950e495b637eecaa50756419da8e30505b5a9f
+MISC metadata.xml 225 RMD160 4c506d7c9b24eec779d50ce5ede69834a7f6178a SHA1 a318096995ed1f48d6657e4b08a13371852b12de SHA256 4e2111c4227c34a36c3477bb355a39b8716e982e6ccdb67df1359a3a5f25d655
diff --git a/dev-games/cegui/cegui-0.7.1.ebuild b/dev-games/cegui/cegui-0.7.1.ebuild
new file mode 100644
index 0000000..4a7e725
--- /dev/null
+++ b/dev-games/cegui/cegui-0.7.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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 ~x86"
+IUSE="debug devil doc examples expat freeimage gtk irrlicht lua ogre opengl xerces-c xml"
+
+RDEPEND="dev-libs/libpcre
+ media-libs/freetype:2
+ dev-libs/tinyxml
+ devil? ( media-libs/devil )
+ expat? ( dev-libs/expat )
+ freeimage? ( media-libs/freeimage )
+ irrlicht? ( dev-games/irrlicht )
+ lua? (
+ dev-lang/lua
+ dev-lang/toluapp
+ )
+ ogre? ( dev-games/ogre )
+ opengl? (
+ virtual/opengl
+ virtual/glu
+ virtual/glut
+ media-libs/glew
+ )
+ xerces-c? ( dev-libs/xerces-c )
+ xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ 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
+
+ #fix Makefiles for sloting ... some aren't using --includedir=
+ sed -e "s/prefix)\/include/includedir)/g" \
+ -i $(grep -lr "\$(prefix)/include" --include=Makefile.am .)
+ eautomake
+}
+
+src_configure() {
+ MYECONF=
+ econf \
+ $(use_enable debug) \
+ $(use_enable devil) \
+ $(use_enable expat) \
+ $(use_enable freeimage) \
+ $(use_enable irrlicht irrlicht-renderer) \
+ $(use_enable lua external-toluapp) \
+ $(use_enable lua lua-module) \
+ $(use_enable lua toluacegui) \
+ $(use_enable opengl external-glew) \
+ $(use_enable opengl opengl-renderer) \
+ $(use_enable xerces-c) \
+ $(use_enable xml libxml) \
+ $(use_enable ogre ogre-renderer) \
+ --enable-static \
+ --enable-tga \
+ --enable-tinyxml \
+ --disable-corona \
+ --disable-dependency-tracking \
+ --disable-samples \
+ --disable-silly \
+ $(use_with gtk gtk2)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ if use doc ; then
+ emake html || die "emake html failed"
+ dohtml -r doc/doxygen/html/* || die "dohtml failed"
+ fi
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/Samples
+ doins -r Samples.clean/* || die "doins failed"
+ fi
+}
diff --git a/dev-games/cegui/files/cegui-0.7.1-tinyxml.patch b/dev-games/cegui/files/cegui-0.7.1-tinyxml.patch
new file mode 100644
index 0000000..b1f0ce7
--- /dev/null
+++ b/dev-games/cegui/files/cegui-0.7.1-tinyxml.patch
@@ -0,0 +1,16 @@
+diff -rupN a/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp b/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp
+--- a/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp 2009-03-02 09:08:49.000000000 +1100
++++ b/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp 2009-11-05 19:40:16.000000000 +1100
+@@ -131,10 +131,10 @@ namespace CEGUI
+ {
+ 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
new file mode 100644
index 0000000..3154a6a
--- /dev/null
+++ b/dev-games/cegui/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>egore911@egore911.de</email>
+</maintainer>
+</pkgmetadata>