summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Brill <egore911@egore911.de>2012-09-16 23:52:10 +0200
committerChristoph Brill <egore911@egore911.de>2012-09-16 23:52:10 +0200
commitb3a4e79bd7da8e76a982e025e2e3707492e4e839 (patch)
treebdd7f5da646b5238a6f7bf08218ba096350a9626
parent3cdd95672cef881bfb9b9df1b0c45ca632e86529 (diff)
+python-ogre-1.8.0.ebuild, +files/python-ogre-1.8.0.patch
Add OGRE 1.8.0 python bindings
-rw-r--r--dev-games/python-ogre/ChangeLog8
-rw-r--r--dev-games/python-ogre/Manifest10
-rw-r--r--dev-games/python-ogre/files/python-ogre-1.8.0.patch135
-rw-r--r--dev-games/python-ogre/python-ogre-1.8.0.ebuild47
4 files changed, 195 insertions, 5 deletions
diff --git a/dev-games/python-ogre/ChangeLog b/dev-games/python-ogre/ChangeLog
index 2532cd0..0c75a3d 100644
--- a/dev-games/python-ogre/ChangeLog
+++ b/dev-games/python-ogre/ChangeLog
@@ -1,7 +1,13 @@
# ChangeLog for dev-games/python-ogre
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*python-ogre-1.8.0 (16 Sep 2012)
+
+ 16 Sep 2012; Christoph Brill <egore911@egore911.de>
+ +python-ogre-1.8.0.ebuild, +files/python-ogre-1.8.0.patch:
+ Add OGRE 1.8.0 python bindings
+
*python-ogre-1150 (05 Aug 2011)
05 Aug 2011; Christoph Brill <egore911@egore911.de> -python-ogre-1056.ebuild,
diff --git a/dev-games/python-ogre/Manifest b/dev-games/python-ogre/Manifest
index 775f3a8..8312604 100644
--- a/dev-games/python-ogre/Manifest
+++ b/dev-games/python-ogre/Manifest
@@ -1,4 +1,6 @@
-AUX python-ogre-1150.patch 12205 RMD160 5c7adab72d6dc9ca1ae58ebadb5d671df6649cf5 SHA1 5535a1353563d5dc1bb6b615b5457a79801079fd SHA256 2972c2d43c0eb0e3c965a171f01911b0038eaebfde1d0e2f49ce336e2606b5ff
-EBUILD python-ogre-1150.ebuild 1150 RMD160 af4f487f148e68915ee2c405ed75990fee20af1d SHA1 26eb26fdc31611f94f3426f272f4650d7393dea6 SHA256 d81182b3508050a9c0df7e94558c4c984ab150cd47e37811a017eeacf12bf519
-MISC ChangeLog 1280 RMD160 06b9085c7e0407145671514c9d66879f9219cdda SHA1 cbcad60ea75deaa900fce1ead843b138c12309bb SHA256 f28ab772a02153a2c653a04dc79f99be234cd5a3a8e1c3fb44b851b513bb81fd
-MISC metadata.xml 225 RMD160 4c506d7c9b24eec779d50ce5ede69834a7f6178a SHA1 a318096995ed1f48d6657e4b08a13371852b12de SHA256 4e2111c4227c34a36c3477bb355a39b8716e982e6ccdb67df1359a3a5f25d655
+AUX python-ogre-1.8.0.patch 4821 SHA256 fa543ad0920f3211019be6d189d84d11d53fe7a2148f4841c27a65d72b15ba5e SHA512 bcd09c9c7d4b9e9a6d35152c2e9e7c5ec47ae3c7830a799bedcfca0fb6ad061d275d64de548c2c09067be4243c32672116f1aea295a1af36ea1eaa6e19603cd8 WHIRLPOOL d3f010ca0d31a280b05a68959cd6b48171de3f96d5c375eebd3f43d3d31c49840f21b80adc7b05512bda5c78a841028c9a0886b8133a142e549b7a0a7faab781
+AUX python-ogre-1150.patch 12205 SHA256 2972c2d43c0eb0e3c965a171f01911b0038eaebfde1d0e2f49ce336e2606b5ff SHA512 688acbb219334892c021d29f0c715921dbe8ace5fe725a0a3dc4ac5b945019b12fab8444efd5421b370300fad0bd91bff6c91578c7b0ca14c3f9f13a5f2bd344 WHIRLPOOL 63fcbb368bf0904f19d5fecffa40d682a47ae4db47c8fd6ae8c76638ec028c6929e030f5f1fba669d449edc908300924adf1de127a39af84a4db77ab56ca4b91
+EBUILD python-ogre-1.8.0.ebuild 1145 SHA256 0164391e07b18f676491e09a1a72ce4b20776d197b3b4b684299f27a9594b12c SHA512 97f5e87acc9a2a40d7c1927bb78157e140b8b90abc01d1f7c21dbb31a4f0ef9d3b84bd246183f2195d53b64c05892e66a24cf77bfac6fada7b0c03b66e6bdf35 WHIRLPOOL 53d8ec0f8ec1bed01f8cf52080f9d123f42e72c2aa086d3a921a92c278e142b9bb09553392e007c3d79bef67aedc9ce25b63a8a196328946a736893d80015200
+EBUILD python-ogre-1150.ebuild 1150 SHA256 d81182b3508050a9c0df7e94558c4c984ab150cd47e37811a017eeacf12bf519 SHA512 2c20200d40ebc3922e24d4535e7090c9f761486616a00dee26b4631ddb8ead972cabd4db7e57835084065c6e7b58042eaa299eaa153cbc4b73a67e322191f78d WHIRLPOOL de8c7a98a2a065006a61549288e231c78a97b01edaf379432f5eaae4547dfc3b5ea5a91de801859bc92c49deb6df4fb43d67587be2a059bf280d14b789bd771c
+MISC ChangeLog 1463 SHA256 bcd8922bcbd455bab6d733d96fc183c199f341e47d45211aa05594b3983a9e54 SHA512 7b307b604cc3eb67484d101582d9c24cf1278adf593a309fb3138c0d2f2c922fc27b4bb8a593c76b4a831945d792ff91d48b7da5fc621e31ffde6e80980d3ed5 WHIRLPOOL a11ff24188629811e232e635881b8fc5853073e8eda92cd84b2db569d78d10639173f11531b57bfffb6b7dcee3beff2097c1f766995c2c8aa8d26cbe3e763f8a
+MISC metadata.xml 225 SHA256 4e2111c4227c34a36c3477bb355a39b8716e982e6ccdb67df1359a3a5f25d655 SHA512 3491fc1b84e75f659918ff5c3edc847d83cd1313fa8e5cf7859cec27ee38cbdf6fb91a73098ad1b4035f428dcbf7e0807686180d8304af485b79fb3e1f8b0c72 WHIRLPOOL ba7176f721ef5548423f54b8dda2cf845e0f3430a691d6e72004b197f03f7db1cc48cdc88799ec8247f6922cac7d2a79ebc93631900bcbc1f0ab73aca7a9d1ac
diff --git a/dev-games/python-ogre/files/python-ogre-1.8.0.patch b/dev-games/python-ogre/files/python-ogre-1.8.0.patch
new file mode 100644
index 0000000..fb4bcfc
--- /dev/null
+++ b/dev-games/python-ogre/files/python-ogre-1.8.0.patch
@@ -0,0 +1,135 @@
+diff -r 62c525e29dfd PythonOgreConfig_posix.py
+--- a/PythonOgreConfig_posix.py Mon Jun 11 16:11:43 2012 +0800
++++ b/PythonOgreConfig_posix.py Wed Sep 12 16:29:12 2012 +0200
+@@ -9,20 +9,20 @@
+ _SVN = False # if building from Ogre svn
+
+ # the base of the /usr/... directory structure that we are using
+-ROOT_DIR = os.path.join(BASE_DIR,'root')
++ROOT_DIR = '/'
+ LOCAL_LIB = os.path.join(ROOT_DIR,'usr/lib')
+ LOCAL_INCLUDE = os.path.join(ROOT_DIR, 'usr/include')
+
+-NUMBER_OF_CORES = 6
++NUMBER_OF_CORES = 4
+
+ ## path to the root of your boost dir, should have 'libs', 'boost' subdirectories
+-PATH_Boost = os.path.join(BASE_DIR,'boost')
++PATH_Boost = None
+ ## Path to your boost_pythonxxxx lib file
+ PATH_LIB_Boost = LOCAL_LIB
+ PATH_LIB_Thread_STATIC = LOCAL_LIB
+ PATH_LIB_date_time_STATIC = LOCAL_LIB
+ ## and the name of the boost python library
+-LIB_Boost = "libboost_python"
++LIB_Boost = "libboost_python-2.7-mt"
+
+ # in Linux we need to code in the Relative path for the library
+ RPATH=os.path.join('\\$$ORIGIN',os.pardir,os.pardir, 'lib') #+ '\''
+@@ -60,10 +60,10 @@
+
+ # # ## Parent directories of the libraries
+ PATH_THIRDPARTY = os.path.join(module_dir, 'ThirdParty' )
+-PATH_Ogre = os.path.join(BASE_DIR,'ogre')
++PATH_Ogre = os.path.join(LOCAL_INCLUDE, 'OGRE')
+ PATH_OgreAddons = os.path.join(BASE_DIR, 'ogreaddons')
+-PATH_CEGUI = os.path.join(BASE_DIR, 'CEGUI-0.7.5' )
+-PATH_OIS = os.path.join(BASE_DIR, 'ois')
++PATH_CEGUI = os.path.join(LOCAL_INCLUDE, 'CEGUI' )
++PATH_OIS = os.path.join(LOCAL_INCLUDE, 'ois')
+
+ if _SDK:
+ PATH_CEGUI = os.path.join(BASE_DIR, 'ogre','Dependencies')
+@@ -193,7 +193,7 @@
+ PATH_INCLUDE_sdksample = os.path.join(PATH_Ogre, 'Samples', 'Common', 'include')
+ PATH_INCLUDE_Ogre_Samples_Browser_src = os.path.join(PATH_Ogre,'Samples','Browser','src')
+
+-PATH_INCLUDE_ogreproperty = os.path.join(PATH_Ogre,'Components','Property', 'include')
++PATH_INCLUDE_ogreproperty = os.path.join(PATH_Ogre,'Property')
+
+
+ PATH_ogrevideo = os.path.join(BASE_DIR,'ogrevideo','trunk')
+diff -r 62c525e29dfd code_generators/ogre/python_ogre_include_OGRE.h
+--- a/code_generators/ogre/python_ogre_include_OGRE.h Mon Jun 11 16:11:43 2012 +0800
++++ b/code_generators/ogre/python_ogre_include_OGRE.h Wed Sep 12 16:29:12 2012 +0200
+@@ -10,6 +10,10 @@
+ // #include "FlatCarbon/Carbon.h"
+ #endif
+
++// default OGRE_COMP_VER 430 generation leads to tr1/ which leads gccml fail
++#define __GNUC_MINOR__ 1
++
++
+ #include "OgrePlatform.h"
+ #if (OGRE_COMPILER == OGRE_COMPILER_GNUC ) && OGRE_THREAD_PROVIDER
+ #if !defined __APPLE_CC__
+@@ -27,4 +31,4 @@
+ #define OGRE_THREAD_SUPPORT _HOLD_STATUS // set back to the original state
+ #endif
+
+-#include "Ogre.h"
+\ No newline at end of file
++#include "Ogre.h"
+diff -r 62c525e29dfd environment.py
+--- a/environment.py Mon Jun 11 16:11:43 2012 +0800
++++ b/environment.py Wed Sep 12 16:29:12 2012 +0200
+@@ -561,7 +561,7 @@
+ #if Config._SVN:
+ # version = "1.41r57399"
+ #else:
+- version = "1.45.0"
++ version = "1.48.0"
+ ModuleName = ""
+ libsys = 'libboost_system'
+ if isWindows():
+@@ -574,8 +574,8 @@
+ lib = 'boost_python-vc90-mt-1_45'
+ versionBase = '1_45' ## the version used on the library name
+ else:
+- base = 'boost_1_41_0'
+- versionBase = '1_41' ## the version used on the library name
++ base = 'boost_1_48_0'
++ versionBase = '1_48' ## the version used on the library name
+
+ if isLinux():
+ bjambuildset = 'gcc'
+@@ -781,7 +781,7 @@
+ LINKFLAGS = ''
+
+ elif isLinux():
+- version = "1.7.2"
++ version = "1.8.0"
+ base = "ogre_src_v1-7-2"
+ baseDir = 'ogre'
+ #http://sourceforge.net/projects/ogre/files/ogre/1.7/ogre_src_v1-7-2.tar.bz2/download
+@@ -868,7 +868,7 @@
+ ]
+
+ if isLinux():
+- version = "1.0"
++ version = "1.3"
+ base = "ois"
+ source = [
+ [cvs, "-z3 -d:pserver:anonymous@wgois.cvs.sourceforge.net:/cvsroot/wgois co -D 01Jan2009 -P ois", os.getcwd()]
+@@ -881,7 +881,7 @@
+ ]
+
+ if isWindows():
+- version = "1.2"
++ version = "1.3"
+ base = "ois"
+ source = [
+ [cvs, "-z3 -d:pserver:anonymous@wgois.cvs.sourceforge.net:/cvsroot/wgois co -D 01Jan2009 -P ois", os.getcwd()]
+@@ -926,10 +926,10 @@
+
+ class cegui(pymodule):
+ parent = "ogre/gui"
+- version = "0.7.5"
++ version = "0.7.7"
+ package_name = [ogre.package_name, "cegui"]
+ if isWindows():
+- version = "0.7.5"
++ version = "0.7.7"
+ if _PRECOMPILED:
+ pchstop = 'cegui.h'
+ pchbuild = 'buildpch.cpp'
diff --git a/dev-games/python-ogre/python-ogre-1.8.0.ebuild b/dev-games/python-ogre/python-ogre-1.8.0.ebuild
new file mode 100644
index 0000000..65bd5f4
--- /dev/null
+++ b/dev-games/python-ogre/python-ogre-1.8.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+EHG_REPO_URI="https://bitbucket.org/kiwisoft/python-ogre"
+EHG_REVISION="tip"
+EHG_PROJECT="${PV}"
+
+inherit distutils mercurial
+
+DESCRIPTION="python-ogre python interface to several 3D and related libraries"
+HOMEPAGE="http://www.python-ogre.org/"
+
+LICENSE="OpenSoftware"
+SLOT="0"
+KEYWORDS=""
+IUSE="ogre cegui ois python"
+
+RDEPEND=">=dev-lang/python-2.7
+ >=dev-games/ogre-1.8.0
+ >=dev-games/ois-1.3
+ >=dev-games/cegui-0.7.7
+ =dev-python/pygccxml-9999
+ =dev-python/py++-9999"
+DEPEND="${RDEPEND}
+ >=dev-util/scons-0.97"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_compile() {
+ local PYTHONOGRE_COMPONENTS="ogre ois cegui"
+ for component in ${PYTHONOGRE_COMPONENTS} ; do
+ pushd ./code_generators/${component}
+ python generate_code.py > build.out || die "code generation for ${component} failed"
+ popd
+ done
+ for proj in ${PYTHONOGRE_COMPONENTS} ; do
+ scons PROJECTS=$proj install_pypp_txt=1 $MAKEOPTS || die "scons for ${proj} failed"
+ done
+ distutils_src_compile
+}