From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Gradl Subject: Re: [PATCH] gnu: add sparta-dsmc Date: Sat, 23 Apr 2016 01:47:18 -0500 Message-ID: <20160423064704.GA11097@serenity> References: <20160404205551.GB16062@serenity.ph.utexas.edu> <20160405082659.GB4775@jasmine> <20160405170456.GB4273@serenity.public.utexas.edu> <20160405172135.GA14293@debian-netbook> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="twz1s1Hj1O0rHoT0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atrLx-0008WO-Lq for guix-devel@gnu.org; Sat, 23 Apr 2016 02:47:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atrLt-0000gk-OL for guix-devel@gnu.org; Sat, 23 Apr 2016 02:47:41 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:50530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atrLt-0000gZ-Bf for guix-devel@gnu.org; Sat, 23 Apr 2016 02:47:37 -0400 Content-Disposition: inline In-Reply-To: <20160405172135.GA14293@debian-netbook> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Efraim Flashner Cc: guix-devel@gnu.org --twz1s1Hj1O0rHoT0 Content-Type: multipart/mixed; boundary="J4XPiPrVK1ev6Sgr" Content-Disposition: inline --J4XPiPrVK1ev6Sgr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 05, 2016 at 08:21:35PM +0300, Efraim Flashner wrote: > On Tue, Apr 05, 2016 at 12:04:56PM -0500, Lukas Gradl wrote: > > On Tue, Apr 05, 2016 at 04:26:59AM -0400, Leo Famulari wrote: > > > On Mon, Apr 04, 2016 at 03:55:51PM -0500, Lukas Gradl wrote: > > > > Hello Guix! > > > >=20 > > > > Attached is a patch to add the SPARTA Direct Simulation Monte Carlo > > > > Software. > > > >=20 > > > > There maybe is a problem with the source URL: The URL always points= to > > > > the latest version of the source tar ball which is constantly updat= ed > > > > and immediately released by upstream. This means that the hash of = the > > > > source tar ball available at this URL changes several times a month= =2E Is > > > > this acceptable or does anyone have an idea how this should be hand= led? > > >=20 > > > I assume you've looked for a more stable URL. Are there other distros > > > that have solved this problem? Can you contact the SPARTA developers = and > > > ask if there is a solution? > >=20 > > AFAIK this software is not packaged in any other distro. I am already > > in contact with the author of SPARTA, he provided the URL that I used in > > the patch. I explained the problem to him and I am waiting for his > > response. > >=20 > > Thank you! >=20 > Not just for this package but potentially for others, could we stick a > copy on archive.org with a date-stamp or something? Sorry for the long delay! My message to upstream is still unanswered, so I went ahead and uploaded the tar ball to archive.org. Attached is an updated patch. Thank you! >=20 > --=20 > Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7= =9D =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 > GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 > Confidentiality cannot be guaranteed on emails sent or received unencrypt= ed --J4XPiPrVK1ev6Sgr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-Add-sparta-dsmc.patch" Content-Transfer-Encoding: quoted-printable =46rom 751771dcb3f64b7ad5383906bbfa6e4b24d2c757 Mon Sep 17 00:00:00 2001 =46rom: Lukas Gradl Date: Sat, 23 Apr 2016 01:40:16 -0500 Subject: [PATCH] gnu: Add sparta-dsmc. * gnu/packages/maths.scm (sparta-dsmc): New variable. --- gnu/packages/maths.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 7ea4ca3..241a010 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2119,3 +2119,66 @@ are built. It can generate many different fractal t= ypes such as the Mandelbrot set.") (home-page "http://www.gnu.org/software/xaos/") (license license:gpl2+))) + + +(define-public sparta-dsmc + (package + (name "sparta-dsmc") + (version "20160331") + (source + (origin + (method url-fetch) + (uri + (string-append "https://archive.org/download/sparta-" + version ".tar/sparta-" version ".tar.gz")) + (sha256 + (base32 + "0w0sdiharqrw6x4msbq01havky15cq7ylkk2y6v59xyy7vnxpnss")))) + (build-system gnu-build-system) + (inputs `(("openmpi" ,openmpi) + ("libjpeg" ,libjpeg) + ("python" ,python-2))) + (arguments + `(#:tests? #f ; there is no "check" target nor any other tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'patch-generated-file-shebangs 'chdir-to-src + (lambda _ + (chdir "src"))) + (add-after 'chdir-to-src + 'patch-makefile-shell + (lambda _ + (substitute* (list "MAKE/Makefile.mpi" + "MAKE/Makefile.serial") + (("/bin/sh") (which "bash"))))) + (replace 'build + (lambda _ + (and + (zero? (system* "make" + (format #f "-j~a" (parallel-job-count)) + "mpi")) + (zero? (system* "make" + (format #f "-j~a" (parallel-job-count)) + "serial"))))) + (replace 'install + (lambda _ + (let* ((out (assoc-ref %outputs "out")) + (bin (string-append out "/bin")) + (doc (string-append out "/share/doc/sparta-dsmc")) + (examples (string-append doc "/examples"))) + (install-file "spa_mpi" bin) + (install-file "spa_serial" bin) + (copy-recursively "../examples" examples) + (copy-recursively "../doc" doc))))))) + (synopsis "Direct Simulation Monte Carlo (DSMC) simulator") + (description "SPARTA is a parallel DSMC code for performing +simulations of low-density gases in 2d or 3d. Particles advect +through a hierarchical Cartesian grid that overlays the simulation +box. The grid is used to group particles by grid cell for purposes of +performing collisions and chemistry. Physical objects with +triangulated surfaces can be embedded in the grid, creating cut and +split grid cells. The grid is also used to efficiently find +particle/surface collisions.") + (home-page "http://sparta.sandia.gov/") + (license license:gpl2))) --=20 2.7.4 --J4XPiPrVK1ev6Sgr-- --twz1s1Hj1O0rHoT0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXGxp2AAoJEFP7dyh+2DCRewcP/iuG/DnL4s9OTmw8Z+NWVXx8 Vfy3dQ9XG41cXPMy8wH8wKe7WpsthYPFOtgKBPqmqCg1KRzw8cfYtTFy5meR+McO kt9HIs1xeUBsMBwjG4DbZAa+oTOYEBE65sKRkm4kxyhZ6lHPjyZwW6dAMCR14vuB 6if42FkwO79Fl2jOkP4grsxIV2lu3ZOw0AVrEzpDriMSgO9Bt6Fle2EipejzfBDE f25QKljx49ZP3EWTTKqW0eCTX3dyKgX+rYvz3FwJ1m0zmQEPEzFgR1ncjtrJL7fb FSQX4URvCT4R28dbu3nfnjq6sBio2EgQK4XElQ4XidDAOohl5Xdzot0xMOKN4gJA VRVQHUixTl0dUXTccPMPKwpD/sWUZz1ar9/qFov/QaRDg5pm/wCVtXUEtl1jaZ4x 2BHT5VNbj1ke2rdp612eI0psG4QnRxjfbos6ilEi2FAdtsW63CNGbo/GcHkZ2AnC QDUcTxj5E+ClU8LvTM5VKt7L9Nn9LSbx6mefN3bIesO6/HaQAF/irpCQXE54TVYV i1A/Fd1PJ5tukB69MbRyoRAa2aAa/exINBh9bvd2k2RNjBx59XuSICOBYRasPLdK m1GkMO4/E0oAnQlhwa757sxiLnT7MZodsmM3OcJQnEUMWUF7dHP/FScF88L/C7mv cyD47cfzKZhdSPCZt30W =ve+A -----END PGP SIGNATURE----- --twz1s1Hj1O0rHoT0--