summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2006-09-19 15:11:12 +0000
committerDaniel Drake <dsd@gentoo.org>2006-09-19 15:11:12 +0000
commit2cd9f707be5ac3ee91c00294f2b7c302014ec5da (patch)
tree15fcdd6afcfbae691de6257102f291b9c5063a77 /media-gfx/openmesh/files
parentNow depend on the correct autotools versions, as no longer all versions are a... (diff)
downloadgentoo-2-2cd9f707be5ac3ee91c00294f2b7c302014ec5da.tar.gz
gentoo-2-2cd9f707be5ac3ee91c00294f2b7c302014ec5da.tar.bz2
gentoo-2-2cd9f707be5ac3ee91c00294f2b7c302014ec5da.zip
Initial import based on ebuild by Seemant Kulleen, thanks to ville in bug #128305
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'media-gfx/openmesh/files')
-rw-r--r--media-gfx/openmesh/files/digest-openmesh-1.0.03
-rw-r--r--media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch145
2 files changed, 148 insertions, 0 deletions
diff --git a/media-gfx/openmesh/files/digest-openmesh-1.0.0 b/media-gfx/openmesh/files/digest-openmesh-1.0.0
new file mode 100644
index 000000000000..d0aaf5bd4b28
--- /dev/null
+++ b/media-gfx/openmesh/files/digest-openmesh-1.0.0
@@ -0,0 +1,3 @@
+MD5 694182cc15bd647409eb024422e26033 OpenMesh_1.0.0.tgz 4911191
+RMD160 2a90206dc51677b2cb56f5af9f1cfc2d851f9404 OpenMesh_1.0.0.tgz 4911191
+SHA256 025c5af3b5af9cae7983f2322579f8aa5a45ac9f195123a8c09a0645dfc2e7c4 OpenMesh_1.0.0.tgz 4911191
diff --git a/media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch b/media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch
new file mode 100644
index 000000000000..ce6f5e108a5a
--- /dev/null
+++ b/media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch
@@ -0,0 +1,145 @@
+From: Daniel Drake <dsd@gentoo.org>
+
+Index: OpenMesh/Core/IO/OMFormat.hh
+===================================================================
+--- OpenMesh.orig/Core/IO/OMFormat.hh
++++ OpenMesh/Core/IO/OMFormat.hh
+@@ -462,23 +462,6 @@ namespace OMFormat {
+ typedef GenProg::False t_unsigned;
+
+
+- /// Store an integer with a wanted number of bits
+- template< typename T >
+- inline
+- size_t
+- store( std::ostream& _os,
+- const T& _val,
+- OMFormat::Chunk::Integer_Size _b,
+- bool _swap)
+- {
+- assert( OMFormat::is_integer( _val ) );
+-
+- if ( OMFormat::is_signed( _val ) )
+- return store( _os, _val, _b, _swap, t_signed() );
+- return store( _os, _val, _b, _swap, t_unsigned() );
+- }
+-
+-
+ // helper to store a an integer
+ template< typename T >
+ size_t
+@@ -497,24 +480,22 @@ namespace OMFormat {
+ bool _swap,
+ t_unsigned);
+
+-
+- /// Restore an integer with a wanted number of bits
++ /// Store an integer with a wanted number of bits
+ template< typename T >
+ inline
+ size_t
+- restore( std::istream& _is,
+- T& _val,
+- OMFormat::Chunk::Integer_Size _b,
+- bool _swap)
++ store( std::ostream& _os,
++ const T& _val,
++ OMFormat::Chunk::Integer_Size _b,
++ bool _swap)
+ {
+ assert( OMFormat::is_integer( _val ) );
+-
++
+ if ( OMFormat::is_signed( _val ) )
+- return restore( _is, _val, _b, _swap, t_signed() );
+- return restore( _is, _val, _b, _swap, t_unsigned() );
++ return store( _os, _val, _b, _swap, t_signed() );
++ return store( _os, _val, _b, _swap, t_unsigned() );
+ }
+
+-
+ // helper to store a an integer
+ template< typename T > inline
+ size_t restore( std::istream& _is,
+@@ -530,18 +511,26 @@ namespace OMFormat {
+ OMFormat::Chunk::Integer_Size _b,
+ bool _swap,
+ t_unsigned);
+- //
+- // ---------------------------------------- storing vectors
+
+- /// storing a vector type
+- template <typename VecT> inline
+- size_t vector_store( std::ostream& _os, const VecT& _vec, bool _swap )
+- {
+- return store( _os, _vec,
+- GenProg::Int2Type< vector_traits<VecT>::size_ >(),
+- _swap );
++ /// Restore an integer with a wanted number of bits
++ template< typename T >
++ inline
++ size_t
++ restore( std::istream& _is,
++ T& _val,
++ OMFormat::Chunk::Integer_Size _b,
++ bool _swap)
++ {
++ assert( OMFormat::is_integer( _val ) );
++
++ if ( OMFormat::is_signed( _val ) )
++ return restore( _is, _val, _b, _swap, t_signed() );
++ return restore( _is, _val, _b, _swap, t_unsigned() );
+ }
+
++ //
++ // ---------------------------------------- storing vectors
++
+ template <typename VecT> inline
+ size_t store( std::ostream& _os, const VecT& _vec, GenProg::Int2Type<1>,
+ bool _swap )
+@@ -579,19 +568,17 @@ namespace OMFormat {
+ return bytes;
+ }
+
+- // ---------------------------------------- restoring vectors
+-
+- /// Restoring a vector type
+- template <typename VecT>
+- inline
+- size_t
+- vector_restore( std::istream& _is, VecT& _vec, bool _swap )
++ /// storing a vector type
++ template <typename VecT> inline
++ size_t vector_store( std::ostream& _os, const VecT& _vec, bool _swap )
+ {
+- return restore( _is, _vec,
+- GenProg::Int2Type< vector_traits<VecT>::size_ >(),
+- _swap );
++ return store( _os, _vec,
++ GenProg::Int2Type< vector_traits<VecT>::size_ >(),
++ _swap );
+ }
+
++ // ---------------------------------------- restoring vectors
++
+
+ template <typename VecT>
+ inline
+@@ -644,6 +631,17 @@ namespace OMFormat {
+ return bytes;
+ }
+
++ /// Restoring a vector type
++ template <typename VecT>
++ inline
++ size_t
++ vector_restore( std::istream& _is, VecT& _vec, bool _swap )
++ {
++ return restore( _is, _vec,
++ GenProg::Int2Type< vector_traits<VecT>::size_ >(),
++ _swap );
++ }
++
+ // ---------------------------------------- storing property names
+
+ template <>