summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-readbitmap/package.py
blob: 8773b3ff51b62745a1b73d544af50fff1ee1a0be (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
# 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('jpeg')
    depends_on('libpng')