diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-12-13 11:01:39 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-12-13 11:01:39 +0000 |
commit | 35c2beef8fb54acc63cac79e1c20becc5fbfcd4b (patch) | |
tree | cdb7ec0a068335274accf56f3baaa799437d3134 /sci-libs | |
parent | spr: fixed data files and added use flag description (diff) | |
download | sci-35c2beef8fb54acc63cac79e1c20becc5fbfcd4b.tar.gz sci-35c2beef8fb54acc63cac79e1c20becc5fbfcd4b.tar.bz2 sci-35c2beef8fb54acc63cac79e1c20becc5fbfcd4b.zip |
removing old version
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1359 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/opencascade/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/opencascade/opencascade-6.2.ebuild | 252 |
2 files changed, 0 insertions, 253 deletions
diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest index 25cb47527..1f4eff11a 100644 --- a/sci-libs/opencascade/Manifest +++ b/sci-libs/opencascade/Manifest @@ -6,6 +6,5 @@ DIST opencascade-samples-java-6.2.tar.bz2 538012 RMD160 2b570eee63c9eff2f370b797 DIST opencascade-samples-qt-6.2.tar.bz2 42553 RMD160 3cec392ef9973ab74c1cd404bdc35d5a4e652807 SHA1 46515926973f09dcf3e2347cecfe025ee8621735 SHA256 45b8ab70f06377196a6f3f3170cafcabb8520d091030400346006a0c2521dc1d DIST opencascade-tutorial-6.2.tar.bz2 40245 RMD160 638c86493a67aeea97870ca1d38a91d403eb0661 SHA1 c2cc31fafcdaecda60c51b351339de9910fe2b7e SHA256 d5d7dae21a61f0944af7ff4987b5274c48308a670e94350d2477c499720d1784 EBUILD opencascade-6.2-r1.ebuild 7696 RMD160 ae0b68a466b2aaf58e8e41fb953f388cc193b985 SHA1 0f8674fe1382788ef3a224f2795d974686dc700f SHA256 7782735cd601890dba981d4ad27e34abe58b0bfab5b65168cc8a5b78d1fb118d -EBUILD opencascade-6.2.ebuild 8014 RMD160 a124ebc1ed45f3a0ff4d13406667917a1904ae69 SHA1 f3a3ad72eca7a278a06e89769aee0cdcfb968878 SHA256 95c2dcc377648c22cc05b8640f3cdbe399f175f2d92e3e07add5b35102a5d66a MISC ChangeLog 1361 RMD160 9fbfa1d103ec8fb95c5112ac99c2f093994841d2 SHA1 0b47634abbfc8772edababf6a44a972aee1547c9 SHA256 7499613ca92d07894996d95b768753664715a3f98b46e2ec5faae309f7795b48 MISC metadata.xml 157 RMD160 ed43b99e7bf8bbf62cf4e46152138ab42d3a88c5 SHA1 2182a6de0b10959aad51af2990f1a6c69e34dd97 SHA256 750cb9e46ac2b77e1adf73de43c186a8c2d2234a9c6a89d9358d0969dc5cf8ac diff --git a/sci-libs/opencascade/opencascade-6.2.ebuild b/sci-libs/opencascade/opencascade-6.2.ebuild deleted file mode 100644 index 4fc2d97a0..000000000 --- a/sci-libs/opencascade/opencascade-6.2.ebuild +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit autotools eutils flag-o-matic qt3 check-reqs - -DESCRIPTION="Software development platform for CAD/CAE, 3D surface/solid modeling and data exchange." -HOMEPAGE="http://www.opencascade.org" -SRC_URI="ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/thierry/${P}.tar.bz2 - ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/thierry/${PN}-tutorial-${PV}.tar.bz2 - java? (ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/thierry/${PN}-samples-java-${PV}.tar.bz2) - qt3? (ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/thierry/${PN}-samples-qt-${PV}.tar.bz2)" - -# NOTES -# The source code here is not in the same form than the one distributed on www.opencascade.org -# The source available on www.opencascade.org requires a Java installation procedure that does not -# always work on Gentoo. The source code can however be extracted 'by hand' using -# 'java -cp ./Linux/setup.jar' -# and removing 'by hand' all the existing Linux binaries. The source code extracted using this -# method is currently available on the FreeBSD ftp server. -# It could be possible to download the Salome binary for linux (500Mb...) and to extract the source from there. - - -LICENSE="Open CASCADE Technology Public License" -SLOT=0 -KEYWORDS="~x86 ~amd64" -IUSE="debug doc draw-harness java opengl qt3 stlport X wok" -DEPEND="java? ( virtual/jdk ) - opengl? ( virtual/opengl ) - X? ( x11-base/xorg-x11 ) - >=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 ) - qt3? ( $(qt_min_version 3) ) - stlport? ( dev-libs/STLport ) - sys-devel/autoconf - sys-devel/automake - sys-devel/libtool" - -pkg_setup() { - 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_unpack() { - unpack ${A} - - # Substitute with our ready-made env.ksh script - cp -f "${FILESDIR}"/env.ksh.template "${S}"/ros/env.ksh - - # Feed environment variables used by Opencascade compilation - cd "${S}"/ros - sed -i "s:VAR_CASROOT:${S}/ros:g" env.ksh - sed -i "s:VAR_SYS_BIN:/usr/bin:g" env.ksh - sed -i "s:VAR_SYS_LIB:/usr/lib:g" env.ksh - - # Tweak itk version - local itk_version - itk_version=$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_ITK:itk${itk_version}:g" env.ksh - - # Tweak itcl version - local itcl_version - itcl_version=$(grep ITCL_VER /usr/include/itcl.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_ITCL:itcl${itcl_version}:g" env.ksh - - # Tweak tix version - local tix_version - tix_version=$(grep TIX_VER /usr/include/tix.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_TIX:tix${tix_version}:g" env.ksh - - # Tweak tk version - local tk_version - tk_version=$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_TK:tk${tk_version}:g" env.ksh - - # Tweak tcl version - local tcl_version - tcl_version=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_TCL:tcl${tcl_version}:g" env.ksh - - # Patches - if [ gcc-major-version > 4 ] ; then - elog "You have gcc4 -> GCC 4.x patch is applied" - epatch "${FILESDIR}"/opencascade-6.2-gcc4.patch - fi - elog "Stdlib malloc patch is applied" - epatch "${FILESDIR}"/opencascade-6.2-malloc.patch - chmod u+x configure -} - -src_compile() { - cd "${S}"/ros - - # 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" - - # Add the configure options - if use opengl && use !X ; then - ewarn "OpenGL imply X support! Add "opengl" USE flag." - die - fi - - local confargs="--prefix=/opt/${P}/ros/lin --with-tcl=/usr/lib/ --with-tk=/usr/lib/" - - if use X ; then - confargs="${confargs} --with-xmu-include=/usr/include --with-xmu-library=/usr/lib" - if use opengl; then - confargs="${confargs} --with-gl-include=/usr/include --with-gl-library=/usr/lib" - else - ewarn "Activate OpenGL if you want to be able to visualize geometry. Set opengl USE flag." - fi - else - ewarn "Activate X and OpenGL if you want to be able to visualize geometry. Set "X" and "opengl" USE flags." - fi - - if use !debug ; then - confargs="${confargs} --disable-debug --enable-production" - else - confargs="${confargs} --enable-debug" - fi - - if use stlport ; then - confargs="${confargs} --with-stlport-libname=stlport_gcc" - fi - - if use java ; then - local java_path - java_path=`java-config -O` - confargs="${confargs} --with-java-include=${java_path}/include/linux" - else - confargs="${confargs} --disable-jcas" - elog "Java wrapping is not going to be compiled. USE flag: java" - fi - - if use !wok ; then - confargs="${confargs} --disable-wok" - elog "WOK is not going to be compiled. USE flag: wok" - fi - - if use !draw-harness ; then - confargs="${confargs} --disable-draw" - elog "DRAW test harness is not going to be compiled. USE flag: draw-harness" - fi - - # Compiler and linker flags - if use amd64 ; then - append-flags -m64 - fi - append-ldflags -lpthread - - econf ${confargs} || die "econf failed" - emake || die "emake failed" -} - - -src_install() { - cd "${S}"/ros - rm *~ - emake install DESTDIR="${D}" || die "emake install failed" - - # Symlinks for keeping original OpenCascade folder structure - dosym /opt/${P}/ros/lin /opt/${P}/ros/Linux - if use amd64 ; then - dosym /opt/${P}/ros/lin/lib64 /opt/${P}/ros/lin/lib - fi - - # Tweak the environment variables script - cp "${FILESDIR}"/env.ksh.template env.ksh - sed -i "s:VAR_CASROOT:/opt/${P}/ros:g" env.ksh - - # Build the env.d environment variables - cp "${FILESDIR}"/env.ksh.template 50${PN} - sed -i "s:export ::g" ./50${PN} - sed -i "s:VAR_CASROOT:/opt/${P}/ros:g" 50${PN} - sed -i "1,2d" ./50${PN} - sed -i "2,12d" ./50${PN} - sed -i "2i\PATH=/opt/${P}/ros/Linux/bin/\nLDPATH=/opt/${P}/ros/Linux/lib" ./50${PN} - - # Update both env.d and script with the libraries variables - sed -i "s:VAR_SYS_BIN:/usr/bin:g" env.ksh 50${PN} - sed -i "s:VAR_SYS_LIB:/usr/lib:g" env.ksh 50${PN} - local itk_version - itk_version=$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_ITK:itk${itk_version}:g" env.ksh 50${PN} - local itcl_version - itcl_version=$(grep ITCL_VER /usr/include/itcl.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_ITCL:itcl${itcl_version}:g" env.ksh 50${PN} - local tix_version - tix_version=$(grep TIX_VER /usr/include/tix.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_TIX:tix${tix_version}:g" env.ksh 50${PN} - local tk_version - tk_version=$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_TK:tk${tk_version}:g" env.ksh 50${PN} - local tcl_version - tcl_version=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') - sed -i "s:VAR_TCL:tcl${tcl_version}:g" env.ksh 50${PN} - - # Install the env.d variables file - dodir /etc/env.d - insinto /etc/env.d - doins 50${PN} - rm 50${PN} env.csh - - # Install binaries - cd "${D}"/opt/"${P}"/ros/lin/bin - if use draw-harness ; then - newbin DRAWEXE draw-harness - fi - if use wok ; then - dobin woksh - dobin wokprocess - fi - - # Clean before copying everything - cd "${S}"/ros - emake clean || die "emake clean failed" - - # Install folders - cd "${S}" - insinto /opt/${P} - doins -r data ros tools wok samples - - # Install the documentation - if use doc ; then - cd "${S}"/doc - insinto /usr/share/doc/${PF} - doins -r * || die "doins doc 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" -} |