summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-readbitmap/package.py
blob: b4df4ed1c598119452206398c677d1fac7a8a718 (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-2023 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.package import *


class RReadbitmap(RPackage):
    """Simple Unified Interface to Read Bitmap Images (BMP,JPEG,PNG,TIFF).

    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."""

    cran = "readbitmap"

    license("GPL-2.0-or-later")

    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")