##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/spack
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *


class Proj(AutotoolsPackage):
    """Cartographic Projections"""
    homepage = "https://github.com/OSGeo/proj.4/wiki"
    url      = "http://download.osgeo.org/proj/proj-4.9.2.tar.gz"

    version('4.9.2', '9843131676e31bbd903d60ae7dc76cf9')
    version('4.9.1', '3cbb2a964fd19a496f5f4265a717d31c')
    version('4.8.0', 'd815838c92a29179298c126effbb1537')
    version('4.7.0', '927d34623b52e0209ba2bfcca18fe8cd')
    version('4.6.1', '7dbaab8431ad50c25669fd3fb28dc493')

@@ -1287,17 +1287,187 @@
 %0A    %22%22%22
-C
+PROJ is a generic coordinate transformation software, that transforms%0A    geospatial coordinates from one coordinate reference system (CRS) to%0A    another. This includes c
 artograp
@@ -1470,17 +1470,17 @@
 graphic 
-P
+p
 rojectio
@@ -1485,12 +1485,54 @@
 ions
+ as well as geodetic%0A    transformations.
 %22%22%22%0A
+%0A
     
@@ -1555,36 +1555,18 @@
 s://
-github.com/OSGeo/proj.4/wiki
+proj4.org/
 %22%0A  
@@ -1615,21 +1615,21 @@
 oj/proj-
-4.9.2
+5.0.1
 .tar.gz%22
@@ -1630,16 +1630,73 @@
 ar.gz%22%0A%0A
+    version('5.0.1', '15c8d7d6a8cb945c7878d0ff322a232c')%0A
     vers
@@ -1972,8 +1972,453 @@
 dc493')%0A
+%0A    # https://github.com/OSGeo/proj.4#distribution-files-and-format%0A    # https://github.com/OSGeo/proj-datumgrid%0A    resource(%0A        name='proj-datumgrid',%0A        url='https://download.osgeo.org/proj/proj-datumgrid-1.7.tar.gz',%0A        md5='6799bd8ac411b8a78724e34850c206c4',%0A        placement='nad'%0A    )%0A%0A    def configure_args(self):%0A        return %5B%0A            'PROJ_LIB=%7B0%7D'.format(join_path(self.stage.source_path, 'nad'))%0A        %5D%0A

Add PROJ 5.0.1 (#8233)