summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2014-04-23 21:00:13 +0000
committerMichael Weber <xmw@gentoo.org>2014-04-23 21:00:13 +0000
commitaed6f7c6ddf90a4edb06260e1b056c143a2eb5c3 (patch)
treefcd6f3ef0c7a5b081bbba3808c31d67b3ca75f35 /sci-libs
parentDrop old (diff)
downloadhistorical-aed6f7c6ddf90a4edb06260e1b056c143a2eb5c3.tar.gz
historical-aed6f7c6ddf90a4edb06260e1b056c143a2eb5c3.tar.bz2
historical-aed6f7c6ddf90a4edb06260e1b056c143a2eb5c3.zip
Version bump thanks to Sławek Lis and Fabio Rossi (bug 496968).
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/opencascade/ChangeLog10
-rw-r--r--sci-libs/opencascade/Manifest13
-rw-r--r--sci-libs/opencascade/files/opencascade-6.7.0-fixed-DESTDIR.patch51
-rw-r--r--sci-libs/opencascade/opencascade-6.7.0.ebuild165
4 files changed, 232 insertions, 7 deletions
diff --git a/sci-libs/opencascade/ChangeLog b/sci-libs/opencascade/ChangeLog
index be71303c1d4d..bd873a490cbc 100644
--- a/sci-libs/opencascade/ChangeLog
+++ b/sci-libs/opencascade/ChangeLog
@@ -1,6 +1,12 @@
# 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.14 2013/06/24 19:16:11 xmw Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/opencascade/ChangeLog,v 1.15 2014/04/23 21:00:11 xmw Exp $
+
+*opencascade-6.7.0 (23 Apr 2014)
+
+ 23 Apr 2014; Michael Weber <xmw@gentoo.org>
+ +files/opencascade-6.7.0-fixed-DESTDIR.patch, +opencascade-6.7.0.ebuild:
+ Version bump thanks to Sławek Lis and Fabio Rossi (bug 496968).
*opencascade-6.6.0 (24 Jun 2013)
diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest
index 5ed3e6ea29a0..b6e95a532913 100644
--- a/sci-libs/opencascade/Manifest
+++ b/sci-libs/opencascade/Manifest
@@ -9,19 +9,22 @@ AUX opencascade-6.5.4-fixed-DESTDIR.patch 2244 SHA256 724c3f20071a2be5e60c23115f
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
+AUX opencascade-6.7.0-fixed-DESTDIR.patch 2597 SHA256 bfe4b8321efe9a6142b2a2aefaa9232f7a72a3f7dc5704a033ccd944cf800138 SHA512 715f73573e988a8ec2632a3d9beeccaa5d5f65d52bf54599485537615ec9c936ef1f90d9d22c673d7c741a177e642561cb7ce793311a4faef07168fdd54426d2 WHIRLPOOL 52153514e33267b971ae097498d7f325fc50cb846b2ff38072445f11343220313070295ff83bf146b51dcc7838fc407d758133fe8e7944d2670168fd66be12fe
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
+DIST opencascade-6.7.0.tgz 223046512 SHA256 882270c8f648f2589b4c241930217b21fd04fcb82e1f2ad6e930f7e0a64a2b0c SHA512 c3d163d080434b19c71958ff55c76956faa94e0a8160080a97fc3e69a940f4b2a3656f5e4e9190c13b8a44730e8bef3914641f4dec9a2dfeec803cfc1d4225ac WHIRLPOOL b036ee6b9cc958ca6b69cb359ddc9b7b368ce9f6562131fe5ac1f050cd20b54bdd5f70999ed1a2ae4c41f98f814cf68c11e0f5941b71b8478cb5dc1fa1c5a0c0
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
EBUILD opencascade-6.6.0.ebuild 5415 SHA256 70b3113dc987e68bdd0ace30daa80bb7e3a1ab37b867d796e440d266b996d3cd SHA512 47e1b295762d5e9e1e58b02542b1aeedb29f4fe229888d288b64142423dacafab66ff8062dba0add38ec244d9860fa3ced479b2c24815f97bbb975bc711d232a WHIRLPOOL ccbca362e28b20ee2c2c89c1061e4f6daf60e1cb364c2a6ab3f57539f66a2cfd0d09b86bd0c347791759411abccd1e8e98237189a9919ee20fed150a6dc27ba7
-MISC ChangeLog 3279 SHA256 a09e019f9147ebd7617f9b7397dca7e61fa829951f6152015c2934d5445416ef SHA512 3aa9eab129aafc5c68872f2a4e4e109e22b3148fd87675b27bcf5b3989477ebcec6a358196738b88a85c7ba529e207f96166f63096994e162d8f2dbc55066186 WHIRLPOOL f879748d9c7178eba132c58ec2e8dcb3a592c5aee6956f9ff5faa91fbdc408b2257280167a2ae27bbdfe717c5e2258483f7e4c756b74eda11d4af7e06a26b360
+EBUILD opencascade-6.7.0.ebuild 5319 SHA256 0ec342160101972a149c27896ce74100ac7c5f99a6089cb51a9ba2fcdc175629 SHA512 ad1b3421b6b2b23f20673f87721dc4dea2aacdea1655e624ae4c5b002d257c7d3438ccbddd11d53bdf923583be2c15238336b28ec4d05a7ddfc71748110d29fe WHIRLPOOL d514a57d8f568ccae6b47b56362b5a0ed1bdf64692eb338b6361fcc3fa8e71e03ddf14c0aab13715b8b16c7239eee8332c4ad2c52856bb2ea740dfe854bf4450
+MISC ChangeLog 3502 SHA256 01b93fbe0a02fe1566715eead3eac59cbec058109d23114f1fb74e84d64564c0 SHA512 aa6ce5456e982fe77afb116daec6d27c117230d8e01d87dcd1110ab9d8e6871491027982c408ac7e7ee41a6937b66559b31cfef08437e4f132484506a854a75d WHIRLPOOL 07e73f2e063722ae3d3de0a348ced5a0700b5ac4cc3ee84da5438c15ce68b967215a7c3e244e9e8df46c7cf586a6eaad9e8f54d14d4462b564d7711138511de8
MISC metadata.xml 506 SHA256 fae19891e8b9f1570d1518684e1339704e369a93a72107034089a0391d94b973 SHA512 500798c528f2a099baec8fe93527b185937d5da048b0c2d95eca04d42c3c51717bd0801157eb562d42851ef8a17ddba86964689c40a2d70cfaf117cef2e31c45 WHIRLPOOL 1ecd2b2bcd731d10210c97ec3cafbcb3c6f9bcd9202265d5df2c270966dd5386929ef71fa0236460a8903844ca5b164366ff53c0628ce4011c13840f2983ed37
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iF4EAREIAAYFAlHImv4ACgkQknrdDGLu8JDuGAD/Ra2E/XVi3yJ/KckCiMQ0mv7v
-R4d/ZVt6hGfR7n3rmooA/2UeWgLDZ1cHSSZMTV2Cr6PD6Xxn/r1SNy0meYmar3WM
-=2d0e
+iF4EAREIAAYFAlNYKd0ACgkQknrdDGLu8JD2oQD/ePUQGda1x7VBmvDc9tu5kDad
+zRnB4CE5YPWBiImLHYAA/07CykqR6T172ebAq4TdEv25/kooiVY3NV+LVrTOFQAV
+=cbGN
-----END PGP SIGNATURE-----
diff --git a/sci-libs/opencascade/files/opencascade-6.7.0-fixed-DESTDIR.patch b/sci-libs/opencascade/files/opencascade-6.7.0-fixed-DESTDIR.patch
new file mode 100644
index 000000000000..3a3f98093443
--- /dev/null
+++ b/sci-libs/opencascade/files/opencascade-6.7.0-fixed-DESTDIR.patch
@@ -0,0 +1,51 @@
+--- Makefile.am.old 2014-01-13 09:43:18.530500362 +0100
++++ Makefile.am 2014-01-13 09:45:40.430496833 +0100
+@@ -82,29 +82,29 @@
+ 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 draw.sh $(prefix)
+- cd $(top_srcdir) && cp custom.sh $(prefix)
+- cd $(top_srcdir) && cp env.sh $(prefix)
++ cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
++ cd $(top_srcdir) && cp draw.sh $(DESTDIR)$(prefix)
++ cd $(top_srcdir) && cp custom.sh $(DESTDIR)$(prefix)
++ cd $(top_srcdir) && cp env.sh $(DESTDIR)$(prefix)
+
+-.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw
+\ Brak znaku nowej linii na końcu pliku
++.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw
diff --git a/sci-libs/opencascade/opencascade-6.7.0.ebuild b/sci-libs/opencascade/opencascade-6.7.0.ebuild
new file mode 100644
index 000000000000..496287d2fd7b
--- /dev/null
+++ b/sci-libs/opencascade/opencascade-6.7.0.ebuild
@@ -0,0 +1,165 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/opencascade/opencascade-6.7.0.ebuild,v 1.1 2014/04/23 21:00:11 xmw Exp $
+
+EAPI=5
+
+inherit autotools eutils check-reqs multilib java-pkg-opt-2 flag-o-matic
+
+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-${PV}.tgz"
+
+LICENSE="Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1"
+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}"
+
+# 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.7.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.ac || 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)
+}
+
+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}
+
+ #cd "${S}"
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r data
+ doins -r samples
+ fi
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins -r doc/{overview,pdf,refman}
+ 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
+}