Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-20070717-r1.ebuild,v 1.3 2009/03/14 14:25:38 bicatali Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-20070717-r1.ebuild,v 1.3 2009/03/14 14:25:38 bicatali Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
inherit eutils distutils fortran |
6 |
inherit eutils distutils fortran python |
7 |
|
7 |
|
8 |
DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion" |
8 |
DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion" |
9 |
HOMEPAGE="http://camfr.sourceforge.net/" |
9 |
HOMEPAGE="http://camfr.sourceforge.net/" |
Lines 31-36
Link Here
|
31 |
src_prepare() { |
31 |
src_prepare() { |
32 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
32 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
33 |
cp "${FILESDIR}"/machine_cfg.py.gentoo machine_cfg.py || die |
33 |
cp "${FILESDIR}"/machine_cfg.py.gentoo machine_cfg.py || die |
|
|
34 |
|
35 |
# Configure to compile against selected python version |
36 |
python_version |
37 |
cat <<-EOF >> machine_cfg.py |
38 |
include_dirs = [] |
39 |
include_dirs.append("/usr/include/python${PYVER}") |
40 |
include_dirs.append("$(python_get_sitedir)") |
41 |
EOF |
42 |
|
34 |
local lapack_libs= |
43 |
local lapack_libs= |
35 |
for x in $(pkg-config --libs-only-l lapack); do |
44 |
for x in $(pkg-config --libs-only-l lapack); do |
36 |
lapack_libs="${lapack_libs}, \"${x#-l}\"" |
45 |
lapack_libs="${lapack_libs}, \"${x#-l}\"" |
Lines 62-67
Link Here
|
62 |
} |
71 |
} |
63 |
|
72 |
|
64 |
src_install() { |
73 |
src_install() { |
|
|
74 |
python_need_rebuild |
65 |
distutils_src_install |
75 |
distutils_src_install |
66 |
dodoc docs/camfr.pdf || die "doc install failed" |
76 |
dodoc docs/camfr.pdf || die "doc install failed" |
67 |
} |
77 |
} |