summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-rgdal/package.py
blob: b2fbfee9dc6595829060f751ab6c4dabd3867849 (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-2018 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 RRgdal(RPackage):
    """Provides bindings to the 'Geospatial' Data Abstraction Library
    ('GDAL') (>= 1.6.3) and access to projection/transformation operations
    from the 'PROJ.4' library. The 'GDAL' and 'PROJ.4' libraries are
    external to the package, and, when installing the package from source,
    must be correctly installed first. Both 'GDAL' raster and 'OGR' vector
    map data can be imported into R, and 'GDAL' raster data and 'OGR'
    vector data exported. Use is made of classes defined in the 'sp' package.
    Windows and Mac Intel OS X binaries (including 'GDAL', 'PROJ.4' and
    'Expat') are provided on 'CRAN'."""

    homepage = "https://cran.r-project.org/package=rgdal"
    url      = "https://cran.rstudio.com/src/contrib/rgdal_1.2-16.tar.gz"
    list_url = "https://cran.rstudio.com/src/contrib/Archive/rgdal"

    version('1.2-16', 'de83bf08519a53de68a7632ecb7f2dc9')

    depends_on('r-sp', type=('build', 'run'))
    depends_on('gdal')
    depends_on('proj')