diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-03-17 16:21:32 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-03-17 16:21:32 +0000 |
commit | 76ffb781ed7a917f23b67454e9f950e5e3b83527 (patch) | |
tree | 94fa8e1ddc7cb9ef80b78ea7896a5845f074f95b /sci-mathematics/freefem++ | |
parent | move stuff to root (diff) | |
download | sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.gz sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.bz2 sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.zip |
moved overlay to new directory
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@979 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics/freefem++')
-rw-r--r-- | sci-mathematics/freefem++/ChangeLog | 27 | ||||
-rw-r--r-- | sci-mathematics/freefem++/Manifest | 7 | ||||
-rw-r--r-- | sci-mathematics/freefem++/files/freefem++-acoptim.patch | 17 | ||||
-rw-r--r-- | sci-mathematics/freefem++/freefem++-2.23.1.ebuild | 120 | ||||
-rw-r--r-- | sci-mathematics/freefem++/freefem++-2.23.2.ebuild | 120 | ||||
-rw-r--r-- | sci-mathematics/freefem++/metadata.xml | 10 |
6 files changed, 301 insertions, 0 deletions
diff --git a/sci-mathematics/freefem++/ChangeLog b/sci-mathematics/freefem++/ChangeLog new file mode 100644 index 000000000..cddb64a42 --- /dev/null +++ b/sci-mathematics/freefem++/ChangeLog @@ -0,0 +1,27 @@ +# ChangeLog for sci-mathematics/freefem++ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*freefem++-2.23.2 (08 Feb 2008) + + 08 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org> + -freefem++-2.22.ebuild, +freefem++-2.23.2.ebuild: + Version bump. + +*freefem++-2.23.1 (30 Jan 2008) + + 30 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> + +freefem++-2.23.1.ebuild: + Version bump + +*freefem++-2.22 (27 Dec 2007) + + 27 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> + -freefem++-2.21.1.ebuild, +freefem++-2.22.ebuild: + Version bump + +*freefem++-2.21.1 (22 Nov 2007) + + 22 Nov 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/freefem++-acoptim.patch, +metadata.xml, +freefem++-2.21.1.ebuild: + Initial import. Ebuild submitted by David Radice. See bug #34498. diff --git a/sci-mathematics/freefem++/Manifest b/sci-mathematics/freefem++/Manifest new file mode 100644 index 000000000..8b4459681 --- /dev/null +++ b/sci-mathematics/freefem++/Manifest @@ -0,0 +1,7 @@ +AUX freefem++-acoptim.patch 663 RMD160 6294d436eaf8bdea7258b3ca704e5ff9f942f019 SHA1 0ebe27e991bdd3949d3bf671056a15ce23f4f29f SHA256 6d07f4cd1a061d401879e54568fbeb2a035951b50195dfd3b88b05086a87cbb7 +DIST freefem++-2.23-1.tar.gz 10966918 RMD160 9587024168a251424a3bfd26549e65a4ea433a9b SHA1 8b116f480c9998e13e09685dbc1809907525a874 SHA256 d75a976e538f3fcf835a8e3029acc88d43a88213a99742fc95d2c791843e9e7b +DIST freefem++-2.23-2.tar.gz 10966822 RMD160 07a4beb1da5b7f2366c5e3434b29ebb201291884 SHA1 5de2601e8f5cbed8e3c324e60c5043003b368984 SHA256 761c3c4cd62ef4d125f05b87e7e4e0c37bb324e61a3200e2f3979a123a3bd7c5 +EBUILD freefem++-2.23.1.ebuild 3053 RMD160 52c96b44e20059e18da9dde2b9ed0b86e23de5d9 SHA1 52bf87e581548a647ccdba1ae985382cef1a6641 SHA256 fcafdd70a40036f0f8cdd1348fa5f2e5284df8c0626f05e0d4b4d63ce3baca00 +EBUILD freefem++-2.23.2.ebuild 3053 RMD160 52c96b44e20059e18da9dde2b9ed0b86e23de5d9 SHA1 52bf87e581548a647ccdba1ae985382cef1a6641 SHA256 fcafdd70a40036f0f8cdd1348fa5f2e5284df8c0626f05e0d4b4d63ce3baca00 +MISC ChangeLog 805 RMD160 b9a1c4f4c57204e23779d64a24b74a4b5bab5eb6 SHA1 d97d87d77e19edc7c4a1a46b0eb3f94eaab43e8d SHA256 8866eed7162ae46341a7ba8a2a8ce847f460dce71b1fc6817cdf57f1de1a3eaf +MISC metadata.xml 381 RMD160 17dca0ed77bf65c0d2d8aa2148243f67c4a05edf SHA1 f583b125502b06a151f200849e2892bd08dbc70e SHA256 d7569d977d779a55533651e01e4d45e5ae7a1ada36b634e8b988ae4db86cdb83 diff --git a/sci-mathematics/freefem++/files/freefem++-acoptim.patch b/sci-mathematics/freefem++/files/freefem++-acoptim.patch new file mode 100644 index 000000000..087b077cb --- /dev/null +++ b/sci-mathematics/freefem++/files/freefem++-acoptim.patch @@ -0,0 +1,17 @@ +--- freefem++-2.20-1/acoptim.m4 2006-01-27 16:51:16.000000000 +0100 ++++ freefem++-2.20-1.new/acoptim.m4 2007-11-14 18:50:37.000000000 +0100 +@@ -16,14 +16,6 @@ + AC_ARG_ENABLE(debug,[ --enable-debug Turn on debug versions of FreeFem++]) + AC_ARG_ENABLE(optim,[ --enable-optim Turn on compiler optimization]) + +-# Autoconf always chooses -O2. -O2 in gcc makes some functions +-# disappear. This is not ideal for debugging. And when we optimize, we +-# do not use -O2 anyway. +- +-CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`" +-FFLAGS="`echo $FFLAGS | sed 's/-O2//g'`" +-CXXFLAGS="`echo $CXXFLAGS | sed 's/-O2//g'`" +- + if test "$enable_debug" = yes; + then + AC_MSG_RESULT(yes)
\ No newline at end of file diff --git a/sci-mathematics/freefem++/freefem++-2.23.1.ebuild b/sci-mathematics/freefem++/freefem++-2.23.1.ebuild new file mode 100644 index 000000000..ded259731 --- /dev/null +++ b/sci-mathematics/freefem++/freefem++-2.23.1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools versionator flag-o-matic + +MY_PV=$(replace_version_separator 2 '-') + +DESCRIPTION="Solve PDEs using FEM on 2d domains" +HOMEPAGE="http://www.freefem.org/ff++/" +SRC_URI="http://www.freefem.org/ff%2B%2B/ftp/${PN}-${MY_PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples fltk mpi X" + +RDEPEND="sci-libs/fftw + virtual/cblas + virtual/lapack + sci-libs/umfpack + >=sci-libs/arpack-96-r2 + X? ( + x11-libs/libXpm + fltk? ( x11-libs/fltk ) + ) + mpi? ( virtual/mpi )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( virtual/latex-base media-gfx/imagemagick )" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + # acoptim.m4 forced -O2 removal + epatch "${FILESDIR}"/${PN}-acoptim.patch + eautoreconf +} + +src_compile() { + local myconf + + # Tested using mpich2, upstream built freefem++ with mpich and lam-mpi. + # So it should work, at least with this three MPI implementations. + if use mpi; then + if has_version sys-cluster/mpich2 ; then + myconf="${myconf} --with-mpi=mpicxx" + else + myconf="${myconf} --with-mpi=mpiCC" + fi + else + myconf="--without-mpi" + fi + + use fltk && append-cppflags $(fltk-config --cflags) + + econf \ + --disable-download \ + --disable-optim \ + --enable-generic \ + --with-blas="$(pkg-config --libs blas)" \ + --with-lapack="$(pkg-config --libs lapack)" \ + $(use_with fltk) \ + $(use_with X x) \ + ${myconf} \ + || die "econf failed" + + emake || die "emake failed" + + if use doc; then + emake documentation || die "emake documentation failed" + fi +} + +src_test() { + # This may depend on the used MPI implementation. It is needed + # with mpich2, but should not be needed with lam-mpi or mpich + # (if the system is configured correctly). + ewarn "Please check that your MPI root ring is on before running" + ewarn "the test phase. Failing to start it before that phase may" + ewarn "result in a failing emerge." + epause + emake -j1 check || die "check test failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + if use fltk; then + einfo "\"FreeFem++-ide\" is not intended for user use." + einfo "Use the \"FreeFem++-cs\" command to access the IDE." + einfo + fi + + insinto /usr/share/doc/${PF} + if use doc; then + doins DOC/freefem++doc.pdf || die + fi + + if use examples; then + einfo "Installing examples..." + + # Remove compiled examples: + emake clean || die "emake clean failed" + + einfo "Some of the installed examples assumes that the user has write" + einfo "permissions in the working directory and other will look for" + einfo "data files in the working directory. For this reason in order to" + einfo "run the examples it's better to temporary copy them somewhere" + einfo "in the user folder. For example to run the tutorial examples" + einfo "it's better to copy the entire examples++-tutorial folder into" + einfo "the user directory." + doins regtests.sh + rm -f examples*/Makefile* + doins -r examples* + fi +} diff --git a/sci-mathematics/freefem++/freefem++-2.23.2.ebuild b/sci-mathematics/freefem++/freefem++-2.23.2.ebuild new file mode 100644 index 000000000..ded259731 --- /dev/null +++ b/sci-mathematics/freefem++/freefem++-2.23.2.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools versionator flag-o-matic + +MY_PV=$(replace_version_separator 2 '-') + +DESCRIPTION="Solve PDEs using FEM on 2d domains" +HOMEPAGE="http://www.freefem.org/ff++/" +SRC_URI="http://www.freefem.org/ff%2B%2B/ftp/${PN}-${MY_PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples fltk mpi X" + +RDEPEND="sci-libs/fftw + virtual/cblas + virtual/lapack + sci-libs/umfpack + >=sci-libs/arpack-96-r2 + X? ( + x11-libs/libXpm + fltk? ( x11-libs/fltk ) + ) + mpi? ( virtual/mpi )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( virtual/latex-base media-gfx/imagemagick )" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + # acoptim.m4 forced -O2 removal + epatch "${FILESDIR}"/${PN}-acoptim.patch + eautoreconf +} + +src_compile() { + local myconf + + # Tested using mpich2, upstream built freefem++ with mpich and lam-mpi. + # So it should work, at least with this three MPI implementations. + if use mpi; then + if has_version sys-cluster/mpich2 ; then + myconf="${myconf} --with-mpi=mpicxx" + else + myconf="${myconf} --with-mpi=mpiCC" + fi + else + myconf="--without-mpi" + fi + + use fltk && append-cppflags $(fltk-config --cflags) + + econf \ + --disable-download \ + --disable-optim \ + --enable-generic \ + --with-blas="$(pkg-config --libs blas)" \ + --with-lapack="$(pkg-config --libs lapack)" \ + $(use_with fltk) \ + $(use_with X x) \ + ${myconf} \ + || die "econf failed" + + emake || die "emake failed" + + if use doc; then + emake documentation || die "emake documentation failed" + fi +} + +src_test() { + # This may depend on the used MPI implementation. It is needed + # with mpich2, but should not be needed with lam-mpi or mpich + # (if the system is configured correctly). + ewarn "Please check that your MPI root ring is on before running" + ewarn "the test phase. Failing to start it before that phase may" + ewarn "result in a failing emerge." + epause + emake -j1 check || die "check test failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + if use fltk; then + einfo "\"FreeFem++-ide\" is not intended for user use." + einfo "Use the \"FreeFem++-cs\" command to access the IDE." + einfo + fi + + insinto /usr/share/doc/${PF} + if use doc; then + doins DOC/freefem++doc.pdf || die + fi + + if use examples; then + einfo "Installing examples..." + + # Remove compiled examples: + emake clean || die "emake clean failed" + + einfo "Some of the installed examples assumes that the user has write" + einfo "permissions in the working directory and other will look for" + einfo "data files in the working directory. For this reason in order to" + einfo "run the examples it's better to temporary copy them somewhere" + einfo "in the user folder. For example to run the tutorial examples" + einfo "it's better to copy the entire examples++-tutorial folder into" + einfo "the user directory." + doins regtests.sh + rm -f examples*/Makefile* + doins -r examples* + fi +} diff --git a/sci-mathematics/freefem++/metadata.xml b/sci-mathematics/freefem++/metadata.xml new file mode 100644 index 000000000..a405992e2 --- /dev/null +++ b/sci-mathematics/freefem++/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-mathematics</herd> +<longdescription lang="en"> + FreeFem++ is an implementation of a language dedicated to the finite + element method. It enables you to solve Partial Differential Equations + (PDE) easily. +</longdescription> +</pkgmetadata> |