27 lines
1010 B
Python
27 lines
1010 B
Python
# Copyright 2013-2022 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"
|
|
|
|
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")
|