add new package: php (#15435)
This commit is contained in:
		
							
								
								
									
										41
									
								
								var/spack/repos/builtin/packages/php/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								var/spack/repos/builtin/packages/php/package.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | |||||||
|  | # Copyright 2013-2019 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 Php(AutotoolsPackage): | ||||||
|  |     """ | ||||||
|  |     PHP is a popular general-purpose scripting language that is especially | ||||||
|  |     suited to web development. Fast, flexible and pragmatic, PHP powers | ||||||
|  |     everything from your blog to the most popular websites in the world. | ||||||
|  |     """ | ||||||
|  | 
 | ||||||
|  |     homepage = "https://php.net/" | ||||||
|  |     url      = "https://github.com/php/php-src/archive/php-7.3.13.tar.gz" | ||||||
|  | 
 | ||||||
|  |     version('7.4.1',     sha256='4d9d7c5681bec3af38a935d033657dce09a9913498f8022d7ca163a7f2f493a7') | ||||||
|  |     version('7.4.0',     sha256='91d34b48025ab9789216df89e247b6904912eeeaeff38c300ef314bdda8920b0') | ||||||
|  |     version('7.3.13',    sha256='e68b8d9e659f2993eee912f05860e546fdc18e459f31cd2771f404df21285f0b') | ||||||
|  |     version('7.3.12',    sha256='d0672ea84c0ab184f636acff3230d376d89a2067d59a87a2f1842361ee1f97d6') | ||||||
|  |     version('7.3.11',    sha256='4d861b2f3bc640ded8b591ce87250161392a6244a3c84042da0c06fd8c500eb2') | ||||||
|  |     version('7.2.26',    sha256='da132a836cec8021c00f22952e6044d91628ee3d2ef92a95d65cf91bad810600') | ||||||
|  |     version('7.2.25',    sha256='049b2d291c45cb889d15fcd2bac6da7d15ca5d535d272d2f8879fb834bbf276e') | ||||||
|  |     version('7.2.24',    sha256='334c9915733f6a29e1462f64038b1b4b1b21cb18f4f5f980add86792b5550ab3') | ||||||
|  |     version('7.1.33',    sha256='f80a795a09328a9441bae4a8a60fa0d6d43ec5adc98f5aa5f51d06f4522c07fe') | ||||||
|  | 
 | ||||||
|  |     depends_on('autoconf',   type='build') | ||||||
|  |     depends_on('automake',   type='build') | ||||||
|  |     depends_on('libtool',    type='build') | ||||||
|  |     depends_on('m4',         type='build') | ||||||
|  |     depends_on('pkgconfig',  type='build') | ||||||
|  |     depends_on('bison',      type='build') | ||||||
|  |     depends_on('re2c',       type='build') | ||||||
|  |     depends_on('libxml2') | ||||||
|  |     depends_on('sqlite') | ||||||
|  | 
 | ||||||
|  |     def autoreconf(self, spec, prefix): | ||||||
|  |         bash = which('bash') | ||||||
|  |         bash('./buildconf', '--force') | ||||||
		Reference in New Issue
	
	Block a user
	 darmac
					darmac