From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO7WP-000522-UH for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dO7WN-0003CM-9v for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59007) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dO7WN-0003CH-6j for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dO7WN-000432-1U for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:03 -0400 Subject: [bug#27344] [PATCH v2 03/12] gnu: Add mpb. Resent-Message-ID: From: Theodoros Foradis Date: Thu, 22 Jun 2017 22:09:56 +0300 Message-Id: <20170622191005.25422-3-theodoros.for@openmailbox.org> In-Reply-To: <20170622191005.25422-1-theodoros.for@openmailbox.org> References: <20170622191005.25422-1-theodoros.for@openmailbox.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27344@debbugs.gnu.org * gnu/packages/engineering.scm (mpb): New variable. --- gnu/packages/engineering.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a9b41757d..8dd6fba13 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -64,6 +64,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) #:use-module (gnu packages swig) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) @@ -905,3 +906,44 @@ determines the frequencies, decay constants, amplitudes, and phases of those sin "Libctl is a Guile-based library implementing flexible control files for scientific simulations.") (license license:gpl2+))) + +(define-public mpb + (package + (name "mpb") + (version "1.5") + (source (origin + (method url-fetch) + (uri + (string-append + "http://ab-initio.mit.edu/mpb/mpb-" + version ".tar.gz")) + (sha256 + (base32 + "1mqb2d8jq957nksayjygq58iy8i42vjryzg9iy5fpfay31wzxsix")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list (string-append "--with-libctl=" + (assoc-ref %build-inputs "libctl") + "/share/libctl")))) + (native-inputs + `(("fortran" ,gfortran) + ("pkg-config" ,pkg-config) + ("swig" ,swig))) + (inputs + `(("fftw" ,fftw) + ("gsl" ,gsl) + ("guile" ,guile-2.2) + ("hdf5" ,hdf5) + ("lapack" ,lapack) + ("libctl" ,guile-libctl) + ("readline" ,readline) + ("zlib" ,zlib))) + (home-page "http://ab-initio.mit.edu/wiki/index.php/MIT_Photonic_Bands") + (synopsis "Computes band structures and electromagnetic modes of dielectric +structures") + (description + "MIT Photonic-Bands (MPB) computes definite-frequency eigenstates (harmonic modes) +of Maxwell's equations in periodic dielectric structures for arbitrary wavevectors, using +fully-vectorial and three-dimensional methods.") + (license license:gpl2+))) -- 2.13.1