diff options
author | Michael Weber <xmw@gentoo.org> | 2016-06-17 17:10:41 +0200 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2016-06-17 17:14:48 +0200 |
commit | 6f8ade7322a104908646aef4366c271b4e6bfc70 (patch) | |
tree | ead3a5144856b55009680647bef498677922124a /sci-libs | |
parent | app-arch/lrzip: Fix copyright year. (diff) | |
download | gentoo-6f8ade7322a104908646aef4366c271b4e6bfc70.tar.gz gentoo-6f8ade7322a104908646aef4366c271b4e6bfc70.tar.bz2 gentoo-6f8ade7322a104908646aef4366c271b4e6bfc70.zip |
sci-libs/opencascade: Version bump.
Package-Manager: portage-2.2.28
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/opencascade/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/opencascade/opencascade-6.9.1.ebuild | 168 |
2 files changed, 169 insertions, 0 deletions
diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest index 9314c97a4ee2..2bc71fba802f 100644 --- a/sci-libs/opencascade/Manifest +++ b/sci-libs/opencascade/Manifest @@ -1,3 +1,4 @@ DIST opencascade-6.7.1.tgz 194568487 SHA256 c918cb554c0c22d322dc1d2f3a31069e1d5dcbae869db741339e1d4903e864b1 SHA512 31df4bd172d51b1ebee7e67075fa9cdbeb73eccb326f428b1911f15c9ac0feedc5977e2490f54a130b409f292dd6bfb7d40143263a47aa0330c28337639fe828 WHIRLPOOL d6fc042a4aca381ce74eaf1ca2adead5b0f88b599176c13ecd7a967f9dd92e4589c73ebde53ee3b374a78f696bacf674eb18a356ffcf38bbc8d7e60b30043fa6 DIST opencascade-6.8.0.tgz 198319238 SHA256 50b145655fd3a4448e291388650cd0dcab8f9d99201aba32e8d26aeff03e8e1c SHA512 4fa95bc244001fd27ad1248acf44d6fd6633fa21fa2479bbea42977bdc9688b638eaca5df8442120d3e075113a031a7f894d0525a6b54e537cb3363c0a698c8b WHIRLPOOL 5b57de759208668e970ef0f3cf55589ea13d2295bac8d12ee597d7a40be402427c3c67e232d68df5a0f91ed87c9f7157faa717490f774e8431910d8223c49bf1 DIST opencascade-6.9.0.tgz 203915299 SHA256 e9da098b304f6b65c3958947c3c687f00128ce020b67d97554a3e3be9cf3d090 SHA512 79c7f715087ca627447a1cfd0b19a216150d71865f53f791978842ca9663181c5b608d93a7dc81945ad0dba287ea003cfa3ff47ebae07602a8fd38e6e1344aee WHIRLPOOL ab3bf2d1e369f87501bc5f3f63c092b6586a76b56443179e542fc2c1b10e9d504429c60096b7bd555c578ba54212693d4b495f34bb9045c3e1fb519b1d480538 +DIST opencascade-6.9.1.tgz 209589289 SHA256 f92659ae3fb09c28233fb9178bc24fd2aab6776f6d9ea2479c3bdfe6296b873f SHA512 92f0fffb110344feebaba9dd4a3427419ea9e6db7b09556b7dcdb1248f2a868e3337587abf9921392435031431f3876cea4d4709fd9926604dcebbd6d26f8963 WHIRLPOOL 02fe93b6e6dc7de45a3bf55ce9c5d826cb83ffda565273d008961c5824475d8f4dda04b782071b821c017409aeb0f6be05ea29a5d89ca57db85ea757aec27e4a diff --git a/sci-libs/opencascade/opencascade-6.9.1.ebuild b/sci-libs/opencascade/opencascade-6.9.1.ebuild new file mode 100644 index 000000000000..0b6605924d1c --- /dev/null +++ b/sci-libs/opencascade/opencascade-6.9.1.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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://www.opencascade.com/sites/default/files/private/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 +vtk" + +MY_VTK="vtk-6.1" +DEPEND="app-eselect/eselect-opencascade + dev-lang/tcl:0= + dev-lang/tk:0= + 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 ) + vtk? ( =sci-libs/${MY_VTK}* )" +RDEPEND="${DEPEND}" + +# https://bugs.gentoo.org/show_bug.cgi?id=352435 +# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt +RESTRICT="bindist fetch 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.8.0-fixed-DESTDIR.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"\ + -e "/CSF_VTK_LIB=/s:-${MY_VTK/vtk-}::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") \ + $(usex vtk "--with-vtk-include=${EROOT}usr/include/${MY_VTK}" "") \ + $(usex vtk "--with-vtk-library=${EROOT}usr/$(get_libdir)" "") \ + $(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} + + 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 +} |