blob: 4292839ef19aa62b4af94b6b8bc47398fb8cd0a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-1.2.ebuild,v 1.2 2007/01/02 15:14:45 pbienst Exp $
inherit eutils distutils fortran
S=${WORKDIR}/camfr_${PV}
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"
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
virtual/ghostscript
>=app-text/texi2html-1.64"
FORTAN="g77"
src_unpack() {
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
}
|