--- metadata-2.2.0.xml 2013-05-15 09:01:29.000000000 +0200 +++ metadata-2.2.1.xml 2013-07-27 17:51:55.175139702 +0200 @@ -12,5 +12,6 @@ Install opendx visualisation tool + Install source files --- openfoam-2.2.0.ebuild 2013-05-15 09:01:29.000000000 +0200 +++ openfoam-2.2.1.ebuild 2013-07-27 17:52:01.775138935 +0200 @@ -12,12 +12,12 @@ DESCRIPTION="Open Field Operation and Manipulation - CFD Simulation Toolbox" HOMEPAGE="http://www.openfoam.org" -SRC_URI="http://downloads.sourceforge.net/project/foam/foam/${PV}/${MY_P}.tgz" +SRC_URI="http://downloads.sourceforge.net/foam/${MY_P}.tgz" LICENSE="GPL-2" SLOT="2.2" KEYWORDS="~amd64 ~x86" -IUSE="doc examples opendx" +IUSE="doc examples opendx src" DEPEND="!=sci-libs/openfoam-bin-${MY_PV}* !=sci-libs/openfoam-kernel-${MY_PV}* @@ -29,7 +29,8 @@ sci-libs/parmgridgen sci-libs/scotch virtual/mpi - opendx? ( sci-visualization/opendx )" + opendx? ( sci-visualization/opendx ) + doc? ( app-doc/doxygen )" RDEPEND="${DEPEND}" S=${WORKDIR}/${MY_P} @@ -63,6 +64,9 @@ sed -i -e "s|WM_MPLIB:=OPENMPI|WM_MPLIB:="${WM_MPLIB}"|" etc/bashrc sed -i -e "s|setenv WM_MPLIB OPENMPI|setenv WM_MPLIB "${WM_MPLIB}"|" etc/cshrc + + sed -i -e "s|^foamInstall=\$HOME|foamInstall=/usr/$(get_libdir)|" etc/bashrc + sed -i -e "s|^set foamInstall = \$HOME|set foamInstall = /usr/$(get_libdir)|" etc/cshrc } src_compile() { @@ -81,7 +85,11 @@ find wmake -name dirToString | xargs rm -rf find wmake -name wmkdep | xargs rm -rf - ./Allwmake || die "could not build" + if use doc ; then + ./Allwmake doc || die "could not build" + else + ./Allwmake || die "could not build" + fi } src_test() { @@ -95,11 +103,8 @@ use examples && doins -r tutorials - # not sure if this is useful - #doins -r src - - insinto ${INSDIR}/lib - doins -r lib/* + # for developing own stuff + use src && doins -r src insopts -m0755 doins -r bin applications platforms wmake