diff options
Diffstat (limited to 'dev-python/cgal-python')
-rw-r--r-- | dev-python/cgal-python/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild | 15 | ||||
-rw-r--r-- | dev-python/cgal-python/files/cgal-python-0.9.4_beta1-linking.patch | 120 |
3 files changed, 139 insertions, 4 deletions
diff --git a/dev-python/cgal-python/ChangeLog b/dev-python/cgal-python/ChangeLog index 310ba829816f..9452f7a5b11c 100644 --- a/dev-python/cgal-python/ChangeLog +++ b/dev-python/cgal-python/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/cgal-python # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cgal-python/ChangeLog,v 1.2 2010/01/10 10:36:37 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/cgal-python/ChangeLog,v 1.3 2010/02/26 00:30:37 ssuominen Exp $ + + 26 Feb 2010; Samuli Suominen <ssuominen@gentoo.org> + cgal-python-0.9.4_beta1.ebuild, + +files/cgal-python-0.9.4_beta1-linking.patch: + Link to CGAL, mpfr and gmp (if cgal was built with USE="gmp") wrt #306887, + thanks to Kamil Kisiel for reporting. *cgal-python-0.9.4_beta1 (10 Jan 2010) diff --git a/dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild b/dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild index 77b8f4fb1f93..f613e056519c 100644 --- a/dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild +++ b/dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild,v 1.1 2010/01/10 10:36:37 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/cgal-python/cgal-python-0.9.4_beta1.ebuild,v 1.2 2010/02/26 00:30:37 ssuominen Exp $ EAPI=2 -inherit toolchain-funcs python +inherit eutils toolchain-funcs python MY_P=${P/_/-} @@ -16,11 +16,20 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="examples" -DEPEND=">=sci-mathematics/cgal-3.5.1" +DEPEND="dev-libs/mpfr + >=sci-mathematics/cgal-3.5.1" S=${WORKDIR}/${MY_P} src_prepare() { + epatch "${FILESDIR}"/${P}-linking.patch + + if has_version sci-mathematics/cgal[gmp]; then + sed -i \ + -e 's:$(CGAL_LDFLAGS):-lgmp $(CGAL_LDFLAGS):' \ + bindings/makefile.inc || die + fi + python_version sed -i \ -e "s:-I../.. -O2:-I/usr/include/python${PYVER} -I../..:g" \ diff --git a/dev-python/cgal-python/files/cgal-python-0.9.4_beta1-linking.patch b/dev-python/cgal-python/files/cgal-python-0.9.4_beta1-linking.patch new file mode 100644 index 000000000000..e3d83c75d159 --- /dev/null +++ b/dev-python/cgal-python/files/cgal-python-0.9.4_beta1-linking.patch @@ -0,0 +1,120 @@ +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Alpha_shapes_2/Makefile cgal-python-0.9.4-beta1/bindings/Alpha_shapes_2/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Alpha_shapes_2/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Alpha_shapes_2/Makefile 2010-02-26 01:40:39.000000000 +0200 +@@ -12,7 +12,7 @@ + + all: $(OBJ_of_Kernel_module) $(OBJ_of_Triangulation_2_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Kernel_module) module is created in ./$(Kernel_module)/$(Kernel_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Alpha_shapes_3/Makefile cgal-python-0.9.4-beta1/bindings/Alpha_shapes_3/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Alpha_shapes_3/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Alpha_shapes_3/Makefile 2010-02-26 01:40:22.000000000 +0200 +@@ -12,7 +12,7 @@ + + all: $(OBJ_of_Kernel_module) $(OBJ_of_Triangulation_3_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Kernel_module) module is created in ./$(Kernel_module)/$(Kernel_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Convex_hull_2/Makefile cgal-python-0.9.4-beta1/bindings/Convex_hull_2/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Convex_hull_2/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Convex_hull_2/Makefile 2010-02-26 01:41:08.000000000 +0200 +@@ -11,7 +11,7 @@ + + all: $(OBJ_of_Convex_hull_module) $(OBJ_of_Triangulation_2_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Convex_hull_module) -o $(Convex_hull_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Convex_hull_module) -o $(Convex_hull_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Convex_hull_module) module is created in ./$(Convex_hull_module)/$(Convex_hull_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Geometric_Optimisation/Makefile cgal-python-0.9.4-beta1/bindings/Geometric_Optimisation/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Geometric_Optimisation/Makefile 2009-03-17 16:34:47.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Geometric_Optimisation/Makefile 2010-02-26 01:41:49.000000000 +0200 +@@ -15,7 +15,7 @@ + + all: $(OBJ_of_Optimisation_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Optimisation_module) -o $(Optimisation_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Optimisation_module) -o $(Optimisation_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Optimisation_module) module is created in ./$(Optimisation_module)/$(Optimisation_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Kernel/Makefile cgal-python-0.9.4-beta1/bindings/Kernel/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Kernel/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Kernel/Makefile 2010-02-26 01:39:57.000000000 +0200 +@@ -41,7 +41,7 @@ + + all: $(OBJ_of_Kernel_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Kernel_module) -o $(Kernel_module).so $(CGAL_PYTHON_LDFLAGS) + @echo 'Kernel is created in ./$(Kernel_module)/' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/makefile.inc cgal-python-0.9.4-beta1/bindings/makefile.inc +--- cgal-python-0.9.4-beta1.orig/bindings/makefile.inc 2009-03-17 16:34:47.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/makefile.inc 2010-02-26 01:48:10.000000000 +0200 +@@ -9,7 +9,6 @@ + # as it would prefer, e.g. -lpython2.4 on FC5. + LDOPT=`(uname | grep Darwin > /dev/null) && echo "-dynamiclib -lpython" || echo "-shared"` + +-CGAL_PYTHON_LDFLAGS=$(LDOPT) -lboost_python $(LDFLAGS) $(CGAL_LDFLAGS) +- ++CGAL_PYTHON_LDFLAGS=$(LDOPT) -lboost_python -lCGAL -lCGAL_Core -lmpfr $(CGAL_LDFLAGS) + + CGAL_PYTHON_CXXFLAGS=-fPIC -DCGAL_DONT_USE_LAZY_KERNEL $(CXXFLAGS) $(CPPFLAGS) $(CGAL_CXXFLAGS) -I../.. -O2 +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Mesh_2/Makefile cgal-python-0.9.4-beta1/bindings/Mesh_2/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Mesh_2/Makefile 2009-03-17 16:34:47.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Mesh_2/Makefile 2010-02-26 01:40:53.000000000 +0200 +@@ -12,7 +12,7 @@ + + all:$(OBJ_of_Mesh_2_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Mesh_2_module) -o $(Mesh_2_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Mesh_2_module) -o $(Mesh_2_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Mesh_2_module) module is created in ./$(Mesh_2_module)/$(Mesh_2_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Polyhedron/Makefile cgal-python-0.9.4-beta1/bindings/Polyhedron/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Polyhedron/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Polyhedron/Makefile 2010-02-26 01:41:38.000000000 +0200 +@@ -13,7 +13,7 @@ + + all:$(OBJ_of_Polyhedron_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Polyhedron_module) -o $(Polyhedron_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Polyhedron_module) -o $(Polyhedron_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Polyhedron_module) module is created in ./$(Polyhedron_module)/$(Polyhedron_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Triangulations_2/Makefile cgal-python-0.9.4-beta1/bindings/Triangulations_2/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Triangulations_2/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Triangulations_2/Makefile 2010-02-26 01:41:24.000000000 +0200 +@@ -17,7 +17,7 @@ + + all:$(OBJ_of_Triangulation_2_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Triangulation_2_module) -o $(Triangulation_2_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Triangulation_2_module) -o $(Triangulation_2_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Triangulation_2_module) module is created in ./$(Triangulation_2_module)/$(Triangulation_2_module).so' + + .cpp.o: +diff -ur cgal-python-0.9.4-beta1.orig/bindings/Triangulations_3/Makefile cgal-python-0.9.4-beta1/bindings/Triangulations_3/Makefile +--- cgal-python-0.9.4-beta1.orig/bindings/Triangulations_3/Makefile 2009-03-17 16:34:46.000000000 +0200 ++++ cgal-python-0.9.4-beta1/bindings/Triangulations_3/Makefile 2010-02-26 01:39:41.000000000 +0200 +@@ -14,7 +14,7 @@ + + all:$(OBJ_of_Triangulation_3_module) + @echo 'Creating a Python modules' +- @g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Triangulation_3_module) -o $(Triangulation_3_module).so ++ @g++ $(LDFLAGS) $(OBJ_of_Triangulation_3_module) -o $(Triangulation_3_module).so $(CGAL_PYTHON_LDFLAGS) + @echo '$(Triangulation_3_module) module is created in ./$(Triangulation_3_module)/$(Triangulation_3_module).so' + + .cpp.o: |