# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Ebuild for opencascadelib-5.2" HOMEPAGE="http://www.opencascade.org/" SRC_URI="http://easynews.dl.sourceforge.net/sourceforge/opencascadelib/opencascadelib-5.2.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64" S=${WORKDIR}/ros # Comprehensive list of any and all USE flags leveraged in the ebuild, # with the exception of any ARCH specific flags, i.e. "ppc", "sparc", # "x86" and "alpha". This is a required variable. If the ebuild doesn't # use any USE flags, set to "". IUSE="" # A space delimited list of portage features to restrict. man 5 ebuild # for details. Usually not needed. #RESTRICT="nostrip" # Build-time dependencies, such as # ssl? ( >=dev-libs/openssl-0.9.6b ) # >=dev-lang/perl-5.6.1-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. DEPEND=" >=sys-devel/gcc-3.2 >=dev-lang/tcl-8.3.3 >=dev-tcltk/tix-8.2.0-r2 ||( >=dev-java/blackdown-jre-1.4.2 >=dev-java/blackdown-jdk-1.4.2) >=x11-libs/qt-3.2.1 >=x11-libs/fltk-1.1.4" #RDEPEND="" src_unpack() { unpack ${A} cd ${S} # patch to work on amd64 with gcc 3.4 EPATCH_OPTS="-p0 -l" epatch ${FILESDIR}/${P}-AMDGCCTCL.patch } src_compile() { chmod u+x configure bash env.ksh aclocal automake --add-missing libtoolize --copy --force || die "libtoolize failed" econf || die "econf failed" emake || die "emake failed" } src_install() { einstall || die }