* [gentoo-commits] proj/sci:master commit in: sci-libs/opencascade/, sci-libs/opencascade/files/
@ 2011-03-03 1:10 Andreas K. Huettel
0 siblings, 0 replies; only message in thread
From: Andreas K. Huettel @ 2011-03-03 1:10 UTC (permalink / raw
To: gentoo-commits
commit: 7c4a52183d9f70ebabbaf0d0a01035a0a3da74e3
Author: Andreas K. Huettel (dilfridge) <mail <AT> akhuettel <DOT> de>
AuthorDate: Thu Mar 3 01:11:07 2011 +0000
Commit: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Mar 3 01:11:34 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7c4a5218
[sci-libs/opencascade] Moved to main tree.
---
sci-libs/opencascade/ChangeLog | 68 ----
sci-libs/opencascade/files/env.ksh.template | 39 ---
.../files/opencascade-6.3-fixed-DESTDIR.patch | 358 --------------------
.../files/opencascade-6.3-missing-mode.patch | 12 -
sci-libs/opencascade/metadata.xml | 8 -
sci-libs/opencascade/opencascade-6.3-r1.ebuild | 217 ------------
sci-libs/opencascade/opencascade-6.3-r2.ebuild | 219 ------------
7 files changed, 0 insertions(+), 921 deletions(-)
diff --git a/sci-libs/opencascade/ChangeLog b/sci-libs/opencascade/ChangeLog
deleted file mode 100644
index 3b8bccc..0000000
--- a/sci-libs/opencascade/ChangeLog
+++ /dev/null
@@ -1,68 +0,0 @@
-# ChangeLog for sci-libs/opencascade
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 19 Sep 2010; Justin Lecher <jlec@gentoo.org> opencascade-6.3-r1.ebuild,
- opencascade-6.3-r2.ebuild:
- virtual/glut -> media-libs/freeglut & virtual/glu -> virtual/opengl
- Correction
-
-*opencascade-6.3-r2 (18 Mar 2010)
-
- 18 Mar 2010; Oliver Borm (boroli) <oli.borm@web.de>
- +opencascade-6.3-r2.ebuild:
- New version with additional USE-flag source; Changed the paths in
- 50opencascade a lttle bit
-
- 16 Mar 2010; Oliver Borm (boroli) <oli.borm@web.de>
- opencascade-6.3-r1.ebuild:
- Changed all installation paths to ${INSTALL_DIR}; Added examples USE-flag
-
- 15 Mar 2010; Oliver Borm (boroli) <oli.borm@web.de>
- -opencascade-6.2-r1.ebuild, -files/opencascade-6.2-gcc4.patch,
- -files/opencascade-6.2-malloc.patch, opencascade-6.3-r1.ebuild:
- fixed src_uri and changed to eapi=2 in 6.3; removed old version 6.2
-
- 02 Nov 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
- opencascade-6.3-r1.ebuild:
- fixed java include path to
- --with-java-include=/opt/sun-jdk-1.6.0.15/include
-
-*opencascade-6.3-r1 (17 Sep 2009)
-
- 17 Sep 2009; Etienne Lorriaux <etienne.lorriaux@gmail.com>
- -opencascade-6.3.ebuild, +opencascade-6.3-r1.ebuild,
- +files/opencascade-6.3-fixed-DESTDIR.patch,
- +files/opencascade-6.3-missing-mode.patch:
- Replaced the broken opencascade-6.3 by opencascade-6.3-r1
-
- new file: files/opencascade-6.3-fixed-DESTDIR.patch
-
- deleted: opencascade-6.3.ebuild
-
- new file: files/opencascade-6.3-missing-mode.patch
-
- new file: opencascade-6.3-r1.ebuild
-
-
- 05 January 2009; Daniel Tourde <daniel.tourde@caelae.se>
- Added EAPI=1 in opencascade-6.2-r1.ebuild
- +opencascade-6.3.ebuild
-
- 27 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
- Corrected bugs in the way the --with-include and --with-library were handled (OpenGL, X). A big thank to Richard Westwell <garlicbread@ntlworld.com> for having discovered and corrected the issue.
-
- 20 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
- Corrected a bug in the ebuild. Now the tcl related variables should be corrected set and the values available all over the ebuild. A big thank to Dewald Pieterse <dewald.pieterse@gmail.com> for his testing and his good advices.
-
- 12 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
- +opencascade-6.2-r1.ebuild
- General improvement of the ebuild, better amd64 support, removal of the wok and draw-harness flags (They had no effects). Many thanks to Dewald Pieterse and Ãlvaro Castro Castilla.
- See bug #118656 for anything relating the building process.
-
- 15 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
- +files/opencascade-6.2-gcc4.patch, +files/opencascade-6.2-malloc.patch,
- +files/env.ksh.template, +metadata.xml, +opencascade-6.2.ebuild:
- Initial import. See bug #118656 for anything relating the building process.
- Ebuild from Daniel Tourde <daniel.tourde@caelae.se> and Alvaro Castro
- <alvcastro@yahoo.es>.
diff --git a/sci-libs/opencascade/files/env.ksh.template b/sci-libs/opencascade/files/env.ksh.template
deleted file mode 100644
index 55d772a..0000000
--- a/sci-libs/opencascade/files/env.ksh.template
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/ksh -f
-
-export CASROOT=VAR_CASROOT
-
-if [ -z "PATH" ];
-then PATH=VAR_CASROOT/Linux/bin;
-else PATH=VAR_CASROOT/Linux/bin:$PATH;
-fi
-export PATH
-if [ -z "LD_LIBRARY_PATH" ];
-then LD_LIBRARY_PATH=VAR_CASROOT/Linux/lib;
-else LD_LIBRARY_PATH=VAR_CASROOT/Linux/lib:$LD_LIBRARY_PATH;
-fi
-export LD_LIBRARY_PATH
-export CSF_MDTVFontDirectory=VAR_CASROOT/src/FontMFT
-export CSF_LANGUAGE=us
-export MMGT_CLEAR=1
-export CSF_EXCEPTION_PROMPT=1
-export CSF_SHMessage=VAR_CASROOT/src/SHMessage
-export CSF_MDTVTexturesDirectory=VAR_CASROOT/src/Textures
-export CSF_XSMessage=VAR_CASROOT/src/XSMessage
-export CSF_StandardDefaults=VAR_CASROOT/src/StdResource
-export CSF_PluginDefaults=VAR_CASROOT/src/StdResource
-export CSF_XCAFDefaults=VAR_CASROOT/src/StdResource
-export CSF_StandardLiteDefaults=VAR_CASROOT/src/StdResource
-export CSF_GraphicShr=VAR_CASROOT/Linux/lib/libTKOpenGl.so
-export CSF_UnitsLexicon=VAR_CASROOT/src/UnitsAPI/Lexi_Expr.dat
-export CSF_UnitsDefinition=VAR_CASROOT/src/UnitsAPI/Units.dat
-export CSF_IGESDefaults=VAR_CASROOT/src/XSTEPResource
-export CSF_STEPDefaults=VAR_CASROOT/src/XSTEPResource
-export CSF_XmlOcafResource=VAR_CASROOT/src/XmlOcafResource
-
-export TCLHOME=VAR_SYS_BIN
-export TCLLIBPATH=VAR_SYS_LIB
-export ITK_LIBRARY=VAR_SYS_LIB/VAR_ITK
-export ITCL_LIBRARY=VAR_SYS_LIB/VAR_ITCL
-export TIX_LIBRARY=VAR_SYS_LIB/VAR_TIX
-export TK_LIBRARY=VAR_SYS_LIB/VAR_TK
-export TCL_LIBRARY=VAR_SYS_LIB/VAR_TCL
diff --git a/sci-libs/opencascade/files/opencascade-6.3-fixed-DESTDIR.patch b/sci-libs/opencascade/files/opencascade-6.3-fixed-DESTDIR.patch
deleted file mode 100644
index 757f659..0000000
--- a/sci-libs/opencascade/files/opencascade-6.3-fixed-DESTDIR.patch
+++ /dev/null
@@ -1,358 +0,0 @@
-diff -urN OpenCASCADE6.3.0/ros/Makefile.am OpenCASCADE6.3.0.FixedInstall/ros/Makefile.am
---- OpenCASCADE6.3.0/ros/Makefile.am 2008-09-09 18:49:10.000000000 +0300
-+++ OpenCASCADE6.3.0.FixedInstall/ros/Makefile.am 2009-02-20 15:01:08.000000000 +0200
-@@ -108,126 +108,126 @@
- dir_SunOS=sun
-
- install-exec-local:
-- $(INSTALL) -d $(prefix)/$(platform)
-- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \
-- cd $(prefix)/$(platform) && ln -s ../bin bin; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(platform)
-+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \
-+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \
- fi
-- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \
-- cd $(prefix)/$(platform) && ln -s ../lib lib; \
-+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \
-+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \
- fi
-- $(INSTALL) -d $(prefix)/$(dir_$(platform))
-- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(dir_$(platform))/bin ]; then \
-- cd $(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(dir_$(platform))
-+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/bin ]; then \
-+ cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
- fi
-- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(dir_$(platform))/lib ]; then \
-- cd $(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
-+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/lib ]; then \
-+ cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
-- $(INSTALL) -d $(prefix)/inc; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix); \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(DESTDIR)$(prefix); \
- fi; \
- if [ "$$pd" != "$$bd" ]; then \
-- cp -fr$(CP_$(platform)) $$bd/config.h $(prefix); \
-+ cp -fr$(CP_$(platform)) $$bd/config.h $(DESTDIR)$(prefix); \
- fi
-- if [ -e $(prefix)/inc/config.h ]; then \
-- unlink $(prefix)/inc/config.h; \
-+ if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
-+ unlink $(DESTDIR)$(prefix)/inc/config.h; \
- fi
-- cd $(prefix)/inc && ln -s ../config.h config.h
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \
-- $(INSTALL) -d $(prefix)/src; \
-- $(INSTALL) -d $(prefix)/src/UnitsAPI; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/src; \
-- cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix); \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/UnitsAPI; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(DESTDIR)$(prefix)/src; \
-+ cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(DESTDIR)$(prefix); \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(FoundationClasses_DIRS)"; \
- if test "x$(FoundationClasses_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(ModelingData_DIRS)"; \
- if test "x$(ModelingData_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(ModelingAlgorithms_DIRS)"; \
- if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(Visualization_DIRS)"; \
- if test "x$(Visualization_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(ApplicationFramework_DIRS)"; \
- if test "x$(ApplicationFramework_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(DataExchange_DIRS)"; \
- if test "x$(DataExchange_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(Draw_DIRS)"; \
- if test "x$(Draw_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(WOK_DIRS)"; \
- if test "x$(WOK_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(Wrappers_DIRS)"; \
- if test "x$(Wrappers_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-diff -urN OpenCASCADE6.3.0/ros/Makefile.in OpenCASCADE6.3.0.FixedInstall/ros/Makefile.in
---- OpenCASCADE6.3.0/ros/Makefile.in 2008-09-09 18:52:16.000000000 +0300
-+++ OpenCASCADE6.3.0.FixedInstall/ros/Makefile.in 2009-02-20 15:01:59.000000000 +0200
-@@ -646,126 +646,126 @@
- cd $(top_builddir)/adm/make && $(MAKE) $(AM_MAKEFLAGS) Wrappers
-
- install-exec-local:
-- $(INSTALL) -d $(prefix)/$(platform)
-- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \
-- cd $(prefix)/$(platform) && ln -s ../bin bin; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(platform)
-+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \
-+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \
- fi
-- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \
-- cd $(prefix)/$(platform) && ln -s ../lib lib; \
-+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \
-+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \
- fi
-- $(INSTALL) -d $(prefix)/$(dir_$(platform))
-- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(dir_$(platform))/bin ]; then \
-- cd $(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(dir_$(platform))
-+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/bin ]; then \
-+ cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
- fi
-- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(dir_$(platform))/lib ]; then \
-- cd $(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
-+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/lib ]; then \
-+ cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
-- $(INSTALL) -d $(prefix)/inc; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix); \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(DESTDIR)$(prefix); \
- fi; \
- if [ "$$pd" != "$$bd" ]; then \
-- cp -fr$(CP_$(platform)) $$bd/config.h $(prefix); \
-+ cp -fr$(CP_$(platform)) $$bd/config.h $(DESTDIR)$(prefix); \
- fi
-- if [ -e $(prefix)/inc/config.h ]; then \
-- unlink $(prefix)/inc/config.h; \
-+ if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
-+ unlink $(DESTDIR)$(prefix)/inc/config.h; \
- fi
-- cd $(prefix)/inc && ln -s ../config.h config.h
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \
-- $(INSTALL) -d $(prefix)/src; \
-- $(INSTALL) -d $(prefix)/src/UnitsAPI; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/src; \
-- cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix); \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/UnitsAPI; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(DESTDIR)$(prefix)/src; \
-+ cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(DESTDIR)$(prefix); \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(FoundationClasses_DIRS)"; \
- if test "x$(FoundationClasses_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(ModelingData_DIRS)"; \
- if test "x$(ModelingData_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(ModelingAlgorithms_DIRS)"; \
- if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(Visualization_DIRS)"; \
- if test "x$(Visualization_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(ApplicationFramework_DIRS)"; \
- if test "x$(ApplicationFramework_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(DataExchange_DIRS)"; \
- if test "x$(DataExchange_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(Draw_DIRS)"; \
- if test "x$(Draw_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(WOK_DIRS)"; \
- if test "x$(WOK_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
-- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
-+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
- if [ "$$pd" != "$$sd" ]; then \
- inst_dirs="$(Wrappers_DIRS)"; \
- if test "x$(Wrappers_DIRS)" != "x"; then \
- for d in $$inst_dirs; do \
-- $(INSTALL) -d $(prefix)/src/$$d; \
-- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
-+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
-+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
- done; \
- fi; \
- fi
diff --git a/sci-libs/opencascade/files/opencascade-6.3-missing-mode.patch b/sci-libs/opencascade/files/opencascade-6.3-missing-mode.patch
deleted file mode 100644
index 32b5aae..0000000
--- a/sci-libs/opencascade/files/opencascade-6.3-missing-mode.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -aur OpenCASCADE6.3.0.old/ros/src/WOKUnix/WOKUnix_FDescr.cxx OpenCASCADE6.3.0/ros/src/WOKUnix/WOKUnix_FDescr.cxx
---- OpenCASCADE6.3.0.old/ros/src/WOKUnix/WOKUnix_FDescr.cxx 2009-02-15 14:00:22.000000000 +0100
-+++ OpenCASCADE6.3.0/ros/src/WOKUnix/WOKUnix_FDescr.cxx 2009-02-15 14:08:50.000000000 +0100
-@@ -202,7 +202,7 @@
- if(mknod(apath.ToCString(), 0700 | S_IFIFO, 0))
- { perror(apath.ToCString());}
-
-- myFileChannel = open(apath.ToCString(), O_RDONLY | O_NDELAY | O_CREAT);
-+ myFileChannel = open(apath.ToCString(), O_RDONLY | O_NDELAY );
- SetUnBuffered();
-
- // write end of pipe is unbuffered also
diff --git a/sci-libs/opencascade/metadata.xml b/sci-libs/opencascade/metadata.xml
deleted file mode 100644
index 5c33b98..0000000
--- a/sci-libs/opencascade/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>sci</herd>
- <use>
- <flag name="stlport"> Enables support for STL files</flag>
- </use>
-</pkgmetadata>
diff --git a/sci-libs/opencascade/opencascade-6.3-r1.ebuild b/sci-libs/opencascade/opencascade-6.3-r1.ebuild
deleted file mode 100644
index 64bd4f7..0000000
--- a/sci-libs/opencascade/opencascade-6.3-r1.ebuild
+++ /dev/null
@@ -1,217 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-
-inherit autotools eutils flag-o-matic check-reqs java-pkg-opt-2 multilib toolchain-funcs versionator
-
-DESCRIPTION="Software development platform for CAD/CAE, 3D surface/solid modeling and data exchange."
-HOMEPAGE="http://www.opencascade.org"
-SRC_URI="http://files.opencascade.com/OCC_${PV}_release/OpenCASCADE_src.tgz"
-
-LICENSE="Open-CASCADE-Technology-Public-License"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug doc examples java opengl stlport X"
-DEPEND="java? ( virtual/jdk )
- opengl? ( virtual/opengl
- virtual/opengl )
- X? ( x11-libs/libXmu
- app-text/dgs )
- >=dev-lang/tcl-8.4
- >=dev-lang/tk-8.4
- >=dev-tcltk/itcl-3.2
- >=dev-tcltk/itk-3.2
- x86? ( >=dev-tcltk/tix-8.1 )
- amd64? ( >=dev-tcltk/tix-8.4.2 )
- stlport? ( dev-libs/STLport )"
-RDEPEND=${DEPEND}
-
-S=${WORKDIR}/OpenCASCADE${PV}.0/ros
-INSTALL_DIR=/opt/${P}/ros
-
-pkg_setup() {
- # Determine itk, itcl, tix, tk and tcl versions
- itk_version=$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/')
- itcl_version=$(grep ITCL_VER /usr/include/itcl.h | sed 's/^.*"\(.*\)".*/\1/')
- tix_version=$(grep TIX_VER /usr/include/tix.h | sed 's/^.*"\(.*\)".*/\1/')
- tk_version=$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/')
- tcl_version=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
-
- ewarn
- ewarn " It is important to note that OpenCascade is a very large package. "
- ewarn " Please note that building OpenCascade takes a lot of time and "
- ewarn " hardware ressources: 3.5-4 GB free diskspace and 256 MB RAM are "
- ewarn " the minimum requirements. "
- ewarn
-
- # Check if we have enough RAM and free diskspace to build this beast
- CHECKREQS_MEMORY="256"
- CHECKREQS_DISK_BUILD="3584"
- check_reqs
-}
-
-src_prepare() {
- # Substitute with our ready-made env.ksh script
- cp -f "${FILESDIR}"/env.ksh.template "${S}"/env.ksh || die "Cannot copy env.ksh.template"
-
- # Feed environment variables used by Opencascade compilation
- sed -i \
- -e "s:VAR_CASROOT:${S}:g" \
- -e 's:VAR_SYS_BIN:/usr/bin:g' \
- -e "s:VAR_SYS_LIB:/usr/$(get_libdir):g" env.ksh \
- || die "Environment variables feed in env.ksh failed!"
-
- # Tweak itk, itcl, tix, tk and tcl versions
- sed -i \
- -e "s:VAR_ITK:itk${itk_version}:g" \
- -e "s:VAR_ITCL:itcl${itcl_version}:g" \
- -e "s:VAR_TIX:tix${tix_version}:g" \
- -e "s:VAR_TK:tk${tk_version}:g" \
- -e "s:VAR_TCL:tcl${tcl_version}:g" env.ksh \
- || die "itk, itcl, tix, tk and tcl version tweaking failed!"
-
- # epatch "${FILESDIR}"/${P}-Makefile.am.patch
- epatch "${FILESDIR}"/${P}-fixed-DESTDIR.patch
- epatch "${FILESDIR}"/${P}-missing-mode.patch
-
- chmod u+x configure
-
- # Autotools version update
- source env.ksh
- eaclocal || die "eaclocal failed"
- eautoheader || die "eautoheader failed"
- eautomake -a -c -f
- _elibtoolize --force --copy || die "elibtoolize failed"
- eautoconf || die "eautoconf failed"
-}
-
-src_configure() {
- # Add the configure options
- local confargs="--prefix=${INSTALL_DIR}/lin --exec-prefix=${INSTALL_DIR}/lin --with-tcl=/usr/$(get_libdir) --with-tk=/usr/$(get_libdir)"
-
- if use X ; then
- confargs="${confargs} --with-dps-include=/usr/include --with-dps-library=/usr/$(get_libdir)"
- confargs="${confargs} --with-xmu-include=/usr/include --with-xmu-library=/usr/$(get_libdir)"
- if use !opengl; then
- ewarn "Activate OpenGL if you want to be able to visualize geometry. Set "opengl" USE flag."
- else
- confargs="${confargs} --with-gl-include=/usr/include --with-gl-library=/usr/$(get_libdir)"
- fi
- else
- if use opengl; then
- die "OpenGL imply X support! Add "X" USE flag."
- else
- ewarn "Activate X and OpenGL if you want to be able to visualize geometry. Set "X" and "opengl" USE flags."
- fi
- fi
-
- if use java ; then
- local java_path
- java_path=`java-config -O`
- confargs="${confargs} --with-java-include=${java_path}/include"
- else
- ewarn "Java wrapping is not going to be compiled. USE flag: "java""
- fi
-
- # NOTES: To clearly state --with-stlport-include and --with-stlport-library cause troubles. I don't know why....
- if use stlport ; then
- confargs="${confargs} --with-stlport-libname=stlport_gcc"
- #confargs="${confargs} --with-stlport-include=/usr/include --with-stlport-library=/usr/$(get_libdir)"
- fi
-
- # Compiler and linker flags
- if use amd64 ; then
- append-flags -m64
- fi
- append-ldflags -lpthread
-
- econf ${confargs} \
- $(use_with X x ) \
- $(use_enable debug ) \
- $(use_enable !debug production ) \
- || die "Configuration failed"
-}
-
-src_install() {
- rm *~
- emake DESTDIR="${D}" install || die "Installation failed"
-
- # Symlinks for keeping original OpenCascade folder structure and
- # add a link lib to lib64 in ros/Linux if we are on amd64
- dosym lin ${INSTALL_DIR}/Linux
-
- if use amd64 ; then
- mv "${D}""${INSTALL_DIR}"/lin/lib "${D}""${INSTALL_DIR}"/lin/lib64
- dosym lib64 ${INSTALL_DIR}/lin/lib
- fi
-
- #symlink for config.h
- dosym ${INSTALL_DIR}/config.h ${INSTALL_DIR}/inc/config.h
-
- # Tweak the environment variables script
- cp "${FILESDIR}"/env.ksh.template env.ksh
- sed -i "s:VAR_CASROOT:${INSTALL_DIR}:g" env.ksh
-
- # Build the env.d environment variables
- cp "${FILESDIR}"/env.ksh.template 50${PN}
- sed -i \
- -e 's:export ::g' \
- -e "s:VAR_CASROOT:${INSTALL_DIR}:g" \
- -e '1,2d' \
- -e '4,14d' \
- -e "s:ros/Linux/lib/:ros/Linux/$(get_libdir)/:g" ./50${PN} \
- || die "Creation of the /etc/env.d/50opencascade failed!"
- sed -i "2i\PATH=${INSTALL_DIR}/Linux/bin/\nLDPATH=${INSTALL_DIR}/Linux/$(get_libdir)" ./50${PN} \
- || die "Creation of the /etc/env.d/50opencascade failed!"
-
- # Update both env.d and script with the libraries variables
- sed -i \
- -e 's:VAR_SYS_BIN:/usr/bin:g' \
- -e "s:VAR_SYS_LIB:/usr/$(get_libdir):g" \
- -e "s:VAR_ITK:itk${itk_version}:g" \
- -e "s:VAR_ITCL:itcl${itcl_version}:g" \
- -e "s:VAR_TIX:tix${tix_version}:g" \
- -e "s:VAR_TK:tk${tk_version}:g" \
- -e "s:VAR_TCL:tcl${tcl_version}:g" env.ksh 50${PN} \
- || die "Tweaking of the Tcl/Tk libraries location in env.ksh and 50opencascade failed!"
-
- # Install the env.d variables file
- doenvd 50${PN}
- rm 50${PN} env.csh
-
- # Clean before copying everything
- emake clean || die "emake clean failed"
-
- # Install folders
- cd "${S}"/../
-
- ## why is this needed?
- insinto ${INSTALL_DIR}/../
- doins -r ros
-
- if use examples; then
- insinto /usr/share/doc/${PF}/examples
- doins -r data
-
- insinto /usr/share/doc/${PF}/examples/samples
- doins -r samples/tutorial
-
- if use java ; then
- insinto /usr/share/doc/${PF}/examples/samples/standard
- doins -r samples/standard/java
- fi
- fi
-
- # Install the documentation
- if use doc; then
- cd "${S}"/../doc
- insinto /usr/share/doc/${PF}
- doins -r {Overview,ReferenceDocumentation} || die "dodoc failed"
- fi
-}
-
-pkg_postinst() {
- einfo "Open CASCADE ebuild needs further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=118656"
-}
diff --git a/sci-libs/opencascade/opencascade-6.3-r2.ebuild b/sci-libs/opencascade/opencascade-6.3-r2.ebuild
deleted file mode 100644
index 732791d..0000000
--- a/sci-libs/opencascade/opencascade-6.3-r2.ebuild
+++ /dev/null
@@ -1,219 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=2
-
-inherit autotools eutils flag-o-matic check-reqs java-pkg-opt-2 multilib toolchain-funcs versionator
-
-DESCRIPTION="Software development platform for CAD/CAE, 3D surface/solid modeling and data exchange."
-HOMEPAGE="http://www.opencascade.org"
-SRC_URI="http://files.opencascade.com/OCC_${PV}_release/OpenCASCADE_src.tgz -> ${P}.tgz"
-
-LICENSE="Open-CASCADE-Technology-Public-License"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug doc examples java opengl source stlport X"
-DEPEND="java? ( virtual/jdk )
- opengl? ( virtual/opengl
- virtual/opengl )
- X? ( x11-libs/libXmu
- app-text/dgs )
- >=dev-lang/tcl-8.4
- >=dev-lang/tk-8.4
- >=dev-tcltk/itcl-3.2
- >=dev-tcltk/itk-3.2
- x86? ( >=dev-tcltk/tix-8.1 )
- amd64? ( >=dev-tcltk/tix-8.4.2 )
- stlport? ( dev-libs/STLport )"
-RDEPEND=${DEPEND}
-
-S=${WORKDIR}/OpenCASCADE${PV}.0/ros
-INSTALL_DIR=/opt/${P}/ros
-
-pkg_setup() {
- # Determine itk, itcl, tix, tk and tcl versions
- itk_version=$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/')
- itcl_version=$(grep ITCL_VER /usr/include/itcl.h | sed 's/^.*"\(.*\)".*/\1/')
- tix_version=$(grep TIX_VER /usr/include/tix.h | sed 's/^.*"\(.*\)".*/\1/')
- tk_version=$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/')
- tcl_version=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
-
- ewarn
- ewarn " It is important to note that OpenCascade is a very large package. "
- ewarn " Please note that building OpenCascade takes a lot of time and "
- ewarn " hardware ressources: 3.5-4 GB free diskspace and 256 MB RAM are "
- ewarn " the minimum requirements. "
- ewarn
-
- # Check if we have enough RAM and free diskspace to build this beast
- CHECKREQS_MEMORY="256"
- CHECKREQS_DISK_BUILD="3584"
- check_reqs
-}
-
-src_prepare() {
- # Substitute with our ready-made env.ksh script
- cp -f "${FILESDIR}"/env.ksh.template "${S}"/env.ksh || die "Cannot copy env.ksh.template"
-
- # Feed environment variables used by Opencascade compilation
- sed -i \
- -e "s:VAR_CASROOT:${S}:g" \
- -e 's:VAR_SYS_BIN:/usr/bin:g' \
- -e "s:VAR_SYS_LIB:/usr/$(get_libdir):g" env.ksh \
- || die "Environment variables feed in env.ksh failed!"
-
- # Tweak itk, itcl, tix, tk and tcl versions
- sed -i \
- -e "s:VAR_ITK:itk${itk_version}:g" \
- -e "s:VAR_ITCL:itcl${itcl_version}:g" \
- -e "s:VAR_TIX:tix${tix_version}:g" \
- -e "s:VAR_TK:tk${tk_version}:g" \
- -e "s:VAR_TCL:tcl${tcl_version}:g" env.ksh \
- || die "itk, itcl, tix, tk and tcl version tweaking failed!"
-
- # epatch "${FILESDIR}"/${P}-Makefile.am.patch
- epatch "${FILESDIR}"/${P}-fixed-DESTDIR.patch
- epatch "${FILESDIR}"/${P}-missing-mode.patch
-
- chmod u+x configure
-
- # Autotools version update
- source env.ksh
- eaclocal || die "eaclocal failed"
- eautoheader || die "eautoheader failed"
- eautomake -a -c -f
- _elibtoolize --force --copy || die "elibtoolize failed"
- eautoconf || die "eautoconf failed"
-}
-
-src_configure() {
- # Add the configure options
- local confargs="--prefix=${INSTALL_DIR}/lin --exec-prefix=${INSTALL_DIR}/lin --with-tcl=/usr/$(get_libdir) --with-tk=/usr/$(get_libdir)"
-
- if use X ; then
- confargs="${confargs} --with-dps-include=/usr/include --with-dps-library=/usr/$(get_libdir)"
- confargs="${confargs} --with-xmu-include=/usr/include --with-xmu-library=/usr/$(get_libdir)"
- if use !opengl; then
- ewarn "Activate OpenGL if you want to be able to visualize geometry. Set "opengl" USE flag."
- else
- confargs="${confargs} --with-gl-include=/usr/include --with-gl-library=/usr/$(get_libdir)"
- fi
- else
- if use opengl; then
- die "OpenGL imply X support! Add "X" USE flag."
- else
- ewarn "Activate X and OpenGL if you want to be able to visualize geometry. Set "X" and "opengl" USE flags."
- fi
- fi
-
- if use java ; then
- local java_path
- java_path=`java-config -O`
- confargs="${confargs} --with-java-include=${java_path}/include"
- else
- ewarn "Java wrapping is not going to be compiled. USE flag: "java""
- fi
-
- # NOTES: To clearly state --with-stlport-include and --with-stlport-library cause troubles. I don't know why....
- if use stlport ; then
- confargs="${confargs} --with-stlport-libname=stlport_gcc"
- #confargs="${confargs} --with-stlport-include=/usr/include --with-stlport-library=/usr/$(get_libdir)"
- fi
-
- # Compiler and linker flags
- if use amd64 ; then
- append-flags -m64
- fi
- append-ldflags -lpthread
-
- econf ${confargs} \
- $(use_with X x ) \
- $(use_enable debug ) \
- $(use_enable !debug production ) \
- || die "Configuration failed"
-}
-
-src_install() {
- rm *~
- emake DESTDIR="${D}" install || die "Installation failed"
-
- # Symlinks for keeping original OpenCascade folder structure and
- # add a link lib to lib64 in ros/Linux if we are on amd64
- # dosym lin ${INSTALL_DIR}/Linux
-
- if use amd64 ; then
- mv "${D}""${INSTALL_DIR}"/lin/lib "${D}""${INSTALL_DIR}"/lin/lib64
- dosym lib64 ${INSTALL_DIR}/lin/lib
- fi
-
- # Tweak the environment variables script
- cp "${FILESDIR}"/env.ksh.template env.ksh
- sed -i "s:VAR_CASROOT:${INSTALL_DIR}/lin:g" env.ksh
-
- # Build the env.d environment variables
- cp "${FILESDIR}"/env.ksh.template 50${PN}
- sed -i \
- -e 's:export ::g' \
- -e "s:VAR_CASROOT:${INSTALL_DIR}/lin:g" \
- -e '1,2d' \
- -e '4,14d' \
- -e "s:/Linux/lib/:/$(get_libdir)/:g" ./50${PN} \
- || die "Creation of the /etc/env.d/50opencascade failed!"
- sed -i "2i\PATH=${INSTALL_DIR}/lin/bin\nLDPATH=${INSTALL_DIR}/lin/$(get_libdir)" ./50${PN} \
- || die "Creation of the /etc/env.d/50opencascade failed!"
-
- # Update both env.d and script with the libraries variables
- sed -i \
- -e 's:VAR_SYS_BIN:/usr/bin:g' \
- -e "s:VAR_SYS_LIB:/usr/$(get_libdir):g" \
- -e "s:VAR_ITK:itk${itk_version}:g" \
- -e "s:VAR_ITCL:itcl${itcl_version}:g" \
- -e "s:VAR_TIX:tix${tix_version}:g" \
- -e "s:VAR_TK:tk${tk_version}:g" \
- -e "s:VAR_TCL:tcl${tcl_version}:g" env.ksh 50${PN} \
- || die "Tweaking of the Tcl/Tk libraries location in env.ksh and 50opencascade failed!"
-
- # Install the env.d variables file
- doenvd 50${PN}
- rm 50${PN} env.csh
-
- # Clean before copying everything
- emake clean || die "emake clean failed"
-
- # Install folders
- cd "${S}"/../
-
- ## Do we really need this USE-flag?
- if use source; then
- #symlink for config.h
- dosym ${INSTALL_DIR}/lin/config.h ${INSTALL_DIR}/inc/config.h
-
- insinto ${INSTALL_DIR}/../
- doins -r ros
- fi
-
- if use examples; then
- insinto /usr/share/doc/${PF}/examples
- doins -r data
-
- insinto /usr/share/doc/${PF}/examples/samples
- doins -r samples/tutorial
-
- if use java ; then
- insinto /usr/share/doc/${PF}/examples/samples/standard
- doins -r samples/standard/java
- fi
- fi
-
- # Install the documentation
- if use doc; then
- cd "${S}"/../doc
- insinto /usr/share/doc/${PF}
- doins -r {Overview,ReferenceDocumentation} || die "dodoc failed"
- fi
-}
-
-pkg_postinst() {
- einfo "Open CASCADE ebuild needs further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=118656"
-}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-03 1:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 1:10 [gentoo-commits] proj/sci:master commit in: sci-libs/opencascade/, sci-libs/opencascade/files/ Andreas K. Huettel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox