diff options
author | Russell Harmon <russ@eatnumber1.com> | 2010-01-29 12:16:35 -0500 |
---|---|---|
committer | Russell Harmon <russ@eatnumber1.com> | 2010-01-29 20:11:18 -0500 |
commit | e58947c0a82a172f922d734be6ca4649dbfefc86 (patch) | |
tree | 066f24ec416c9149d67e2e2e3e076640a32d45a3 | |
parent | Add updated compcache-tools ebuild. (diff) | |
download | eatnumber1-e58947c0a82a172f922d734be6ca4649dbfefc86.tar.gz eatnumber1-e58947c0a82a172f922d734be6ca4649dbfefc86.tar.bz2 eatnumber1-e58947c0a82a172f922d734be6ca4649dbfefc86.zip |
Add live gigi ebuild.
-rw-r--r-- | media-libs/gigi/files/gigi-scm_eve-fix.patch | 13 | ||||
-rw-r--r-- | media-libs/gigi/gigi-803-scm.ebuild | 76 | ||||
-rw-r--r-- | media-libs/gigi/gigi-scm.ebuild | 73 |
3 files changed, 162 insertions, 0 deletions
diff --git a/media-libs/gigi/files/gigi-scm_eve-fix.patch b/media-libs/gigi/files/gigi-scm_eve-fix.patch new file mode 100644 index 0000000..2983c6f --- /dev/null +++ b/media-libs/gigi/files/gigi-scm_eve-fix.patch @@ -0,0 +1,13 @@ +Index: src/adobe/future/widgets/sources/platform_popup.cpp +=================================================================== +--- src/adobe/future/widgets/sources/platform_popup.cpp (revision 803) ++++ src/adobe/future/widgets/sources/platform_popup.cpp (working copy) +@@ -389,7 +389,7 @@ + assert(!element.control_m); + + boost::shared_ptr<GG::StyleFactory> style = GG::GUI::GetGUI()->GetStyleFactory(); +- int lines = std::min(element.menu_items_m.size(), 20u); ++ int lines = std::min(element.menu_items_m.size(), (size_t) 20u); + element.control_m = style->NewDropDownList(GG::X0, GG::Y0, GG::X(100), GG::Y(100), + style->DefaultFont()->Lineskip() * lines, + GG::CLR_GRAY); diff --git a/media-libs/gigi/gigi-803-scm.ebuild b/media-libs/gigi/gigi-803-scm.ebuild new file mode 100644 index 0000000..e6ab889 --- /dev/null +++ b/media-libs/gigi/gigi-803-scm.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +ESVN_REPO_URI="https://gigi.svn.sourceforge.net/svnroot/gigi/trunk/GG" +EAPI=2 +inherit eutils flag-o-matic cmake-utils subversion + +DESCRIPTION="GiGi (aka GG) is a GUI library for OpenGL." +HOMEPAGE="http://gigi.sourceforge.net/" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="devil sdl ogre ois doc debug threads eve examples" + +DEPEND=" + devil? ( media-libs/devil ) + !devil? ( + media-libs/jpeg + media-libs/libpng + media-libs/tiff + sys-libs/zlib + ) + sdl? ( media-libs/libsdl ) + ogre? ( dev-games/ogre ) + ois? ( dev-games/ois ) + doc? ( app-doc/doxygen ) + media-libs/freetype + >=dev-libs/boost-1.36 + media-libs/mesa + x11-libs/libX11 + x11-libs/libXext + x11-libs/libSM + x11-libs/libICE + sys-libs/glibc" +RDEPEND="${DEPEND}" + +get_boost_ver() { + local link="$(readlink /usr/include/boost)" + echo "${link%%/*}" +} + +pkg_setup() { + die +} + +src_prepare() { + epatch "${FILESDIR}/${P}_eve-fix.patch" + append-ldflags -Wl,--no-as-needed +} + +src_configure() { + local mycmakeargs=( + "-DBOOST_INCLUDEDIR=/usr/include/$(get_boost_ver)" + $(cmake-utils_use devil USE_DEVIL) + $(cmake-utils_use_build sdl SDL_DRIVER) + $(cmake-utils_use_build ogre OGRE_DRIVER) + $(cmake-utils_use_build ois OGRE_OIS_DRIVER) + $(cmake-utils_use_build doc DOCUMENTATION) + $(cmake-utils_use_build threads MULTI_THREADED) + $(cmake-utils_use_build eve EXPERIMENTAL_EVE_SUPPORT) + $(cmake-utils_use_build debug) + $(cmake-utils_use_build examples TUTORIALS) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use doc; then + dohtml -r -A png "${D}"/usr/doc/GG + rm -r "${D}"/usr/doc + fi +} diff --git a/media-libs/gigi/gigi-scm.ebuild b/media-libs/gigi/gigi-scm.ebuild new file mode 100644 index 0000000..5a0e494 --- /dev/null +++ b/media-libs/gigi/gigi-scm.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +ESVN_REPO_URI="https://gigi.svn.sourceforge.net/svnroot/gigi/trunk/GG" +EAPI=2 +inherit eutils flag-o-matic cmake-utils subversion + +DESCRIPTION="GiGi (aka GG) is a GUI library for OpenGL." +HOMEPAGE="http://gigi.sourceforge.net/" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="" +IUSE="devil sdl ogre ois doc debug threads eve" +PROPERTIES="" + +DEPEND=" + devil? ( media-libs/devil ) + !devil? ( + media-libs/jpeg + media-libs/libpng + media-libs/tiff + sys-libs/zlib + ) + sdl? ( media-libs/libsdl ) + ogre? ( dev-games/ogre ) + ois? ( dev-games/ois ) + doc? ( app-doc/doxygen ) + media-libs/freetype + >=dev-libs/boost-1.36 + media-libs/mesa + x11-libs/libX11 + x11-libs/libXext + x11-libs/libSM + x11-libs/libICE + sys-libs/glibc" +RDEPEND="${DEPEND}" + +get_boost_ver() { + local link="$(readlink /usr/include/boost)" + echo "${link%%/*}" +} + +src_prepare() { + epatch "${FILESDIR}/${P}_eve-fix.patch" + append-ldflags -Wl,--no-as-needed +} + +src_configure() { + local mycmakeargs=( + "-DBOOST_INCLUDEDIR=/usr/include/$(get_boost_ver)" + $(cmake-utils_use devil USE_DEVIL) + $(cmake-utils_use_build sdl SDL_DRIVER) + $(cmake-utils_use_build ogre OGRE_DRIVER) + $(cmake-utils_use_build ois OGRE_OIS_DRIVER) + $(cmake-utils_use_build doc DOCUMENTATION) + $(cmake-utils_use_build threads MULTI_THREADED) + $(cmake-utils_use_build eve EXPERIMENTAL_EVE_SUPPORT) + $(cmake-utils_use_build debug) + $(cmake-utils_use_build doc TUTORIALS) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use doc; then + dohtml -r -A png "${D}"/usr/doc/GG + rm -r "${D}"/usr/doc + fi +} |