stata: add version 16 (#16425)
This commit is contained in:
		| @@ -27,6 +27,7 @@ class Stata(Package): | ||||
|     homepage = "https://www.stata.com/" | ||||
|     # url      = "stata" | ||||
| 
 | ||||
|     version('16', 'a13a6a92558eeb3c6cb3013c458a6777e54c21af43599df6b0a924f5f5c2d5d2') | ||||
|     version('15', '2486f4c7db1e7b453004c7bd3f8da40ba1e30be150613065c7b82b1915259016') | ||||
| 
 | ||||
|     # V15 depends on libpng v12 and fails with other versions of libpng | ||||
| @@ -81,6 +82,11 @@ def install(self, spec, prefix): | ||||
|         bash = which('bash') | ||||
|         tar = which('tar') | ||||
| 
 | ||||
|         res_dir = 'unix/linux64/' | ||||
| 
 | ||||
|         if self.spec.satisfies('@16:'): | ||||
|             res_dir = 'unix/linux64p/' | ||||
| 
 | ||||
|         # Step 1. | ||||
|         x = datetime.now() | ||||
|         with open("installed.150", "w") as fh: | ||||
| @@ -89,11 +95,11 @@ def install(self, spec, prefix): | ||||
|         # Step 2. | ||||
|         instlist = ['ado.taz', 'base.taz', 'bins.taz', 'docs.taz'] | ||||
|         for instfile in instlist: | ||||
|             tar('-x', '-z', '-f', 'unix/linux64/' + instfile) | ||||
|             tar('-x', '-z', '-f', res_dir + instfile) | ||||
| 
 | ||||
|         # Step 3. | ||||
|         install('unix/linux64/setrwxp', 'setrwxp') | ||||
|         install('unix/linux64/inst2', 'inst2') | ||||
|         install(res_dir + 'setrwxp', 'setrwxp') | ||||
|         install(res_dir + 'inst2', 'inst2') | ||||
| 
 | ||||
|         # Step 4. Since the install script calls out specific permissions and | ||||
|         # could change in the future (or old versions) I thought it best to | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Justin S
					Justin S