summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-physics/meep
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-physics/meep')
-rw-r--r--sci-physics/meep/Manifest2
-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.1.1.ebuild46
-rw-r--r--sci-physics/meep/meep-1.2.ebuild60
-rw-r--r--sci-physics/meep/metadata.xml14
6 files changed, 150 insertions, 0 deletions
diff --git a/sci-physics/meep/Manifest b/sci-physics/meep/Manifest
new file mode 100644
index 000000000000..c31932049131
--- /dev/null
+++ b/sci-physics/meep/Manifest
@@ -0,0 +1,2 @@
+DIST meep-1.1.1.tar.gz 751244 SHA256 7a97b5555da1f9ea2ec6eed5c45bd97bcd6ddbd54bdfc181f46c696dffc169f2 SHA512 cc081b7c63dc4ecda600dd5f55b3833f25fcfd1c1fded0af3a9bbd0471e36f0e54045a78ea52c99ca8aa3beccbe8e6e8afccbbadf869cd5b926a765b0c32618a WHIRLPOOL 2a894c63cb5bf4e907cc3da90ac3c5ff53f181b1e2d9695876806b3b67cb0da5fbc239033ffc33f84d1510bb5851910b33ead9b49dc769ce39e6fd420d990f78
+DIST meep-1.2.tar.gz 807522 SHA256 2734737b8053a45942bc1a50933d63b6fd18c7dc3cf33e92e0815ece93138942 SHA512 f7b25183491881d59653ba5bc727a2b4f5deb126d515ff7ed5df7a1f9d31a5161b720348e65f45b9c76004be44714c606c4b8063f855b5cc97ff7757bd5a5656 WHIRLPOOL 54940326d8f304a57c2dd69c411ef394f44cd2c57367f16a4a0dd6d3fa6df0ee01e0b0081048b4ec3fd8eff404e76507d6dea5db1b9b975096a40d34d1595080
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.1.1.ebuild b/sci-physics/meep/meep-1.1.1.ebuild
new file mode 100644
index 000000000000..4edfc1f664e7
--- /dev/null
+++ b/sci-physics/meep/meep-1.1.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+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"
+IUSE="examples hdf5 guile mpi"
+
+DEPEND="sci-libs/fftw
+ sci-libs/gsl
+ sci-physics/harminv
+ guile? ( >=sci-libs/libctl-3.0.3 )
+ hdf5? ( sci-libs/hdf5 )
+ mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_with mpi) \
+ $(use_with hdf5) \
+ $(use_with guile libctl)
+}
+
+src_test() {
+ # bug #423247
+ emake pml -C tests CXXFLAGS=-O0 || die
+ emake check || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+ dodoc AUTHORS NEWS README TODO
+ insinto /usr/share/doc/${PF}
+ if use examples; then
+ doins -r examples || die "install examples failed"
+ fi
+}
diff --git a/sci-physics/meep/meep-1.2.ebuild b/sci-physics/meep/meep-1.2.ebuild
new file mode 100644
index 000000000000..b4b57f0a2930
--- /dev/null
+++ b/sci-physics/meep/meep-1.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils
+
+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 mpb mpi"
+
+RDEPEND="
+ sci-libs/fftw
+ sci-libs/gsl
+ sci-physics/harminv
+ guile? ( >=sci-libs/libctl-3.2 )
+ hdf5? ( sci-libs/hdf5 )
+ mpb? ( sci-physics/mpb )
+ mpi? ( virtual/mpi )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-pc-no-ldflags.patch
+ "${FILESDIR}"/${P}-no-auto-mpb.patch
+)
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with mpb)
+ $(use_with mpi)
+ $(use_with hdf5)
+ $(use_with guile libctl)
+ )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ # pml test buggy with optimization on
+ # http://thread.gmane.org/gmane.comp.science.electromagnetism.meep.general/4579
+ pushd ${AUTOTOOLS_BUILD_DIR} > /dev/null
+ emake -C tests pml CXXFLAGS="-O0"
+ emake check
+ popd > /dev/null
+}
+
+src_install() {
+ autotools-utils_src_install
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r examples/*.ctl
+ fi
+}
diff --git a/sci-physics/meep/metadata.xml b/sci-physics/meep/metadata.xml
new file mode 100644
index 000000000000..17865fb063ef
--- /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>
+<herd>sci-physics</herd>
+<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>
+<use>
+ <flag name='mpb'>Enable build against <pkg>sci-physics/mpb</pkg></flag>
+</use>
+</pkgmetadata>