summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2020-02-10 03:44:00 -0600
committerGitHub <noreply@github.com>2020-02-10 10:44:00 +0100
commitbd442e884a4ab240b8e6a96ca2096043c18a7652 (patch)
tree3d47556db883a7c588936f0b690871ba431a66e3 /var
parentad914c28d7e5a98b1d9548624ae0a0031c91c7e5 (diff)
downloadspack-bd442e884a4ab240b8e6a96ca2096043c18a7652.tar.gz
spack-bd442e884a4ab240b8e6a96ca2096043c18a7652.tar.bz2
spack-bd442e884a4ab240b8e6a96ca2096043c18a7652.tar.xz
spack-bd442e884a4ab240b8e6a96ca2096043c18a7652.zip
New package: r-imager (#14866)
This PR adds the r-imager package and dependencies. - new package: r-bmp - new package: r-readbitmap
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r-bmp/package.py18
-rw-r--r--var/spack/repos/builtin/packages/r-imager/package.py37
-rw-r--r--var/spack/repos/builtin/packages/r-readbitmap/package.py28
3 files changed, 83 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-bmp/package.py b/var/spack/repos/builtin/packages/r-bmp/package.py
new file mode 100644
index 0000000000..6f6a37b7c3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-bmp/package.py
@@ -0,0 +1,18 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class RBmp(RPackage):
+ """Reads Windows BMP format images. Currently limited to 8 bit greyscale
+ images and 24,32 bit (A)RGB images. Pure R implementation without external
+ dependencies."""
+
+ homepage = "https://cloud.r-project.org/package=bmp"
+ url = "https://cloud.r-project.org/src/contrib/bmp_0.3.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/bmp"
+
+ version('0.3', sha256='bdf790249b932e80bc3a188a288fef079d218856cf64ffb88428d915423ea649')
diff --git a/var/spack/repos/builtin/packages/r-imager/package.py b/var/spack/repos/builtin/packages/r-imager/package.py
new file mode 100644
index 0000000000..cd0f851054
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-imager/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class RImager(RPackage):
+ """Fast image processing for images in up to 4 dimensions (two spatial
+ dimensions, one time/depth dimension, one colour dimension). Provides most
+ traditional image processing tools (filtering, morphology, transformations,
+ etc.) as well as various functions for easily analysing image data using R.
+ The package wraps 'CImg', <http://cimg.eu>, a simple, modern C++ library
+ for image processing."""
+
+ homepage = "http://dahtah.github.io/imager"
+ url = "https://cloud.r-project.org/src/contrib/imager_0.41.2.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/imager"
+
+ version('0.41.2', sha256='9be8bc8b3190d469fcb2883045a404d3b496a0380f887ee3caea11f0a07cd8a5')
+
+ depends_on('r@2.10.0:', type=('build', 'run'))
+ depends_on('r-magrittr', type=('build', 'run'))
+ depends_on('r-rcpp@0.11.5:', type=('build', 'run'))
+ depends_on('r-stringr', type=('build', 'run'))
+ depends_on('r-png', type=('build', 'run'))
+ depends_on('r-jpeg', type=('build', 'run'))
+ depends_on('r-readbitmap', type=('build', 'run'))
+ depends_on('r-purrr', type=('build', 'run'))
+ depends_on('r-cairo', type=('build', 'run'))
+ depends_on('r-downloader', type=('build', 'run'))
+ depends_on('r-igraph', type=('build', 'run'))
+ depends_on('r-plyr', type=('build', 'run'))
+
+ depends_on('fftw')
+ depends_on('libtiff')
diff --git a/var/spack/repos/builtin/packages/r-readbitmap/package.py b/var/spack/repos/builtin/packages/r-readbitmap/package.py
new file mode 100644
index 0000000000..3ade391413
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-readbitmap/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class RReadbitmap(RPackage):
+ """Identifies and reads Windows BMP, JPEG, PNG, and TIFF format bitmap
+ images. Identification defaults to the use of the magic number embedded in
+ the file rather than the file extension. Reading of JPEG and PNG image
+ depends on libjpg and libpng libraries. See file INSTALL for details if
+ necessary."""
+
+ homepage = "https://github.com/jefferis/readbitmap"
+ url = "https://cloud.r-project.org/src/contrib/readbitmap_0.1.5.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/readbitmap"
+
+ version('0.1.5', sha256='737d7d585eb33de2c200da64d16781e3c9522400fe2af352e1460c6a402a0291')
+
+ depends_on('r-bmp', type=('build', 'run'))
+ depends_on('r-jpeg', type=('build', 'run'))
+ depends_on('r-png', type=('build', 'run'))
+ depends_on('r-tiff', type=('build', 'run'))
+
+ depends_on('libjpeg')
+ depends_on('libpng')