# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="finite element analysis" HOMEPAGE="http://slffea.sourceforge.net/index.html" MY_P=slffea13 SRC_URI="mirror://sourceforge/slffea/${MY_P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="icc" DEPEND="virtual/opengl" #RDEPEND="" S=${WORKDIR}/${P} src_compile() { epatch ${FILESDIR}/gentoo-${P}.diff if use icc; then CC=icc CFLAGS="-march=pentium4 -O3 -ipo" \ F77=ifort FFLAGS="-march=pentium4 -O3 -ipo" \ make everything else CC=gcc CFLAGS=${CFLAGS} F77=g77 FFLAGS=${CFLAGS} \ make everything fi } src_install() { dodoc CONTENTS INSTALL MODAL.ANALYSIS REFERENCES DONATIONS LICENSE dodoc SCIENCE.PREAMBLE FEATURES MANUAL PHILOSOPHY INPUT.DATA MESA README dobin `find . -perm +1 -type f | grep -v data | grep -v a.out` dodir /usr/share/doc/${P}/examples cp --recursive -a data/* ${D}/usr/share/doc/${P}/examples } pkg_postinst() { einfo When running the examples in /usr/share/doc/${P}/examples einfo be sure to have write access to this directory, otherwise einfo you will get segfaults. }