summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-06-24 19:16:16 +0000
committerMichael Weber <xmw@gentoo.org>2013-06-24 19:16:16 +0000
commit6c5bd9c6360611643a30056f134d93bbdd06d72a (patch)
tree981ce1b11f02c97378bf42c7b66359c284561f93 /sci-libs/opencascade
parentnew License file Open-CASCADE-Technology-Public-License-6.6 (diff)
downloadhistorical-6c5bd9c6360611643a30056f134d93bbdd06d72a.tar.gz
historical-6c5bd9c6360611643a30056f134d93bbdd06d72a.tar.bz2
historical-6c5bd9c6360611643a30056f134d93bbdd06d72a.zip
Version bump (bug 438466)
Package-Manager: portage-2.2.0_alpha183/cvs/Linux x86_64 Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'sci-libs/opencascade')
-rw-r--r--sci-libs/opencascade/ChangeLog10
-rw-r--r--sci-libs/opencascade/Manifest17
-rw-r--r--sci-libs/opencascade/files/opencascade-6.5.4-fixed-DESTDIR.patch4
-rw-r--r--sci-libs/opencascade/files/opencascade-6.5.4-fixed-tbb-VERSION.patch4
-rw-r--r--sci-libs/opencascade/files/opencascade-6.6.0-fixed-DESTDIR.patch45
-rw-r--r--sci-libs/opencascade/opencascade-6.6.0.ebuild168
6 files changed, 236 insertions, 12 deletions
diff --git a/sci-libs/opencascade/ChangeLog b/sci-libs/opencascade/ChangeLog
index 75a01736705f..be71303c1d4d 100644
--- a/sci-libs/opencascade/ChangeLog
+++ b/sci-libs/opencascade/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sci-libs/opencascade
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/opencascade/ChangeLog,v 1.13 2013/04/27 21:53:52 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/opencascade/ChangeLog,v 1.14 2013/06/24 19:16:11 xmw Exp $
+
+*opencascade-6.6.0 (24 Jun 2013)
+
+ 24 Jun 2013; Michael Weber <xmw@gentoo.org>
+ +files/opencascade-6.6.0-fixed-DESTDIR.patch, +opencascade-6.6.0.ebuild,
+ files/opencascade-6.5.4-fixed-DESTDIR.patch,
+ files/opencascade-6.5.4-fixed-tbb-VERSION.patch:
+ Version bump (bug 438466)
27 Apr 2013; Michael Weber <xmw@gentoo.org> -opencascade-6.5.4.ebuild,
opencascade-6.5.5.ebuild:
diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest
index 975f67e40b95..5ed3e6ea29a0 100644
--- a/sci-libs/opencascade/Manifest
+++ b/sci-libs/opencascade/Manifest
@@ -5,20 +5,23 @@ AUX env.sh.template 1485 SHA256 fcf3d45a73a8499e6fb1282ddd3adcacff34a0cdf027af33
AUX opencascade-6.5-fixed-DESTDIR.patch 8023 SHA256 fac8e3453cf08e9a4d4240921664cb1c3b07105d4165e049aeaf38ba809a1d54 SHA512 040b06013b280555616ae481fc63bd3edf54514647417ad038e2f812ff4d77e9334044399e109b938d8e10f85095c81e9c1414cb66a52fa49d24f531bfceb4ac WHIRLPOOL cdd47d2e0f1bda1a8d64e43bacfa32ab0c1b318e657121145d0605658661fa9b472f6d8f161d68d090177ec3a682132b3db71ee429da35049ff1e411aa823935
AUX opencascade-6.5-ftgl.patch 3253 SHA256 b9134979f2a1ace891b84bbb2c5c084c519c35419bb2f047e9d7725bb6e42398 SHA512 f468b0de5377bfbcd97b8a86b6e0c4e470e8f3565e8f6d07a4ffcb3a13c8a07154234d5addcfe342c2f626b1e36e62c05141375656c910d7a4a635a27c6d1a4d WHIRLPOOL 6e441b4aa39baa6d0844e905f7e11ea586ea195156e6740da274be5101fe4c7886069e9e5d05778fd7b5d73730b90683fcbb5b802638fcff36e8463e0be2863b
AUX opencascade-6.5-tcl8.6.patch 1668 SHA256 992f1c787e8a4c1333d19a99ee425c8b1f5ea2ca8004efd08713b664f941e534 SHA512 e7f25a6886f3ebc9fc303ad7c24adac6e9605cdfc9f42ff7720f29dcbbe112e12edad6381238e5fa35cbbc9ed942c9062cf87665531c8c3946b166ca4045fb83 WHIRLPOOL 4393f8b6ec32008045d40e079a6e30a440bb9c08aff93ccb1effc840fc14228300270c32d05f1ebae45af73473364a1105ac0b9e5f7290e93b2f5a0d6b53d88c
-AUX opencascade-6.5.4-fixed-DESTDIR.patch 2285 SHA256 4c55b5aa5e52d66379593be97b0b253e0c1877b9f12445428873407e5c08b3ba SHA512 f7ad04ef9b3da6ec4ec2270218274e14661c642835a8d5c1adcf8d132dd5cf6dd447416e28a87ccf7a5c1591f90ecb6ce26d099582b6336a82f3595b0912ea77 WHIRLPOOL bf29b60a948768bf151bf998580c73865922408d617f2feb77fe495fdde9e8ab084b4b7012161baa2296c7cdb975ff2c8ed16c6982890316529edca485be3299
-AUX opencascade-6.5.4-fixed-tbb-VERSION.patch 312 SHA256 6ec721215e3cbd095f49a351af94a2688c6305f738c438e2d4ed88410a85a007 SHA512 fd1bcb49d576b03ee532cd08b14c4f113d325eeed70ddbe2c6f45ea3b19d02b4be2d2db7959236933ca85622c18f55d645a2659bede51a4b0930a0af7e4bcfd3 WHIRLPOOL 1b2d8663ae788977904ed067eceeaa96a1c5761c52cd53956283bf100b8a3d352d4e8983883825089a5c9e6dc1ba33ecd745b87edc1092feafad4b3d8cfecf10
+AUX opencascade-6.5.4-fixed-DESTDIR.patch 2244 SHA256 724c3f20071a2be5e60c23115f3268e929b7c61b8443bbfbd5841aacdae9dcb5 SHA512 3db64c50d33835a307f5298fe694e3f26260d7ac4135b8acad144d9c14db78ad5fe2c743f3f9411b2165e44cf095b73149d0bf891bd01c794c2471da59b2ca73 WHIRLPOOL 0d2f9b7119806743029131e8ce0358311c36a93f0c354da8f4325b7284b2a26cf572d8dda512aa0ad591ea691f58fce07f8f1df03c459ae1c4e8f51f71541125
+AUX opencascade-6.5.4-fixed-tbb-VERSION.patch 236 SHA256 6b8a6057a374b86b6fa9b844b8cf6c362c0f65eff7dd282680ab858ebe9361af SHA512 6fe7eeec8904a495108f2f0ab78fc8bc64b5745472c43e7c710cebd6a1ac1a0ae1c5ba7f23ef81c95d677ee8438ba798e7e49a57ab8e65bbfc5ec05862627d57 WHIRLPOOL 7f6630bb5e9b13a9e9f331c0779b270677aeea9c243489b3c0bb7a021d6ffcaffdcc59a6b372233ee3d08fc2b9c750a6fb94844fc3c8a7248212899b4051b78b
AUX opencascade-6.5.4-tcl8.6.patch 1392 SHA256 92294c760fd127892929640c295c227f1c414828629dfc5b05bf19c14b30a1db SHA512 2c9652e7c4e44caad41bf9f4bee298ee3b3ced8ba417375d28b3832696d2fca0eb9a5420bbd82370ea60a1423ffb07da46593a4e5d49cc65b4c8a572b3ddb0e6 WHIRLPOOL ed56348c7109f9f7f70dea8dab6e04f2816465c8852ebfc157d59886221221cd0ede959bfe0434f1822583efc9bc788e949bf3111e36ce1aff1091a1e3f54ea7
+AUX opencascade-6.6.0-fixed-DESTDIR.patch 2210 SHA256 e619c64d0880b44e1c029f6ce30d9574b214d3c03d5fb04a4b58ac928d0c0452 SHA512 f29230e7fc199c8923c7ab164e93d0bfe9cc53336628eaacdd9c8095aa73ec9d10fe396f911ab369522d002bcbdd58ee764feb91303bd1472825a939ffb391c6 WHIRLPOOL e02e1ee23e3d3a75fbf6393f0593a1484c196dbb43829c5b3ab00eb7d11d2e8483f21df61924833e6e98a010e87883cb8b0356077c8b2ef9b9b7a1d884672b25
DIST OpenCASCADE650.tar.gz 214819922 SHA256 fb95d8a542bbfc26af6186495f752a683b40137b34d6afd8f9bb02730c2436c6 SHA512 ea2c3703e3338584d84fb8e06664e79f5f113a117e94a4eefcf39bac3bcc28d81ace2340c83399ecbe5774c348faa3713e90623f8329562e10700ad7e2048be7 WHIRLPOOL 78e092b9ea892d7686578696bcba67f649b65b8d520f358cf2aac9a2c49baf75ff3717899865d7f752a5577b123f8d0eadce06173e5b1bad3dcf0c31052b09d6
DIST OpenCASCADE655.tgz 146901035 SHA256 f5c6ab58aeb5c514428ae1b802e2820ca9267d19eecd64776f06baa60098d1b6 SHA512 848057a8a9fd41f1d13c4634c5e3366d37f3b4c81b7b194be9d4e48f5608f0bdfbc8cedd2a466e1724649a04ee87bfd0d1a445be47d832cc12fba5647689ceb2 WHIRLPOOL 18413460491c8a2fd10e97c22dd4b9b4772d97f19d27f59f33faa6618a1aac348877abc3ab9526878b38aba22328986a5c656ac91930cad460d33e93653bb463
+DIST OpenCASCADE660.tgz 119153607 SHA256 e39fa4b2255b9bd9bf97aa122043f4608d97b6b79d922375da53275e42b25d60 SHA512 8ee232f96ad650e55ac1f5fb1fe684b9d8198279dee4d7fd80a569c35562fffa643dd362fed7c5aff79541dbc463acc38b1364d8396c2c92c2d73f4955893866 WHIRLPOOL 29f0eaee2c64e4fb3fbb958e7cd043a2738a9d62414f332b81c65a009a100f39f56c38b20ffad4e76754522bfcbdc915470c84f9c218109650f9fd23d7bb3813
EBUILD opencascade-6.5.0.ebuild 5335 SHA256 d74dfa3591083d50e5a9fd21ba6cbea54fa9cceb7a5e2e63ccb8441097040865 SHA512 dd7eb391ed59bc0e34d3b344abf9090b49392b70d9c5855a86117c06a586955b38dab0456b728dd590697cc11e1ac54a6737dfdb420606e972229aec4c99e81e WHIRLPOOL 32c62103422a3b3af3d6a24982f5be1ed43fe07d849ea8d0e694b58bfd6e6c800c27dd610244256806a737f53915264d4161e86b152cf37dcc92591caab03cf6
EBUILD opencascade-6.5.5.ebuild 5441 SHA256 df01e8d1d867a650958f1f081a5dabf9e52640ea80f192deeacee0cea56b7255 SHA512 3da956c57ee6523ebc71d25e88fc4a83928fc17efe2bde4d8a19d96b583bbb1f122481b3ef4baff85d1db425ba7996cfa76c841fcc134bbb7a7f12f5ae8553e0 WHIRLPOOL 271e41f8a1d1efbcf36e04da0eab6f841aaffc3efd281088244215aad209960489b230f6a26283335ccc2d0a14f4eb310997b98026b04604cd33eb0f95e0cce4
EBUILD opencascade-6.5.ebuild 5436 SHA256 1ec89a54b1db7bb9a4b00b6fc8175daeaba38b810e7673934f0b7cd686fa2484 SHA512 2d2f824c45c78402de53241b1ea3ce7245bb06edfc059132cf3eec1a5b3c055bbfc32248d7c45dfea5908c469867d6349d47a2546881ae0a8f5e616b54b567fc WHIRLPOOL fcd050bd96baef3c014203d1558338552c3b0d26cd0e130e825abb847dedd80fae9ce9b933f9782cf5fc41136209f6ff86535fb0bb0125adfeb322b53d719021
-MISC ChangeLog 2997 SHA256 15a1485dda557d3295d766e86898fa345298c6dae78845c2878b16b09ec4733c SHA512 3f46e99c9842e53b82a05f64d5afe8a3a189a8b247f611ce9e1f4e36711abf45506f61dab23f4c6a7b55d404f8d4eeef8b4a10a31945a1a0ad1299e3d5681d39 WHIRLPOOL ca85af7ed14a3b0acc5223acdf0fcf543d8a3c0e105a9bbe1778e7206ffd7e80dec6e472eba6e1c673eb8d2758d2dd46b24cea457b7c33164742e0c3c4be6208
+EBUILD opencascade-6.6.0.ebuild 5415 SHA256 70b3113dc987e68bdd0ace30daa80bb7e3a1ab37b867d796e440d266b996d3cd SHA512 47e1b295762d5e9e1e58b02542b1aeedb29f4fe229888d288b64142423dacafab66ff8062dba0add38ec244d9860fa3ced479b2c24815f97bbb975bc711d232a WHIRLPOOL ccbca362e28b20ee2c2c89c1061e4f6daf60e1cb364c2a6ab3f57539f66a2cfd0d09b86bd0c347791759411abccd1e8e98237189a9919ee20fed150a6dc27ba7
+MISC ChangeLog 3279 SHA256 a09e019f9147ebd7617f9b7397dca7e61fa829951f6152015c2934d5445416ef SHA512 3aa9eab129aafc5c68872f2a4e4e109e22b3148fd87675b27bcf5b3989477ebcec6a358196738b88a85c7ba529e207f96166f63096994e162d8f2dbc55066186 WHIRLPOOL f879748d9c7178eba132c58ec2e8dcb3a592c5aee6956f9ff5faa91fbdc408b2257280167a2ae27bbdfe717c5e2258483f7e4c756b74eda11d4af7e06a26b360
MISC metadata.xml 506 SHA256 fae19891e8b9f1570d1518684e1339704e369a93a72107034089a0391d94b973 SHA512 500798c528f2a099baec8fe93527b185937d5da048b0c2d95eca04d42c3c51717bd0801157eb562d42851ef8a17ddba86964689c40a2d70cfaf117cef2e31c45 WHIRLPOOL 1ecd2b2bcd731d10210c97ec3cafbcb3c6f9bcd9202265d5df2c270966dd5386929ef71fa0236460a8903844ca5b164366ff53c0628ce4011c13840f2983ed37
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iF4EAREIAAYFAlF8SN8ACgkQknrdDGLu8JAA2QD/T0GTGlH2K/hedIwKqRS3Vznr
-KwBRZfriOWeNz4hcTRkBAJD6AuA9D/AiliH4uT5X/LDLmnvhPDl1Kfs+p7FZcUSx
-=0Wx3
+iF4EAREIAAYFAlHImv4ACgkQknrdDGLu8JDuGAD/Ra2E/XVi3yJ/KckCiMQ0mv7v
+R4d/ZVt6hGfR7n3rmooA/2UeWgLDZ1cHSSZMTV2Cr6PD6Xxn/r1SNy0meYmar3WM
+=2d0e
-----END PGP SIGNATURE-----
diff --git a/sci-libs/opencascade/files/opencascade-6.5.4-fixed-DESTDIR.patch b/sci-libs/opencascade/files/opencascade-6.5.4-fixed-DESTDIR.patch
index b8312158223c..15a9fa607216 100644
--- a/sci-libs/opencascade/files/opencascade-6.5.4-fixed-DESTDIR.patch
+++ b/sci-libs/opencascade/files/opencascade-6.5.4-fixed-DESTDIR.patch
@@ -1,5 +1,5 @@
---- Makefile.am.orig 2013-01-14 12:53:15.293322821 +0100
-+++ Makefile.am 2013-01-14 13:02:05.333309637 +0100
+--- opencascade-6.5.4/Makefile.am
++++ opencascade-6.5.4/Makefile.am
@@ -82,27 +82,27 @@
cd $(top_builddir)/adm/make && $(MAKE) $(AM_MAKEFLAGS) Draw
diff --git a/sci-libs/opencascade/files/opencascade-6.5.4-fixed-tbb-VERSION.patch b/sci-libs/opencascade/files/opencascade-6.5.4-fixed-tbb-VERSION.patch
index 2a245d2bdc46..88b13acd21c4 100644
--- a/sci-libs/opencascade/files/opencascade-6.5.4-fixed-tbb-VERSION.patch
+++ b/sci-libs/opencascade/files/opencascade-6.5.4-fixed-tbb-VERSION.patch
@@ -1,5 +1,5 @@
---- src/Standard/Standard_MMgrTBBalloc.cxx.ori 2012-04-07 01:28:01.492233539 +0200
-+++ src/Standard/Standard_MMgrTBBalloc.cxx 2012-04-07 01:27:52.491891129 +0200
+--- src/Standard/Standard_MMgrTBBalloc.cxx
++++ src/Standard/Standard_MMgrTBBalloc.cxx
@@ -12,6 +12,7 @@
// paralleling with Intel TBB
diff --git a/sci-libs/opencascade/files/opencascade-6.6.0-fixed-DESTDIR.patch b/sci-libs/opencascade/files/opencascade-6.6.0-fixed-DESTDIR.patch
new file mode 100644
index 000000000000..54143db4d491
--- /dev/null
+++ b/sci-libs/opencascade/files/opencascade-6.6.0-fixed-DESTDIR.patch
@@ -0,0 +1,45 @@
+--- opencascade-6.6.0/Makefile.am
++++ opencascade-6.6.0/Makefile.am
+@@ -82,27 +82,27 @@
+ cd $(top_builddir)/adm/lin/amk && $(MAKE) $(AM_MAKEFLAGS) Draw
+
+ 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
+- buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(prefix); installd=`pwd`; cd $$buildd; \
++ buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(DESTDIR)$(prefix); installd=`pwd`; cd $$buildd; \
+ if [ "$$installd" != "$$sourced" ]; then \
+- $(INSTALL) -d $(prefix)/inc; \
+- cp -frL $(top_srcdir)/inc $(prefix); \
+- cp -frL $$buildd/config.h $(prefix); \
++ $(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
++ cp -frL $(top_srcdir)/inc $(DESTDIR)$(prefix); \
++ cp -frL $$buildd/config.h $(DESTDIR)$(prefix); \
+ for d in $(FoundationClasses_DIRS) $(ModelingData_DIRS) $(ModelingAlgorithms_DIRS) $(Visualization_DIRS) $(ApplicationFramework_DIRS) $(DataExchange_DIRS) $(Draw_DIRS); do \
+- $(INSTALL) -d $(prefix)/src/$$d; \
+- cp -frL $(top_srcdir)/src/$$d $(prefix)/src; \
++ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++ cp -frL $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ done; \
+ fi
+- if [ -e $(prefix)/inc/config.h ]; then \
+- rm -f $(prefix)/inc/config.h; \
++ if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
++ rm -f $(DESTDIR)$(prefix)/inc/config.h; \
+ fi
+- cd $(prefix)/inc && ln -s ../config.h config.h
+- cd $(top_srcdir) && cp *amk.sh $(prefix)
++ cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
++ cd $(top_srcdir) && cp *amk.sh $(DESTDIR)$(prefix)
+
+ .PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw
diff --git a/sci-libs/opencascade/opencascade-6.6.0.ebuild b/sci-libs/opencascade/opencascade-6.6.0.ebuild
new file mode 100644
index 000000000000..bd96ed1c95aa
--- /dev/null
+++ b/sci-libs/opencascade/opencascade-6.6.0.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/opencascade/opencascade-6.6.0.ebuild,v 1.1 2013/06/24 19:16:11 xmw Exp $
+
+EAPI=5
+
+inherit autotools eutils check-reqs multilib java-pkg-opt-2 flag-o-matic 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/OCCT/OCC_${PV}_release/OpenCASCADE$(delete_all_version_separators).tgz"
+
+LICENSE="Open-CASCADE-Technology-Public-License-6.6"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc examples freeimage gl2ps java qt4 +tbb"
+
+DEPEND="app-admin/eselect-opencascade
+ dev-lang/tcl
+ dev-lang/tk
+ dev-tcltk/itcl
+ dev-tcltk/itk
+ dev-tcltk/tix
+ media-libs/ftgl
+ virtual/glu
+ virtual/opengl
+ x11-libs/libXmu
+ freeimage? ( media-libs/freeimage )
+ gl2ps? ( x11-libs/gl2ps )
+ java? ( >=virtual/jdk-0 )
+ tbb? ( dev-cpp/tbb )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/ros
+
+# http://bugs.gentoo.org/show_bug.cgi?id=352435
+# http://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="bindist mirror"
+
+CHECKREQS_MEMORY="256M"
+CHECKREQS_DISK_BUILD="3584M"
+
+pkg_setup() {
+ check-reqs_pkg_setup
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ java-pkg-opt-2_src_prepare
+
+ epatch \
+ "${FILESDIR}"/${PN}-6.6.0-fixed-DESTDIR.patch \
+ "${FILESDIR}"/${PN}-6.5.4-fixed-tbb-VERSION.patch
+
+ # Feed environment variables used by Opencascade compilation
+ my_install_dir=${EROOT}usr/$(get_libdir)/${P}/ros
+ local my_env_install="#!/bin/sh -f
+if [ -z \"\$PATH\" ]; then
+ export PATH=VAR_CASROOT/Linux/bin
+else
+ export PATH=VAR_CASROOT/Linux/bin:\$PATH
+fi
+if [ -z \"\$LD_LIBRARY_PATH\" ]; then
+ export LD_LIBRARY_PATH=VAR_CASROOT/Linux/lib
+else
+ export LD_LIBRARY_PATH=VAR_CASROOT/Linux/lib:\$LD_LIBRARY_PATH
+fi"
+ local my_sys_lib=${EROOT}usr/$(get_libdir)
+ local my_env="CASROOT=VAR_CASROOT
+CSF_MDTVFontDirectory=VAR_CASROOT/src/FontMFT
+CSF_LANGUAGE=us
+MMGT_CLEAR=1
+CSF_EXCEPTION_PROMPT=1
+CSF_SHMessage=VAR_CASROOT/src/SHMessage
+CSF_MDTVTexturesDirectory=VAR_CASROOT/src/Textures
+CSF_XSMessage=VAR_CASROOT/src/XSMessage
+CSF_StandardDefaults=VAR_CASROOT/src/StdResource
+CSF_PluginDefaults=VAR_CASROOT/src/StdResource
+CSF_XCAFDefaults=VAR_CASROOT/src/StdResource
+CSF_StandardLiteDefaults=VAR_CASROOT/src/StdResource
+CSF_GraphicShr=VAR_CASROOT/Linux/lib/libTKOpenGl.so
+CSF_UnitsLexicon=VAR_CASROOT/src/UnitsAPI/Lexi_Expr.dat
+CSF_UnitsDefinition=VAR_CASROOT/src/UnitsAPI/Units.dat
+CSF_IGESDefaults=VAR_CASROOT/src/XSTEPResource
+CSF_STEPDefaults=VAR_CASROOT/src/XSTEPResource
+CSF_XmlOcafResource=VAR_CASROOT/src/XmlOcafResource
+CSF_MIGRATION_TYPES=VAR_CASROOT/src/StdResource/MigrationSheet.txt
+TCLHOME=${EROOT}usr/bin
+TCLLIBPATH=${my_sys_lib}
+ITK_LIBRARY=${my_sys_lib}/itk$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/')
+ITCL_LIBRARY=${my_sys_lib}/itcl$(grep ITCL_VER /usr/include/itcl.h | sed 's/^.*"\(.*\)".*/\1/')
+TIX_LIBRARY=${my_sys_lib}/tix$(grep TIX_VER /usr/include/tix.h | sed 's/^.*"\(.*\)".*/\1/')
+TK_LIBRARY=${my_sys_lib}/tk$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/')
+TCL_LIBRARY=${my_sys_lib}/tcl$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')"
+
+ ( echo "${my_env_install}"
+ echo "${my_env}" | sed -e "s:^:export :" ) \
+ | sed -e "s:VAR_CASROOT:${S}:g" > env.sh || die
+ source env.sh
+
+ ( echo "PATH=${my_install_dir}/lin/bin"
+ echo "LDPATH=${my_install_dir}/lin/$(get_libdir)"
+ echo "${my_env}" | sed \
+ -e "s:VAR_CASROOT:${my_install_dir}/lin:g" \
+ -e "s:/Linux/lib/:/$(get_libdir)/:g" || die
+ ) > 50${PN}
+
+ append-cxxflags "-fpermissive"
+
+ sed -e "/^AM_C_PROTOTYPES$/d" \
+ -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \
+ -e "s:\$qt/include:\$qt/include/qt4:g"\
+ -e "s:\$qt/lib:\$qt/$(get_libdir)/qt4:g"\
+ -i configure.* || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --prefix=${my_install_dir}/lin --exec-prefix=${my_install_dir}/lin \
+ --with-tcl="${EROOT}usr/$(get_libdir)" --with-tk="${EROOT}usr/$(get_libdir)" \
+ --with-freetype="${EROOT}usr" \
+ --with-ftgl="${EROOT}usr" \
+ $(usex freeimage "--with-freeimage=${EROOT}usr" "") \
+ $(usex gl2ps "--with-gl2ps=${EROOT}usr" "") \
+ $(usex qt4 "--with-qt=${EROOT}usr" "") \
+ $(usex tbb "--with-tbb-include=${EROOT}usr" "") \
+ $(usex tbb "--with-tbb-library=${EROOT}usr" "") \
+ $(use java && echo "--with-java-include=$(java-config -O)/include" || echo "--without-java-include") \
+ $(use_enable debug) \
+ $(use_enable !debug production)
+ #$(use_with freeimage) \
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ prune_libtool_files
+
+ # Symlinks for keeping original OpenCascade folder structure and
+ # add a link lib to $(get_libdir) if we are e.g. on amd64 multilib
+ if [ "$(get_libdir)" != "lib" ]; then
+ dosym "$(get_libdir)" "${my_install_dir}/lin/lib"
+ fi
+
+ insinto /etc/env.d/${PN}
+ newins 50${PN} ${PV}
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r data
+ doins -r samples
+ fi
+ dodoc doc/*.pdf
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins -r doc/{overview,ReferenceDocumentation}
+ fi
+}
+
+pkg_postinst() {
+ eselect ${PN} set ${PV}
+ einfo
+ elog "After upgrading OpenCASCADE you may have to rebuild packages depending on it."
+ elog "You get a list by running \"equery depends sci-libs/opencascade\""
+ elog "revdep-rebuild does NOT suffice."
+ einfo
+}