diff options
Diffstat (limited to 'sci-misc')
23 files changed, 823 insertions, 0 deletions
diff --git a/sci-misc/elmer-elmergrid/Manifest b/sci-misc/elmer-elmergrid/Manifest new file mode 100644 index 000000000..861db7ef2 --- /dev/null +++ b/sci-misc/elmer-elmergrid/Manifest @@ -0,0 +1,3 @@ +DIST elmer-elmergrid-5.4.1.tar.gz 691564 SHA256 f401dc06720f39bc55ea020c0ce5f0fffffe4236e83e13969ce879ce4362d31b SHA512 c0f297ec4c14d3dfa32e0f5a00d0956fb60d589ac3189e765a0e590837a4cd27eff732ba84de04fc9e55c6bb436e3249c292ad5503f3a5e620f48fb60ece926a WHIRLPOOL 2b236cef9cd5c5379aa1196a640bc2b80bb6df2997c38f2806dacd15a6a64271146e4c28d7bb5f3fdbea48cd19143ceb80c9348e734304bf857e5aace9813a1f +EBUILD elmer-elmergrid-5.4.1-r1.ebuild 1137 SHA256 1f657ac3eeb6b520ef2448e9a536f6f73058f6d5df475c40750bef0a6b87feee SHA512 3a08add2a285b1f899b2589ed2e4b4163a248d505ea18140f52b2d04f54498f5910b747592ffe238b4b0b14351fcfce6bc4e3dd7ba361cb66b71142d81df8629 WHIRLPOOL 7df8a808b3102b12c76db32d54d2ca3e3b3ab44f0d0623d80d2160d4d8f5e9befc4624f8238722f502562b18e10fd958fb36562b8c199364bc3a1f1a9b971fc0 +EBUILD elmer-elmergrid-9999.ebuild 1165 SHA256 8563c652ab6c9856ad6064b41df817db5aca32e81655d5c8876feca4355ed647 SHA512 a3bfa622f105d10d5cd3333d873e056d28a3e08c7845d0fd0196186fd8fa05c4136b4aa7b3676a15f605df1e0a6aefefc7e276648f8ff477b09f0dcf8195f341 WHIRLPOOL 4ee2b97fc08e4359f1e3b4052a0f336204a3ab0aa1f743d5384e74c8dd3bcf57a29dfc7b0a04ebd1eeaa63e7f5679a0b5681a382f6318272eda235cdc138e6d7 diff --git a/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild b/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild new file mode 100644 index 000000000..1e1bd6f8c --- /dev/null +++ b/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmergrid" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" +DEPEND="sci-libs/matc + sys-libs/glibc" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/elmergrid" + +src_unpack() { + unpack ${A} + cd "${S}" + # configure must be executable + chmod +x configure + eautoreconf +} + +src_compile() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + myconf="$myconf --with-matc" + econf $myconf || die "econf failed" + emake || die "emake failed" +} + + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild b/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild new file mode 100644 index 000000000..67549e910 --- /dev/null +++ b/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils subversion + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmergrid" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +SRC_URI="" +RESTRICT="mirror" +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" +ESVN_PROJECT="${MY_PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" +DEPEND="sci-libs/matc + sys-libs/glibc" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/elmergrid" + +src_prepare() { + #unpack ${A} + cd "${S}" + # configure must be executable + #chmod +x configure + eautoreconf +} + +src_configure() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + myconf="$myconf --with-matc" + econf $myconf || die "econf failed" +} diff --git a/sci-misc/elmer-fem/Manifest b/sci-misc/elmer-fem/Manifest new file mode 100644 index 000000000..1097f1092 --- /dev/null +++ b/sci-misc/elmer-fem/Manifest @@ -0,0 +1 @@ +DIST elmer-fem-5.4.1.tar.gz 8436861 SHA256 bc7e6537f97e3c1ee5c32466978dc39b21cbd48638763a5c18717bfca2f8547b SHA512 edf97d00c9de9fe34dd595738eeaa676b299032bf25cfa4cf5c0de76e9254fdaa81dc534daef7b4168f19ff226dc55d742a8c3e40b0edbf04704634df919d25c WHIRLPOOL 84af0e107666bcfc4a7048f3320ef621b59918b3e3c6e35f831edaf78b2d7131a18f0d0ff9925707dc68e6e5b987213718af51331ed829c1f3109e22e1e92cb5 diff --git a/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild b/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild new file mode 100644 index 000000000..ce60dcc86 --- /dev/null +++ b/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="mpi debug" +DEPEND="sys-libs/glibc + virtual/blas + virtual/lapack + sci-libs/arpack + sci-libs/matc + sci-libs/elmer-hutiter + sci-libs/elmer-eio + mpi? ( sys-cluster/mpich2 )" +RDEPEND="${DEPEND}" +# Note this seems to only configure correctly with the elmer version of umfpack +# But this doesn't stop it from compiling / working without it + +S="${WORKDIR}/${PV}/fem" + +src_unpack() { + unpack ${A} + cd "${S}" + # configure must be executable + chmod +x configure + epatch ${FILESDIR}/elmer-fem-Makefile-install.patch + eautoreconf +} + +src_compile() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti" + myconf="$myconf --with-eiof --with-matc" + #TODO parpack support is not picked up from the arpack package + #TODO --with-hypre --with-umfpack + + use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf || die "econf failed" + emake || die "emake failed" +} + + +src_install() { + emake ELMER_SOLVER_DATADIR="${D}/usr/share/elmersolver" DESTDIR="${D}" install || die "emake install failed" +} diff --git a/sci-misc/elmer-fem/elmer-fem-9999.ebuild b/sci-misc/elmer-fem/elmer-fem-9999.ebuild new file mode 100644 index 000000000..9d970831f --- /dev/null +++ b/sci-misc/elmer-fem/elmer-fem-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils subversion + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +SRC_URI="" +RESTRICT="mirror" +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" +ESVN_PROJECT="${MY_PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="mpi debug" +DEPEND="sys-libs/glibc + virtual/blas + virtual/lapack + sci-libs/arpack + sci-libs/matc + sci-libs/elmer-hutiter + sci-libs/elmer-eio + mpi? ( sys-cluster/mpich2 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/fem" + +src_prepare() { + #unpack ${A} + cd "${S}" + # configure must be executable + #chmod +x configure + epatch ${FILESDIR}/elmer-fem-Makefile-install.patch + eautoreconf +} + +src_configure() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti" + myconf="$myconf --with-eiof --with-matc" + #TODO parpack support is not picked up from the arpack package + #TODO --with-hypre --with-umfpack + + use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf || die "econf failed" +} + + +src_install() { + emake ELMER_SOLVER_DATADIR="/usr/share/elmersolver" DESTDIR=${D} install || die "emake install failed" +} diff --git a/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch b/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch new file mode 100644 index 000000000..d0de4fe8b --- /dev/null +++ b/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch @@ -0,0 +1,13 @@ +--- fem/src/Makefile.am.old 2012-11-12 14:50:05.435767716 +0100 ++++ fem/src/Makefile.am 2012-11-12 14:51:29.271802187 +0100 +@@ -154,8 +154,9 @@ + + + install-exec-local: +- @echo "Installing stuff to ${prefix}/bin" ++ @echo "Installing stuff to ${DESTDIR}${prefix}/bin" + $(MKDIR) $(DESTDIR)$(prefix)/bin ++ $(MKDIR) $(DESTDIR)$(prefix)/lib + $(CP) ElmerSolver$(EXEEXT) $(DESTDIR)$(prefix)/bin + $(CP) ViewFactors$(EXEEXT) $(DESTDIR)$(prefix)/bin + $(CP) GebhardtFactors$(EXEEXT) $(DESTDIR)$(prefix)/bin diff --git a/sci-misc/elmer-front/Manifest b/sci-misc/elmer-front/Manifest new file mode 100644 index 000000000..ec4960db6 --- /dev/null +++ b/sci-misc/elmer-front/Manifest @@ -0,0 +1,4 @@ +AUX elmer-front-Makefile-install.patch 832 SHA256 d64a6ba001980d47028cf89ab338a9f64e164c083d608704b68a8bdc0a9cac3e SHA512 3d231068263892e095a1a34686ba7a649441bf4267107169a445950c3c9e9db76f51e26259d4c0736229ae97c73af7bd08abcbb44ae779caf004d7f7e4f9b504 WHIRLPOOL 6625d0bc98fdfdc664ee8ccf16444a94d2032bf965fd7d9d563fe3cf6af8670c0d913d0872e848a5daa1eb7a331f54a2925088d037a94342c31d57b0b708ce12 +DIST elmer-front-5.4.1.tar.gz 1451796 SHA256 b9f514626b3e55e8bf3610f6b0c06b05a5f54b23cf4cd48461e724ce019737e4 SHA512 c52d768526cf74f734bb52715204ebabc8dc3c1e65c74f208ddbe0eb58a9439797cfd113585033ffda266f7546970aff1585628f2d5859e789f18e69e5981a7d WHIRLPOOL a8391d235ec7cf63467e5eab5b36012cffd029a2fa0d7ec8575122a2fdff4125dab28d53551730c168a3ffcd593940f2e70874c592c45d98a4b015800078a5e0 +EBUILD elmer-front-5.4.1-r1.ebuild 1304 SHA256 4e22bc18abf04352f1d093c5eff55ea3b0918950338fe5c0d2b57e4c32342e47 SHA512 b16c83fd1658ae5dee820d413eaca2cec8ccf43b8202e4f527d883a3ff990a4505722a90e080d120d29688250aac0a5d0b86c3decf97b9c67e4e1fd6347bff9b WHIRLPOOL 6669fd6262fb732ab16e0ef22a72568982a3da957fb3d1b9ac0023c3ad5ebc18a977b67ee12d2a10e260f3addcdab6ef2d2d8adf0c8b6f9956ba8609a1431868 +EBUILD elmer-front-9999.ebuild 1321 SHA256 55f43b9fab9fe5920c2d9b3e1061e62c42d419375e904dd2cd9ebce034e7ecd5 SHA512 7d44825549c2b2b4e04e311dce47e9a886fd22e211e7358c1fcffdcc4f8f7a4bb60743e66026850ea74a61a307af701ba5341e9a38136c927376d24595bc76a4 WHIRLPOOL 3f268ac8b817c299839aec03525bc6cdff1c9e1118f854310a877f0dbcc5d16ea9c1da31d2bd691f4d8c9a3b7e7337b3df1274a918fdd5dd50f45d7ca59e260b diff --git a/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild new file mode 100644 index 000000000..b2b98f728 --- /dev/null +++ b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="X debug" +DEPEND="=dev-lang/tcl-8.4* + =dev-lang/tk-8.4* + sci-libs/matc + sci-libs/elmer-eio + virtual/opengl" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/front" + +src_unpack() { + unpack ${A} + cd "${S}" + # configure must be executable + chmod +x configure + epatch ${FILESDIR}/elmer-front-Makefile-install.patch + eautoreconf +} + +src_compile() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + myconf="${myconf} --with-eioc --with-matc --with-tcltk" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf \ + $(use_with X x) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/sci-misc/elmer-front/elmer-front-9999.ebuild b/sci-misc/elmer-front/elmer-front-9999.ebuild new file mode 100644 index 000000000..054841075 --- /dev/null +++ b/sci-misc/elmer-front/elmer-front-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils subversion + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +SRC_URI="" +RESTRICT="mirror" +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" +ESVN_PROJECT="${MY_PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="X debug" +DEPEND="dev-lang/tcl + dev-lang/tk + sci-libs/matc + sci-libs/elmer-eio + virtual/opengl" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/front" + +src_prepare() { + #unpack ${A} + cd "${S}" + # configure must be executable + #chmod +x configure + epatch ${FILESDIR}/elmer-front-Makefile-install.patch + eautoreconf +} + +src_configure() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + myconf="${myconf} --with-eioc --with-matc --with-tcltk" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf \ + $(use_with X x) \ + || die "econf failed" +} diff --git a/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch b/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch new file mode 100644 index 000000000..6ecbe6f8e --- /dev/null +++ b/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch @@ -0,0 +1,18 @@ +--- front/src/Makefile.am.old 2012-11-12 13:25:34.331046988 +0100 ++++ front/src/Makefile.am 2012-11-12 13:27:36.055100527 +0100 +@@ -85,13 +85,13 @@ + endif + + install-data-local: +- @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl" ++ @echo "Installing tcl scripts to ${DESTDIR}${prefix}/share/elmerfront/tcl" + + mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/tcl" + cp -r ./tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl" + rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/tcl -name .svn` + +- @echo "Installing *.edf *.rgb to ${prefix}/share/elmerfront/lib" ++ @echo "Installing *.edf *.rgb to ${DESTDIR}${prefix}/share/elmerfront/lib" + mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/lib" + cp -r ./lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib" + rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/lib -name .svn` diff --git a/sci-misc/elmer-gui/elmer-gui-9999.ebuild b/sci-misc/elmer-gui/elmer-gui-9999.ebuild new file mode 100644 index 000000000..2d006c9ff --- /dev/null +++ b/sci-misc/elmer-gui/elmer-gui-9999.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils qt4-r2 subversion python versionator + +ELMER_ROOT="elmerfem" +MY_PN=ElmerGUI + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, New Elmer pre-processor" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +SRC_URI="" +RESTRICT="mirror" +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" +ESVN_PROJECT="${MY_PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug bundled_netgen matc opencascade python qwt vtk" + +REQUIRED_USE="opencascade? ( vtk )" + +DEPEND="=sci-libs/elmer-eio-${PV} + !bundled_netgen? ( sci-mathematics/netgen ) + virtual/glu + || ( =sci-misc/elmer-post-${PV} + >=sci-libs/vtk-5.0.0[qt4,python?] + ) + matc? ( =sci-libs/matc-${PV} ) + vtk? ( >=sci-libs/vtk-5.0.0[qt4,python?] ) + opencascade? ( >=sci-libs/opencascade-6.3 ) + python? ( <=dev-python/pythonqt-1.1 ) + x11-libs/qwt:5 + || ( >=x11-libs/qt-core-4.3:4 + ( x11-libs/qt-core:5 + x11-libs/qt-xml:5 + ) + ) + >=x11-libs/qt-opengl-4.3 + >=x11-libs/qt-script-4.3" +RDEPEND="${DEPEND}" + +src_prepare() { + # Do not build bundled matc and PythonQt + sed -i \ + -e 's/matc//' \ + -e 's/PythonQt//' \ + ${MY_PN}.pro || die + + # Ideally we would avoid buildling thirdparty code + # and use a separate package but this currently fails + # to build. ElmerGui provides its own patched version of + # NetGen. Currently considering backporting them to + # sci-mathematics/netgen + if use !bundled_netgen; then + sed -i 's/netgen//' ${MY_PN}.pro || die + sed -i \ + -e "s:INCLUDEPATH += ../netgen/libsrc/interface:INCLUDEPATH += ${EPREFIX}/usr/include:g" \ + -e "s:LIBPATH += ../netgen/ngcore:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" \ + -e "s:LIBS += -lng:LIBS += -lnglib:g" \ + Application/Application.pro || die + + eerror "${PN} currently fails to build against sci-mathematics/netgen." + fi + + # Fix install path + sed -i \ + -e 's|unix: ELMER_HOME = /usr/local|unix: ELMER_HOME = /usr|g' \ + ${MY_PN}.pri || die + + if use amd64; then + sed -i 's/32/64/' ${MY_PN}.pri || die + fi + + if use !qwt; then + # QWT is activated by default, disable + sed -i 's/DEFINES += EG_QWT//' ${MY_PN}.pri || die + else + # Detect x11-libs/qwt version and fix paths + local QWT_VER=`echo $(best_version "x11-libs/qwt") | sed 's:x11-libs/qwt-::'` + local QWT_MAJOR=$(get_major_version ${QWT_VER}) + local QWT_MAJOR=5 + + if [[ ${QWT_MAJOR} -lt 6 ]]; then + local QWT_LIBS=-lqwt + else + local QWT_LIBS=-lqwt${QWT_MAJOR} + fi + + local QWT_INCLUDEPATH=${EPREFIX}/usr/include/qwt${QWT_MAJOR} + local QWT_LIBPATH=${EPREFIX}/usr/$(get_libdir) + + sed -i \ + -e "s:QWT_INCLUDEPATH.*:QWT_INCLUDEPATH = ${QWT_INCLUDEPATH}:g" \ + -e "s:QWT_LIBPATH.*:QWT_LIBPATH = ${QWT_LIBPATH}:g" \ + -e "s:QWT_LIBS.*:QWT_LIBS = ${QWT_LIBS}:g" \ + ${MY_PN}.pri || die + fi + + if use !vtk; then + # VTK is activated by default, disable + sed -i 's/DEFINES += EG_VTK//' ${MY_PN}.pri || die + else + # Fix paths + local VTK_VER=`echo ${VTK_DIR} | cut -d/ -f4` + sed -i \ + -e "s:VTK_INCLUDEPATH.*:VTK_INCLUDEPATH = ${EPREFIX}/usr/include/${VTK_VER}:g" \ + -e "s:VTK_LIBPATH.*:VTK_LIBPATH = ${VTK_DIR}:g" \ + ${MY_PN}.pri || die + fi + + if use !matc; then + sed -i 's/DEFINES += EG_MATC//' ${MY_PN}.pri || die + else + sed -i "s:LIBPATH += ../matc/lib:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" Application/Application.pro || die + fi + + if use !opencascade; then + # Opencascade is activated by default, disable + sed -i 's/DEFINES += EG_OCC//' ${MY_PN}.pri || die + else + # Fix paths, depend on portage version of opencascade + sed -i \ + -e "s:OCC_INCLUDEPATH.*:OCC_INCLUDEPATH = ${CASROOT}/inc:g" \ + -e "s:OCC_LIBPATH.*:OCC_LIBPATH = ${CASROOT}/$(get_libdir):g" \ + ${MY_PN}.pri || die + fi + + if use python; then + # Fix paths + sed -i \ + -e 's/DEFINES -= EG_PYTHON/DEFINES += EG_PYTHON/g' \ + -e "s:PY_INCLUDEPATH.*:PY_INCLUDEPATH = $(python_get_includedir):g" \ + -e "s:PY_LIBPATH.*:PY_LIBPATH = $(python_get_libdir):g" \ + -e "s:PY_LIBS.*:PY_LIBS = $(python_get_library -l):g" \ + ${MY_PN}.pri || die + + # Fix paths and invert Python(Qt) linking order to work with --Wl,--as-needed + sed -i \ + -e "s:INCLUDEPATH += $${PY_INCLUDEPATH} ../PythonQt/src:${EPREFIX}/usr/include/PythonQt:g" \ + -e "s:LIBPATH += $${PY_LIBPATH} ../PythonQt/lib:${EPREFIX}/usr/$(get_libdir):g" \ + -e "s:LIBS += $${PY_LIBS} -lPythonQt:LIBS += -lPythonQt $${PY_LIBS}:" \ + Application/Application.pro || die + fi +} + +src_configure() { + eqmake4 "${S}" ./${MY_PN}.pro +} diff --git a/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch new file mode 100644 index 000000000..0918c8ea9 --- /dev/null +++ b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch @@ -0,0 +1,11 @@ +--- /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp.auto-diff-temp 2012-11-15 17:16:40.602279216 +0100 ++++ /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp 2012-11-15 17:16:52.226288133 +0100 +@@ -4778,7 +4778,7 @@ + + mp.maxh = meshControl->nglibMaxH.toDouble(); + mp.fineness = meshControl->nglibFineness.toDouble(); +- mp.secondorder = 0; ++ mp.second_order = 0; + mp.meshsize_filename = backgroundmesh; + + if(ngDim == 3) { diff --git a/sci-misc/elmer-gui/metadata.xml b/sci-misc/elmer-gui/metadata.xml new file mode 100644 index 000000000..0a4f88ac7 --- /dev/null +++ b/sci-misc/elmer-gui/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <bugs-to>mailto:chr.paccolat@mycable.ch</bugs-to> + <changelog></changelog> + <doc>http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3</doc> + </upstream> + <maintainer><email>chr.paccolat@mycable.ch</email></maintainer> + <use> + <flag name="matc">Add support to evaluate mathematical expression in input files / postprocessor </flag> + <flag name="opencascade">Use OpenCASCADE to import CAD files</flag> + <flag name="python">Add support for python scripting in the pre-processor</flag> + <flag name="qwt">Pull-in QWT to enable the convergence monitor</flag> + <flag name="vtk">Add support for the VTK post-processor backend (visualization)</flag> + </use> +</pkgmetadata> + diff --git a/sci-misc/elmer-meshgen2d/Manifest b/sci-misc/elmer-meshgen2d/Manifest new file mode 100644 index 000000000..534071a02 --- /dev/null +++ b/sci-misc/elmer-meshgen2d/Manifest @@ -0,0 +1,3 @@ +DIST elmer-meshgen2d-5.4.1.tar.gz 1758287 SHA256 66b0da4021f76da746951bbba15727c754ee0f91f865dc80a500c175c65c74ca SHA512 7589b507445955226d7541499d57a19d17165039d66947beef14473d811a991576e8c975cacb93f413f638dd6be6a231c6c05f4751311903f26023437a21f560 WHIRLPOOL 46c402d82194cccfba8f35d63cbca9ef16b38466a98db190f02de0023df0b730e587fd6391a86d0978d1fd2173aef52733af4ce21537f8f9d6079b0ff8398aad +EBUILD elmer-meshgen2d-5.4.1-r1.ebuild 1092 SHA256 3ad76f3aa25ec1d255b85fc604f20ddf93faa78ceb491e935bf40f611732df4c SHA512 613395ac0c4654bddcfc6da21b402081df134990601a8ed52ecde27a171d989d8ded5ff6f48f5d2762f9962b81d7f10446e19a003e8d5ef0cca24990001994fc WHIRLPOOL 307dcfbc2991b40b5fa6f488ad2a57735bdd5a7ec9009bd3c985316c808bd4e4fa2c81e172551e6f9dec959980842e4fca2207edbca8f2bea9a65cbf698eeb94 +EBUILD elmer-meshgen2d-9999.ebuild 1120 SHA256 5cc4ca54ddaefc551b48b22abd1d11ebc3503c8e35065cf5cafa18d3ae9756bb SHA512 3b7503816cfe43cc88907e590b9555cf239fe70b4916b57027f91d812ff22e82b5f8cb5e59ad636a5e5d0e371cf597d916035519ef60d292cdd9b0beed5ca8a9 WHIRLPOOL 5980214f1cd808ed5552dccd50a408a38545a8cb21f8b98910de173970761f1a0de376d4498c26a46991684f9c0043f913495dde06cc762530f2c08ec578c9c1 diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild new file mode 100644 index 000000000..66f721078 --- /dev/null +++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" +DEPEND="sys-libs/glibc" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/meshgen2d" + +src_unpack() { + unpack ${A} + cd "${S}" + # configure must be executable + chmod +x configure + eautoreconf +} + +src_compile() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf || die "econf failed" + emake || die "emake failed" +} + + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild new file mode 100644 index 000000000..fafab98be --- /dev/null +++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils subversion + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +SRC_URI="" +RESTRICT="mirror" +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" +ESVN_PROJECT="${MY_PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" +DEPEND="sys-libs/glibc" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/meshgen2d" + +src_prepare() { + #unpack ${A} + cd "${S}" + # configure must be executable + #chmod +x configure + eautoreconf +} + +src_configure() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf || die "econf failed" +} diff --git a/sci-misc/elmer-meta/Manifest b/sci-misc/elmer-meta/Manifest new file mode 100644 index 000000000..a830639b6 --- /dev/null +++ b/sci-misc/elmer-meta/Manifest @@ -0,0 +1,2 @@ +EBUILD elmer-meta-5.4.1-r1.ebuild 716 SHA256 7af2c322183a5684bab9460ecc2c7ee6226a5da7270498e4ea42545d06c083db SHA512 f0a2eddd2786f54d0ca460ac029fbbc50082bd20cfdcb653841aa8683baa0c9cbb181c52fba83604a19028cc232240a482bb5cc2500c479746002ce7e362a79b WHIRLPOOL 66285ea08e574f56e84df16fb57918f98734e1869e2b8dfe6fe080babafccd2ed22d4e1403103e682dda930347459c90a07e3fbb1d23f76444d4442fa1502e02 +EBUILD elmer-meta-9999.ebuild 706 SHA256 bc2ea9a0cfc39f9bc8b7b76784be13fce6b9a47dfbe7481b26825142d1bc26f0 SHA512 eec00c54eb76dd6f6a8fb241570d9d7b3d7d7c73662fbd54778c83de61495268170338e387453eaca0d6d0a4f9c03c02452a0c27af363329e9b57e8dc1660ce5 WHIRLPOOL feb12f0cfca19137c7a3390d4378b4528bd430a0086dcb59b77bc5e6443f408412f30a5ad178d9bb7407bf10681d21d66e72bf45320f2397400edb20f681de09 diff --git a/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild b/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild new file mode 100644 index 000000000..d2142ca46 --- /dev/null +++ b/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +DEPEND="=sci-libs/matc-5.4.1* + =sci-misc/elmer-elmergrid-5.4.1* + =sci-misc/elmer-meshgen2d-5.4.1* + =sci-libs/elmer-eio-5.4.1* + =sci-libs/elmer-hutiter-5.4.1* + =sci-misc/elmer-fem-5.4.1* + =sci-misc/elmer-post-5.4.1* + =sci-misc/elmer-front-5.4.1*" + +pkg_postinst() { + einfo "Elmer ebuilds may need further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=221013" +} diff --git a/sci-misc/elmer-meta/elmer-meta-9999.ebuild b/sci-misc/elmer-meta/elmer-meta-9999.ebuild new file mode 100644 index 000000000..4ef5f65cb --- /dev/null +++ b/sci-misc/elmer-meta/elmer-meta-9999.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +DEPEND="=sci-libs/matc-9999* + =sci-misc/elmer-elmergrid-9999* + =sci-misc/elmer-meshgen2d-9999* + =sci-libs/elmer-eio-9999* + =sci-libs/elmer-hutiter-9999* + =sci-misc/elmer-fem-9999* + =sci-misc/elmer-post-9999* + =sci-misc/elmer-gui-9999*" + +pkg_postinst() { + einfo "Elmer ebuilds may need further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=221013" +} diff --git a/sci-misc/elmer-post/Manifest b/sci-misc/elmer-post/Manifest new file mode 100644 index 000000000..02d085523 --- /dev/null +++ b/sci-misc/elmer-post/Manifest @@ -0,0 +1,3 @@ +DIST elmer-post-5.4.1.tar.gz 5211292 SHA256 4df38f81937f5357f6e9ca6708ae820e1e6119c9379222e0bff10435e26dc19d SHA512 29450b72245265fca0e4ff83307e2ae189ff506b32b6ee706367fe303d430095faba475f98d8bd6eda1e4d8688e81aa0552366905acc09d0e58de9c27a35eafc WHIRLPOOL e386498bc56611a3680e5c80db55097ce40b107700c447b4d9abb554b7ebd6ab35d324c83d570ccea7f7497d5d41e5496ea526f9e5829177a092401da1f8140f +EBUILD elmer-post-5.4.1-r1.ebuild 1347 SHA256 ba3c9357654ff597e501f1938de839d9faf00bcc77d905f6ed8ca5028727b458 SHA512 73f57b079420a8b215700a8b9c3f812101f152ad64a06220d3ce1ae4619a28288bc7ee8b22042ea887b5c232c4237c5e57404bc91cad2bf84bcc2dcc464cdea7 WHIRLPOOL 8a91e631da5a8c9e9590c50ab685ab3c15736ed10d59914571156e5f6ce18b264700366ef9e8aa7cf16d512dfc874be5eb405fba7040f75acfd1d9035812935b +EBUILD elmer-post-9999.ebuild 1438 SHA256 81d8ef803f36a607c7a2cc92e92535537e5b60d58140911639b25a181607ed32 SHA512 4fc05fe713120f954d69798c0bad1825ea5007686ace0bed939f4d3365ba58784f1c366e77e99061e6887b17c9c924870dc0d7938c53c11412ea670c43829483 WHIRLPOOL 4d57260192c4f45b3b5a232b28a2944501e3a89a96b3e0bad5d03e74a66377e13d7bf864c6c69b359ba50ac4b57ac941bd3d161ecb617af48fdfeec8e1738a2f diff --git a/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild b/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild new file mode 100644 index 000000000..459f6ce65 --- /dev/null +++ b/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils flag-o-matic + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="opengl X debug" +DEPEND="=dev-lang/tcl-8.4* + =dev-lang/tk-8.4* + opengl? ( virtual/opengl + media-libs/ftgl ) + sci-libs/matc" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/post" + +src_unpack() { + unpack ${A} + cd "${S}" + # configure must be executable + chmod +x configure + eautoreconf +} + +src_compile() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + myconf="${myconf} --with-matc" + use opengl && append-cppflags -I/usr/include/FTGL + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf \ + $(use_with X x) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake ELMER_POST_DATADIR="${D}/usr/share/elmerpost" DESTDIR="${D}" install || die "emake install failed" +} diff --git a/sci-misc/elmer-post/elmer-post-9999.ebuild b/sci-misc/elmer-post/elmer-post-9999.ebuild new file mode 100644 index 000000000..5ad6804d2 --- /dev/null +++ b/sci-misc/elmer-post/elmer-post-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools eutils flag-o-matic subversion + +ELMER_ROOT="elmerfem" +MY_PN=${PN/elmer-/} + +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost" +HOMEPAGE="http://www.csc.fi/english/pages/elmer" +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" +SRC_URI="" +RESTRICT="mirror" +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" +ESVN_PROJECT="${MY_PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="opengl X debug" +DEPEND="dev-lang/tcl + dev-lang/tk + opengl? ( virtual/opengl + media-libs/ftgl ) + sci-libs/matc" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PV}/post" + +src_prepare() { + #unpack ${A} + cd "${S}" + # configure must be executable + #chmod +x configure + eautoreconf +} + +src_configure() { + cd "${S}" + local myconf + export FC="gfortran" + export F77="gfortran" + myconf="${myconf} --with-matc" + use opengl && append-cppflags -I/usr/include/FTGL + use debug && + myconf="${myconf} --with-debug" || + myconf="${myconf} --without-debug" + econf $myconf \ + $(use_with X x) \ + || die "econf failed" +} + +src_install() { + emake ELMER_POST_DATADIR="/usr/share/${MY_PN}" DESTDIR="${D}" install || die "emake install failed" +} |