New package: r-imager (#14866)
This PR adds the r-imager package and dependencies. - new package: r-bmp - new package: r-readbitmap
This commit is contained in:
parent
ad914c28d7
commit
bd442e884a
18
var/spack/repos/builtin/packages/r-bmp/package.py
Normal file
18
var/spack/repos/builtin/packages/r-bmp/package.py
Normal file
@ -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')
|
37
var/spack/repos/builtin/packages/r-imager/package.py
Normal file
37
var/spack/repos/builtin/packages/r-imager/package.py
Normal file
@ -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')
|
28
var/spack/repos/builtin/packages/r-readbitmap/package.py
Normal file
28
var/spack/repos/builtin/packages/r-readbitmap/package.py
Normal file
@ -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')
|
Loading…
Reference in New Issue
Block a user