summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/mpb/Manifest1
-rw-r--r--sci-physics/mpb/files/mpb-1.4.2-autotools.patch262
-rw-r--r--sci-physics/mpb/files/mpb-1.4.2-guile18.patch12
-rw-r--r--sci-physics/mpb/files/mpb-1.4.2-headers.patch11
-rw-r--r--sci-physics/mpb/metadata.xml23
-rw-r--r--sci-physics/mpb/mpb-1.4.2-r2.ebuild127
6 files changed, 0 insertions, 436 deletions
diff --git a/sci-physics/mpb/Manifest b/sci-physics/mpb/Manifest
deleted file mode 100644
index 5f52a99d8cbd..000000000000
--- a/sci-physics/mpb/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST mpb-1.4.2.tar.gz 686488 SHA256 e44c0720a5969a879fb93e48f6098d4d87e2f99d6ef49711d822f4c2249ccd61 SHA512 4151612b8868b324353556f46aeccdce2726d8938ab8cf7404c36da68e90ec0de1799d4e23b2d5bbe5853d0c0329ba0ee1a2fdb2745aed43c34759084b62fbac WHIRLPOOL e0b256c06bdd2c7479723c0db6c434e645b6fbf1a052ebc2971203902f9bf09336b4bf69ec8c8f1cd9b4952672a28290b4ff66c44f56feae135d9cbf07284473
diff --git a/sci-physics/mpb/files/mpb-1.4.2-autotools.patch b/sci-physics/mpb/files/mpb-1.4.2-autotools.patch
deleted file mode 100644
index b6faf07d2bcf..000000000000
--- a/sci-physics/mpb/files/mpb-1.4.2-autotools.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-diff -Nur mpb-1.4.2.orig/configure.ac mpb-1.4.2/configure.ac
---- mpb-1.4.2.orig/configure.ac 2003-03-04 02:38:41.000000000 +0000
-+++ mpb-1.4.2/configure.ac 2008-11-25 17:31:12.000000000 +0000
-@@ -6,15 +6,8 @@
- MPB_VERSION=1.4.2
- AC_SUBST(MPB_VERSION)
-
--AC_MSG_CHECKING([for vendor f77 to be used instead of g77])
--AC_MSG_RESULT()
--AC_CHECK_PROGS(F77, f77 xlf77 cf77 fort77 f90 xlf90)
- AC_PROG_F77
--
--# Get C compiler.
--AC_MSG_CHECKING([for vendor cc to be used instead of gcc])
--AC_MSG_RESULT()
--AC_CHECK_PROGS(CC, cc xlc) # prefer vendor cc, to stay in sync with Fortran
-+AC_F77_WRAPPERS
- AC_PROG_CC
-
- # Checks for programs.
-@@ -79,12 +72,6 @@
- echo "*********************** HERMITIAN EPS. ***********************"
- fi
-
--# Add lots of compiler warnings to check for if we are using gcc:
--# (The variable $GCC is set to "yes" by AC_PROG_CC if we are using gcc.)
--if test "$GCC" = "yes"; then
-- CFLAGS="$CFLAGS -Wall -W -Wbad-function-cast -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
--fi
--
- ##############################################################################
- # Checks for libraries:
- ##############################################################################
-@@ -203,6 +190,10 @@
- # how to run mpb-mpi in general
- fi
-
-+# Checks for header files.
-+AC_HEADER_STDC
-+AC_CHECK_HEADERS(unistd.h getopt.h)
-+
- ##############################################################################
- # Check for HDF5 library
- AC_ARG_WITH(hdf5, [AC_HELP_STRING([--without-hdf5],[do not use HDF5 output])], ok=$withval, ok=yes)
-@@ -349,9 +340,7 @@
- ]], [AC_MSG_RESULT(ok)], [AC_MSG_ERROR([libctl version ${LIBCTL_MAJOR}.${LIBCTL_MINOR}.${LIBCTL_BUGFIX} or later is required])])
-
- ##############################################################################
--# Checks for header files.
--AC_HEADER_STDC
--AC_CHECK_HEADERS(unistd.h getopt.h)
-+
-
- # Checks for typedefs, structures, and compiler characteristics.
- AC_C_CONST
-diff -Nur mpb-1.4.2.orig/Makefile.in mpb-1.4.2/Makefile.in
---- mpb-1.4.2.orig/Makefile.in 2002-01-18 22:52:41.000000000 +0000
-+++ mpb-1.4.2/Makefile.in 2008-11-25 17:31:12.000000000 +0000
-@@ -2,6 +2,9 @@
-
- SHELL = @SHELL@
-
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
- CC = @CC@
- CFLAGS = @CFLAGS@
- CPPFLAGS = @CPPFLAGS@
-diff -Nur mpb-1.4.2.orig/mpb-ctl/Makefile.in mpb-1.4.2/mpb-ctl/Makefile.in
---- mpb-1.4.2.orig/mpb-ctl/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/mpb-ctl/Makefile.in 2008-11-25 18:23:20.000000000 +0000
-@@ -13,6 +13,12 @@
-
- SHELL = @SHELL@
-
-+mandir = @mandir@
-+
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-+
- ##############################################################################
-
- # Makefile.in for programs using libctl (assumes that autoconf is
-@@ -37,8 +43,8 @@
- ../src/util/util.a
-
- MY_LDFLAGS = # extra -L flags go here
--MY_CPPFLAGS = -I. -I../src/util -I../src/matrices -I../src/matrixio \
-- -I../src/maxwell
-+MY_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I$(top_srcdir)/src/matrixio \
-+ -I$(top_srcdir)/src/maxwell
- MY_DEFS = -DHAVE_CTL_HOOKS=1 -DHAVE_CTL_EXPORT_HOOK=1
-
- # The following variables should be detected and set by autoconf:
-@@ -134,11 +140,11 @@
-
- install-mpb: $(PROGRAM_NAME)
- $(INSTALL) -d $(prefix)/bin
-- $(INSTALL) -m 0755 -s .$(PROGRAM_NAME) $(prefix)/bin/`echo $(PROGRAM_NAME)|sed '$(transform)'`
-+ $(INSTALL) -m 0755 .$(PROGRAM_NAME) $(prefix)/bin/`echo $(PROGRAM_NAME)|sed '$(transform)'`
- $(INSTALL) -d $(prefix)/share/libctl/specs
- $(INSTALL) -m 0644 $(SPECIFICATION_FILE) $(prefix)/share/libctl/specs
- $(INSTALL) -d $(mandir)/man1
-- $(INSTALL) -m 0644 $(PROGRAM_NAME).1 $(mandir)/man1
-+ $(INSTALL) -m 0644 $(srcdir)/$(PROGRAM_NAME).1 $(mandir)/man1
-
- mpb-split-tmp:
- rm -f mpb-split-tmp
-@@ -149,7 +155,7 @@
- mpb_name=`echo mpb | sed '$(transform)'`; \
- $(INSTALL) -m 0755 mpb-split-tmp $(prefix)/bin/$${mpb_name}-split
- $(INSTALL) -d $(mandir)/man1
-- $(INSTALL) -m 0644 mpb-split.1 $(mandir)/man1
-+ $(INSTALL) -m 0644 $(srcdir)/mpb-split.1 $(mandir)/man1
-
- clean:
- rm -f $(ALL_OBJECTS) ctl-io.c ctl-io.h main.c geom.c \
-diff -Nur mpb-1.4.2.orig/src/matrices/Makefile.in mpb-1.4.2/src/matrices/Makefile.in
---- mpb-1.4.2.orig/src/matrices/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/src/matrices/Makefile.in 2008-11-25 17:31:12.000000000 +0000
-@@ -2,9 +2,11 @@
-
- SHELL = @SHELL@
-
--CC = @CC@
--CFLAGS = @CFLAGS@
--CPPFLAGS = -I../util -I. @CPPFLAGS@
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-+
-+CPPFLAGS = -I$(top_srcdir)/src/util -I$(srcdir) -I. @CPPFLAGS@
- DEFS = @DEFS@
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-diff -Nur mpb-1.4.2.orig/src/matrixio/Makefile.in mpb-1.4.2/src/matrixio/Makefile.in
---- mpb-1.4.2.orig/src/matrixio/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/src/matrixio/Makefile.in 2008-11-25 17:31:12.000000000 +0000
-@@ -2,9 +2,11 @@
-
- SHELL = @SHELL@
-
--CC = @CC@
--CFLAGS = @CFLAGS@
--CPPFLAGS = -I../util -I../matrices -I. @CPPFLAGS@
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-+
-+CPPFLAGS = -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I$(srcdir) -I. @CPPFLAGS@
- DEFS = @DEFS@
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-diff -Nur mpb-1.4.2.orig/src/maxwell/Makefile.in mpb-1.4.2/src/maxwell/Makefile.in
---- mpb-1.4.2.orig/src/maxwell/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/src/maxwell/Makefile.in 2008-11-25 17:31:12.000000000 +0000
-@@ -2,9 +2,11 @@
-
- SHELL = @SHELL@
-
--CC = @CC@
--CFLAGS = @CFLAGS@
--CPPFLAGS = -I../util -I../matrices @CPPFLAGS@
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-+
-+CPPFLAGS = -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I. @CPPFLAGS@
- DEFS = @DEFS@
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-diff -Nur mpb-1.4.2.orig/src/util/Makefile.in mpb-1.4.2/src/util/Makefile.in
---- mpb-1.4.2.orig/src/util/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/src/util/Makefile.in 2008-11-25 17:31:12.000000000 +0000
-@@ -2,9 +2,11 @@
-
- SHELL = @SHELL@
-
--CC = @CC@
--CFLAGS = @CFLAGS@
--CPPFLAGS = -I. @CPPFLAGS@
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-+
-+CPPFLAGS = -I$(top_srcdir) -I. @CPPFLAGS@
- DEFS = @DEFS@
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-diff -Nur mpb-1.4.2.orig/tests/Makefile.in mpb-1.4.2/tests/Makefile.in
---- mpb-1.4.2.orig/tests/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/tests/Makefile.in 2008-11-25 17:31:58.000000000 +0000
-@@ -2,12 +2,14 @@
-
- SHELL = @SHELL@
-
--CC = @CC@
--CFLAGS = @CFLAGS@
--CPPFLAGS = -I../src/util -I../src/matrices -I../src/maxwell @CPPFLAGS@
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-+
-+CPPFLAGS = -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I$(top_srcdir)/src/maxwell -I. @CPPFLAGS@
- DEFS = @DEFS@
--LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-+LDFLAGS = @LDFLAGS@
- RANLIB = @RANLIB@
- @SET_MAKE@
-
-@@ -15,11 +17,11 @@
- ../src/matrices/matrices.a \
- ../src/util/util.a
-
--all: blastest eigs_test maxwell_test malloctest normal_vectors
-+all:
-
- libs:
-
--check: all
-+check: blastest eigs_test maxwell_test malloctest normal_vectors
- rm -f blastest.out.test
- ./blastest | sed 's/\-0\.000\([ ,)]\)/ 0.000\1/g' | sed 's/\-0\.000$$/ 0.000/g' > blastest.out.test
- diff blastest.@SCALAR_TYPE@.out blastest.out.test
-diff -Nur mpb-1.4.2.orig/utils/Makefile.in mpb-1.4.2/utils/Makefile.in
---- mpb-1.4.2.orig/utils/Makefile.in 2002-09-14 23:20:55.000000000 +0100
-+++ mpb-1.4.2/utils/Makefile.in 2008-11-25 18:23:46.000000000 +0000
-@@ -1,13 +1,16 @@
- # Variables substituted by the autoconf configure script:
-
- SHELL = @SHELL@
-+mandir = @mandir@
-+
-+srcdir = @srcdir@
-+top_srcdir = @top_srcdir@
-+VPATH = @srcdir@
-
--CC = @CC@
--CFLAGS = @CFLAGS@
--CPPFLAGS = -I../src/util -I../src/matrices -I../src/matrixio @CPPFLAGS@
-+CPPFLAGS = -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I$(top_srcdir)/src/matrixio -I. @CPPFLAGS@
- DEFS = @DEFS@ -DMPB_VERSION='"'"@MPB_VERSION@"'"'
--LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-+LDFLAGS=@LDFLAGS@
- RANLIB = @RANLIB@
- @SET_MAKE@
-
-@@ -36,9 +39,9 @@
-
- install-mpb-data: mpb-data
- $(INSTALL) -d $(prefix)/bin
-- $(INSTALL) -m 0755 -s mpb-data $(prefix)/bin/`echo mpb-data|sed '$(transform)'`
-+ $(INSTALL) -m 0755 mpb-data $(prefix)/bin/`echo mpb-data|sed '$(transform)'`
- $(INSTALL) -d $(mandir)/man1
-- $(INSTALL) -m 0644 mpb-data.1 $(mandir)/man1
-+ $(INSTALL) -m 0644 $(srcdir)/mpb-data.1 $(mandir)/man1
-
- clean:
- rm -f mpb-data mpb-data.o core
diff --git a/sci-physics/mpb/files/mpb-1.4.2-guile18.patch b/sci-physics/mpb/files/mpb-1.4.2-guile18.patch
deleted file mode 100644
index 9cb73a099b8b..000000000000
--- a/sci-physics/mpb/files/mpb-1.4.2-guile18.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nur mpb-1.4.2.orig/mpb-ctl/field-smob.c mpb-1.4.2/mpb-ctl/field-smob.c
---- mpb-1.4.2.orig/mpb-ctl/field-smob.c 2012-08-07 20:56:24.538452994 -0700
-+++ mpb-1.4.2/mpb-ctl/field-smob.c 2012-08-07 20:56:43.713557380 -0700
-@@ -157,7 +157,7 @@
- boolean cur_fieldp(SCM obj)
- {
- if (SCM_NIMP(obj) && SCM_SYMBOLP(obj)) {
-- char *s = gh_symbol2newstr(obj, NULL);
-+ char *s = gh_symbol2newstr(obj);
- int ret = !strcmp(s, "cur-field");
- free(s);
- return ret;
diff --git a/sci-physics/mpb/files/mpb-1.4.2-headers.patch b/sci-physics/mpb/files/mpb-1.4.2-headers.patch
deleted file mode 100644
index 937e5fc373d4..000000000000
--- a/sci-physics/mpb/files/mpb-1.4.2-headers.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Nur mpb-1.4.2.orig/mpb-ctl/matrix-smob.c mpb-1.4.2/mpb-ctl/matrix-smob.c
---- mpb-1.4.2.orig/mpb-ctl/matrix-smob.c 2002-09-13 19:27:35.000000000 +0100
-+++ mpb-1.4.2/mpb-ctl/matrix-smob.c 2008-11-25 18:20:11.000000000 +0000
-@@ -17,6 +17,7 @@
-
- #include <stdio.h>
- #include <stdlib.h>
-+#include <math.h>
-
- #include "../src/config.h"
-
diff --git a/sci-physics/mpb/metadata.xml b/sci-physics/mpb/metadata.xml
deleted file mode 100644
index 706eced531c0..000000000000
--- a/sci-physics/mpb/metadata.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?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 Photonic-Bands (MPB) package is a program for computing
- the band structures (dispersion relations) and electromagnetic modes of
- periodic dielectric structures, on both serial and parallel computers. It was
- developed by Steven G. Johnson at MIT in the Joannopoulos Ab Initio Physics
- group.
- This program computes definite-frequency eigenstates of Maxwell's
- equations in periodic dielectric structures for arbitrary wavevectors, using
- fully-vectorial and three-dimensional methods. It is especially
- designed for the study of photonic crystals (a.k.a. photonic
- band-gap materials), but is also applicable to many other problems
- in optics, such as waveguides and resonator systems.
- (For example, it can solve for the modes of waveguides with arbitrary
- cross-sections.)
-</longdescription>
-</pkgmetadata>
diff --git a/sci-physics/mpb/mpb-1.4.2-r2.ebuild b/sci-physics/mpb/mpb-1.4.2-r2.ebuild
deleted file mode 100644
index 7eb255b57e63..000000000000
--- a/sci-physics/mpb/mpb-1.4.2-r2.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic toolchain-funcs
-
-DESCRIPTION="Photonic band structure program"
-SRC_URI="http://ab-initio.mit.edu/mpb/${P}.tar.gz"
-HOMEPAGE="http://ab-initio.mit.edu/mpb/"
-
-LICENSE="GPL-2"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples hdf5 mpi"
-
-SLOT="0"
-
-RDEPEND="virtual/lapack
- dev-scheme/guile
- sci-libs/libctl
- sci-libs/fftw:2.1[mpi?]
- sys-libs/readline
- hdf5? ( sci-libs/hdf5 )
- mpi? ( virtual/mpi )"
-
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${P}-autotools.patch \
- "${FILESDIR}"/${P}-guile18.patch \
- "${FILESDIR}"/${P}-headers.patch
- cd "${S}"
- eautoreconf
- # version with inversion symmetry (mpbi).
- cp -r "${S}" "${S}_inv" || die
- # version with hermitian eps (mpbh).
- cp -r "${S}" "${S}_herm" || die
- # mpi versions (mpb-mpi).
- if use mpi; then
- cp -r "${S}" "${S}_mpi" || die
- cp -r "${S}" "${S}_inv_mpi" || die
- cp -r "${S}" "${S}_herm_mpi" || die
- fi
- tc-export CC
-}
-
-src_configure() {
- # enable legacy API for hdf-1.8
- use hdf5 && append-cflags -DH5_USE_16_API
- #
- local myconf=(
- --with-libctl="${EPREFIX}/usr/share/libctl"
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
- --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
- $(use_with hdf5)
- )
-
- econf "${myconf[@]}"
-
- cd "${S}_inv"
- econf "${myconf[@]}" \
- --with-inv-symmetry
-
- cd "${S}_herm"
- econf "${myconf[@]}" \
- --with-hermitian-eps
-
- if use mpi; then
- cd "${S}_mpi"
- econf "${myconf[@]}" \
- --with-mpi
- cd "${S}_inv_mpi"
- econf "${myconf[@]}" \
- --with-inv-symmetry \
- --with-mpi
- cd "${S}_herm_mpi"
- econf "${myconf[@]}" \
- --with-hermitian-eps \
- --with-mpi \
- CC=mpicc
- fi
-}
-
-src_compile() {
- local d
- for d in . _inv _herm; do
- cd "${S}${d}"
- emake -C mpb-ctl ctl-io.c
- emake
- done
- if use mpi; then
- for d in . _inv _herm; do
- cd "${S}${d}_mpi"
- emake -C mpb-ctl ctl-io.c CC=mpicc
- emake CC=mpicc LD=mpicc
- done
- fi
-}
-
-src_install() {
- einstall
- dodoc README NEWS AUTHORS COPYRIGHT ChangeLog TODO
- use doc && dohtml doc/*
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r mpb-ctl/examples
- fi
-
- newbin "${S}_inv"/mpb-ctl/.mpb mpbi
- newbin "${S}_herm"/mpb-ctl/.mpb mpbh
-
- einfo "Several versions of mpb have been installed:"
- einfo "mpb : regular version"
- einfo "mpbi: configured for inversion symmetry"
- einfo "mpbh: configured for hermitian epsilon"
- if use mpi; then
- newbin "${S}_mpi"/mpb-ctl/.mpb mpb-mpi
- newbin "${S}_inv_mpi"/mpb-ctl/.mpb mpbh-mpi
- newbin "${S}_herm_mpi"/mpb-ctl/.mpb mpbi-mpi
- einfo "mpb-mpi : regular version with mpi"
- einfo "mpbi-mpi: configured for inversion symmetry with mpi"
- einfo "mpbh-mpi: configured for hermitian epsilon with mpi"
- fi
-}