diff options
Diffstat (limited to 'sci-misc/camfr/camfr-1.2.ebuild')
-rw-r--r-- | sci-misc/camfr/camfr-1.2.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sci-misc/camfr/camfr-1.2.ebuild b/sci-misc/camfr/camfr-1.2.ebuild new file mode 100644 index 000000000000..51ede579e9fc --- /dev/null +++ b/sci-misc/camfr/camfr-1.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/camfr/camfr-1.2.ebuild,v 1.1 2005/04/05 07:52:12 pbienst Exp $ + +inherit eutils distutils + +S=${WORKDIR}/camfr_${PV} +IUSE="ifc" +DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion" +SRC_URI="mirror://sourceforge/camfr/${P}.tgz" +HOMEPAGE="http://camfr.sourceforge.net/" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc" +DEPEND="dev-lang/python + >=dev-util/scons-0.94 + >=dev-python/numeric-23.1 + >=dev-libs/boost-1.30.2 + >=dev-python/imaging-1.1.4 + >=dev-libs/blitz-0.7 + virtual/lapack + virtual/tetex + app-text/ghostscript + >=app-text/texi2html-1.64" + +src_unpack() { + use ifc || if [ -z `which g77` ]; then + #if ifc is defined then the dep was already checked + eerror "No fortran compiler found on the system!" + eerror "Please add fortran to your USE flags and reemerge gcc!" + die + fi + + python -c "import ImageTk" 2>/dev/null + if [ $? -ne 0 ]; then + eerror "Python and imaging don't have Tk support enabled." + eerror "Set the tcltk USE flag and reinstall python and imaging before continuing." + die + fi + + unpack ${P}.tgz + cp ${FILESDIR}/machine_cfg.py ${S}/machine_cfg.py + cp ${FILESDIR}/SConstruct ${S} + cp ${FILESDIR}/camfr_wrap.cpp ${S}/camfr + echo '1;' >> ${S}/docs/texi2html.init +} + +src_compile() { + + cd ${S} + distutils_src_compile + + cd ${S}/docs + make +} + + +src_install() { + distutils_src_install + + cp ${S}/docs/camfr.pdf ${D}/usr/share/doc/${P} + dohtml ${S}/docs/*.html ${S}/docs/*.css + mkdir ${D}/usr/share/doc/${P}/html/figs + cp ${S}/docs/figs/*.png ${D}/usr/share/doc/${P}/html/figs + cp ${S}/docs/figs/*.gif ${D}/usr/share/doc/${P}/html/figs +} |