--- /usr/portage/sci-physics/camfr/camfr-20070717-r1.ebuild 2009-04-12 10:07:53.000000000 +0200 +++ camfr-20070717-r1.ebuild 2009-07-16 12:00:40.000000000 +0200 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-20070717-r1.ebuild,v 1.3 2009/03/14 14:25:38 bicatali Exp $ EAPI=2 -inherit eutils distutils fortran +inherit eutils distutils fortran python DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion" HOMEPAGE="http://camfr.sourceforge.net/" @@ -31,6 +31,15 @@ src_prepare() { epatch "${FILESDIR}"/${P}-gcc43.patch cp "${FILESDIR}"/machine_cfg.py.gentoo machine_cfg.py || die + + # Configure to compile against selected python version + python_version + cat <<-EOF >> machine_cfg.py + include_dirs = [] + include_dirs.append("/usr/include/python${PYVER}") + include_dirs.append("$(python_get_sitedir)") + EOF + local lapack_libs= for x in $(pkg-config --libs-only-l lapack); do lapack_libs="${lapack_libs}, \"${x#-l}\"" @@ -62,6 +71,7 @@ } src_install() { + python_need_rebuild distutils_src_install dodoc docs/camfr.pdf || die "doc install failed" }