summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-imager/package.py
blob: cd0f85105463d5b4472a5822851d9728e8da53c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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')