summaryrefslogtreecommitdiff
path: root/sci-physics/meep
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/meep')
-rw-r--r--sci-physics/meep/Manifest7
-rw-r--r--sci-physics/meep/files/meep-1.2-no-auto-mpb.patch16
-rw-r--r--sci-physics/meep/files/meep-1.2-pc-no-ldflags.patch12
-rw-r--r--sci-physics/meep/meep-1.3.ebuild58
-rw-r--r--sci-physics/meep/metadata.xml14
5 files changed, 107 insertions, 0 deletions
diff --git a/sci-physics/meep/Manifest b/sci-physics/meep/Manifest
new file mode 100644
index 000000000000..6257ee47862c
--- /dev/null
+++ b/sci-physics/meep/Manifest
@@ -0,0 +1,7 @@
+AUX meep-1.2-no-auto-mpb.patch 652 SHA256 b898487ea962ed071db15d8212ce550e995603992b94a124694a83403fa24e59 SHA512 4a25e919ac828920fb1ad2395acb897e0b9d9123fa55ee3ed33a4c07e79d250602cb496435482710315c077d3d5408d0192d629afd70dca64aedc7a649c7091f WHIRLPOOL c3f87de28b30ce3491c17db9297e1776215caf5ee9c017b2b8fbe476fa27d2cf886691fe41cab13ab321bd3ebafce4345bdf45dfc4aea91e2e03366ceecd9d65
+AUX meep-1.2-pc-no-ldflags.patch 503 SHA256 04c8cc58833a3b0abdf4014cc561d4e6dd1099c9662ac786966b3f363b605c17 SHA512 2e8602f21814f4edef4b0572180b0b4f41f91a23d7e2576da6a2c62d602e55e9a70b5c7124cb60b7ea4d2f6debd10db3a30aa451d4b6d82eed7a7d9655a26a82 WHIRLPOOL 90140a3646ee9958b3fe076d858cafae8b946fcb1c625ff97640ebc0d8795e917164f30d1140901d0a0ec2ad4c9de8ba1b27decb1ad21a06b09c0c1d1f1e246e
+DIST meep-1.3.tar.gz 740890 SHA256 564c1ff1b413a3487cf81048a45deabfdac4243a1a37ce743f4fcf0c055fd438 SHA512 4ad8d68f27d9971fe6dd4b8440f78d5b141fe747a80c50da55ecbc56a5beb0c2d31441fb46b54cac3c62d4cb34cb1ce6819c06bd2c54bc35f129ba683dc84aea WHIRLPOOL cc7a5ae88a7c3ccaabd47472ce706465b38d35598288c7d35c237d34ce691d021a5f1ab3c6fe754a0f039ed9cb0ea04cfe883555c2377f7ee2e34f2ab8424944
+EBUILD meep-1.3.ebuild 1137 SHA256 d85818be5f47ad3046050764e9b612ea87b4ab0ecde991d3a262ce727dbcca12 SHA512 c4bfee913eb8d32b0e5f67ffa87a27eff18292dcf3302b29fe1531865e02b564e8c8f43bdc4f4d8d357275238f827d82c4102fc5e68726a9ff67f7ea93ad3da9 WHIRLPOOL dd6fb20e20219836da225d3bdb58c22ad5439bf32cddbb08340cbdabe3bcd06d44d236523126e45474cfc55ae14a5420eb5840a87e4db413d0f906674e72b3b1
+MISC ChangeLog 3731 SHA256 2395d0363bcd9d857cdc7d45ac1a31994d93b8effef51db16bca5c8ada4f4eb1 SHA512 d05bda9d65a7cbfae5f486b4da096217b8dfa66c70256f2bd27ecabe2e9b83a671d4fe28932cc1355d2aadbdd3f91d2f9c8df69ba47b4de0eb8f935d9710388d WHIRLPOOL 9044b24c18b3453464615e38162a98370854039dd648b68958e3c929ef94ecd7bbef8f89d80e0e6369e92bd0aa580701285faf4738a9b33dd9fad03d81f70373
+MISC ChangeLog-2015 3125 SHA256 1615da8f08123731df3c61fec8e879e5767c235956ae78d489028c0108c01b50 SHA512 201298630a8076abd18f288898ea3f7ba179aca1af7b4d0f0bfd599ddcd9baa3aec3253db105247655b5cc0fe77e9f3f531ca03718b58b9f40b5e7d394ed7718 WHIRLPOOL 31d16921d11f974c772fb2b56c078d79ca0cf7b158427a034de9c23fc6d8b20d45a4ceacd844f4569df4c04e38faddf387320477762ec1e40f18c65baab8e7c0
+MISC metadata.xml 525 SHA256 c955cfd850a105de56c74d98c2f8fa3ca2f6356c0a52e51e6f53d1cf2c94403a SHA512 1d6f8f93e9ad60102daeabf5a6017f0f3724b2bfa2ecfca30e6e2069bb624e5067a8743b8839996b3eadc627f431b84b911b2ea4de9a5a97ee30921e158318cd WHIRLPOOL 321b36ca8259740823c0934c42bfdbe2a6eff7a66e21f96986500e88d7ec30631edcd09c7feb068409b2e7bf61b94caf93a3cf868b2791e2de8b0ab117be78a6
diff --git a/sci-physics/meep/files/meep-1.2-no-auto-mpb.patch b/sci-physics/meep/files/meep-1.2-no-auto-mpb.patch
new file mode 100644
index 000000000000..8c287f208d65
--- /dev/null
+++ b/sci-physics/meep/files/meep-1.2-no-auto-mpb.patch
@@ -0,0 +1,16 @@
+diff -Nur meep-1.2.orig/configure.ac meep-1.2/configure.ac
+--- meep-1.2.orig/configure.ac 2012-08-14 21:52:13.000000000 +0100
++++ meep-1.2/configure.ac 2012-08-14 22:00:55.000000000 +0100
+@@ -161,8 +161,10 @@
+
+ ###########################################################################
+ # MPB library
+-
+-AC_CHECK_HEADER(mpb.h, [have_mpb=maybe], [have_mpb=no])
++AC_ARG_WITH(mpb, [AC_HELP_STRING([--without-mpb],[do not build with mpb])], ok=$withval, ok=yes)
++if test "$ok" = "yes"; then
++ AC_CHECK_HEADER(mpb.h, [have_mpb=maybe], [have_mpb=no])
++fi
+
+ if test $have_mpb = maybe; then
+ if test "x$acx_lapack_ok" = x -a "$have_harminv" = xno; then
diff --git a/sci-physics/meep/files/meep-1.2-pc-no-ldflags.patch b/sci-physics/meep/files/meep-1.2-pc-no-ldflags.patch
new file mode 100644
index 000000000000..d7b2f72eaffc
--- /dev/null
+++ b/sci-physics/meep/files/meep-1.2-pc-no-ldflags.patch
@@ -0,0 +1,12 @@
+diff -Nur meep-1.2.orig/configure.ac meep-1.2/configure.ac
+--- meep-1.2.orig/configure.ac 2012-08-14 21:52:13.000000000 +0100
++++ meep-1.2/configure.ac 2012-08-14 21:54:49.000000000 +0100
+@@ -224,7 +224,7 @@
+ ##############################################################################
+ # Libraries and flags (other than -lmeep) required to link Meep:
+
+-MEEPLIBS="$LDFLAGS $LIBS"
++MEEPLIBS="$LIBS"
+ AC_SUBST(MEEPLIBS)
+
+ ##############################################################################
diff --git a/sci-physics/meep/meep-1.3.ebuild b/sci-physics/meep/meep-1.3.ebuild
new file mode 100644
index 000000000000..6cc3d1495390
--- /dev/null
+++ b/sci-physics/meep/meep-1.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Simulation software to model electromagnetic systems"
+HOMEPAGE="http://ab-initio.mit.edu/meep/"
+SRC_URI="http://ab-initio.mit.edu/meep/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples hdf5 guile mpi"
+
+RDEPEND="
+ sci-libs/fftw:3.0=
+ sci-libs/gsl:=
+ sci-physics/harminv
+ guile? ( >=sci-libs/libctl-3.2 )
+ hdf5? ( sci-libs/hdf5:= )
+ mpi? ( virtual/mpi )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.2-pc-no-ldflags.patch
+ "${FILESDIR}"/${PN}-1.2-no-auto-mpb.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with mpi) \
+ $(use_with hdf5) \
+ $(use_with guile libctl)
+}
+
+src_test() {
+ # pml test buggy with optimization on
+ # http://thread.gmane.org/gmane.comp.science.electromagnetism.meep.general/4579
+ emake -C tests pml CXXFLAGS="-O0"
+ emake check
+}
+
+src_install() {
+ default
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/sci-physics/meep/metadata.xml b/sci-physics/meep/metadata.xml
new file mode 100644
index 000000000000..a6fba91cb5cc
--- /dev/null
+++ b/sci-physics/meep/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-physics@gentoo.org</email>
+ <name>Gentoo Physics Project</name>
+</maintainer>
+<longdescription lang="en">
+ The MIT Electromagnetic Equation Propagation (MEEP) is a
+ finite-difference time-domain (FDTD) simulation software package
+ developed at MIT to model electromagnetic systems, along with the MPB
+ eigenmode package.
+</longdescription>
+</pkgmetadata>