Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 97968 Details for
Bug 118656
sci-libs/opencascadelib-6.2.ebuild (New package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
second 'alpha'
opencascade-6.1.ebuild (text/plain), 5.16 KB, created by
Daniel Tourde
on 2006-09-24 11:45:54 UTC
(
hide
)
Description:
second 'alpha'
Filename:
MIME Type:
Creator:
Daniel Tourde
Created:
2006-09-24 11:45:54 UTC
Size:
5.16 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># ># Daniel Tourde, daniel.tourde@caelae.se > > >DESCRIPTION="Software development platform including components for 3D surface and solid modeling, visualization, data exchange and rapid application development." >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}-samples-java-${PV}.tar.bz2 > ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/thierry/${PN}-samples-qt-${PV}.tar.bz2 > ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/thierry/${PN}-tutorial-${PV}.tar.bz2" ># The source code here is NOT in the same form than the one distributed on opencascade.org ># The source available on 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 -DOS_NAME=Linux -Dtemp.dir=/some/big/dir/tmp run' ># and removing 'by hand' all the existing Linux binaries. ># The source code extracted using this method is available (for the time being) ># on the FreeBSD ftp server. ># An other possibility is to download the Salome binary for linux (500Mb...) ># and to extract the source code for OpenCascade from there. ># ># In any case, none of these solutions are really satisfactory. A better method should ># be found >LICENSE="Open CASCADE Technology Public License" >SLOT="6" >KEYWORDS="~amd64 x86" > >IUSE="java qt3 fltk stlport" >DEPEND="java? ( =virtual/jdk ) > >=dev-lang/tcl-8.4 > >=dev-lang/tk-8.4 > >=dev-tcltk/itcl-3.2 > >=dev-tcltk/itk-3.2 > >=dev-tcltk/tix-8.1 > qt3? ( =x11-libs/qt-3* ) > fltk? ( x11-libs/fltk ) > stlport? ( dev-libs/STLport ) > sys-devel/autoconf > sys-devel/automake > sys-devel/libtool" > > >src_unpack() { > unpack ${A} > cd ${S}/ros > sed -i "s:/usr/ports/cad/opencascade/:/var/tmp/portage/opencascade-6.1/:g" ./env.* > > local tk_version > local itcl_version > local tix_version > local itk_version > local tcl_version > tcl_version=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') > tk_version=$(grep TK_VER /usr/include/tk.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/') > itk_version=$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/') > sed -i "s:tcl8.4:tcl${tcl_version}:g" ./env.* > sed -i "s:itk3.2:itk${itk_version}:g" ./env.* > sed -i "s:itcl3.2:itcl${itcl_version}:g" ./env.* > sed -i "s:tk8.4:tk${tk_version}:g" ./env.* > sed -i "s:tix8.1:tix${tix_version}:g" ./env.* >} > >src_compile() { > cd ${S}/ros > chmod u+x configure > > bash env.ksh > aclocal || die "aclocal failed" > autoheader || die "autoheader failed" > automake -a -c -f > libtoolize --force --copy || die "libtoolize failed" > autoconf || die "autoconf failed" > > local myconf="--with-gl-include=/usr/include --with-gl-library=/usr/lib --with-xmu-include=/usr/include/X11 --with-xmu-library=/usr/lib --disable-debug --enable-production --with-tcl=/usr/lib/ --with-tk=/usr/lib/" > > if use stlport; then ># myconf="${myconf} --with-stlport-library=/usr/lib/ --with-stlport-libname=stlport_gcc --with-stlport-include=/usr/include/stlport" ># To specify everything seems to screw up the configuration process regarding the setting ># up of CXXFLAGS > myconf="${myconf} --with-stlport-libname=stlport_gcc" > else > myconf="${myconf} --without-stlport" > fi > > # CXXFLAGS are slightly modified to allow the compilation of OpenCascade-6.1 with gcc-4.1.x > if [ "$(gcc-version)" >= "4.1" ]; then > CXXFLAGS="${CXXFLAGS} -ffriend-injection -fpermissive" > fi > econf $(use_with java) \ > $(use_with qt3) \ > $(use_with fltk) \ > ${myconf} || die "econf failed" > emake || die "emake failed" >} > > >src_install() { > cd ${S}/ros > emake DESTDIR="${D}" install || die "emake install failed" > # Install the documentation > cd ${S}/doc > dodoc *.pdf ../LICENSE > dodir /usr/share/doc/${PF}/html > insinto /usr/share/doc/${PF}/html > doins -r ${S}/doc/* > # Install necessary directories under /usr/share/opencascade-x.y > # I am not sure everything is put and I am not really sure /usr/share is the > # most appropriate place. Any better suggestion is welcome. > cd ${S}/ros/src > dodir /usr/share/${PF} > insinto /usr/share/${PF} > doins -r FontMFT SHMessage XSMessage Textures StdResource XCAFResources UnitsAPI XSTEPResource > cd ${S} > doins -r samples data wok > # Create the file to be stored under /etc/env.d. OpenCascade needs indeed environment variables > # to be set. > cd ${S}/ros > sed -i "s:export::g" ./env.ksh > sed -i "1,2d" ./env.ksh > sed -i "s:/var/tmp/portage/${PF}/work/${PF}/ros:/usr/:g" ./env.ksh > sed -i "2,12d" ./env.ksh > sed -i "s:\$CASROOT/../3rdparty/\$OS_NAME/tcltk:/usr:g" ./env.ksh > sed -i "s:\$CASROOT/src/:/usr/share/${PF}/:g" ./env.ksh > sed -i "s:\$CASROOT/\$OS_NAME/lib/:/usr/lib//:g" ./env.ksh > sed -i "22d" ./env.ksh > sed -i "27,36d" ./env.ksh > mv env.ksh 50${PF} > dodir /etc/env.d > insinto /etc/env.d > doins 50${PF} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 118656
:
76830
|
76831
|
88730
|
96980
|
97364
|
97539
|
97968
|
97999
|
98736
|
98737
|
98827
|
100232
|
100233
|
100290
|
100618
|
100619
|
114511
|
114512
|
114513
|
114515
|
114517
|
118661
|
118663
|
120461
|
120462
|
120463
|
120464
|
120466
|
120468
|
120519
|
120524
|
121948
|
121950
|
131942
|
131945
|
131951
|
134268
|
134269
|
134270
|
134271
|
135676
|
137800
|
140966
|
146117
|
146160
|
150729
|
152837
|
153571
|
153775
|
153795
|
154379
|
178469
|
182311
|
182314
|
182672
|
183316
|
200796
|
200798
|
204492