| 
									
										
										
										
											2020-04-20 18:56:54 +00:00
										 |  |  | # Copyright 2020 Julian Ospald <hasufell@posteo.de> | 
					
						
							|  |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SUMMARY="Painless installation of GHC toolchain" | 
					
						
							|  |  |  | HOMEPAGE="https://www.haskell.org/ghcup/ https://gitlab.haskell.org/haskell/ghcup-hs" | 
					
						
							|  |  |  | DOWNLOADS="
 | 
					
						
							|  |  |  |     platform:amd64? ( https://downloads.haskell.org/~ghcup/${PV}/x86_64-linux-ghcup-${PV} ) | 
					
						
							|  |  |  |     platform:x86? ( https://downloads.haskell.org/~ghcup/${PV}/i386-linux-ghcup-${PV} ) | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | LICENCES="LGPL-3" | 
					
						
							|  |  |  | SLOT="0" | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | MYOPTIONS="
 | 
					
						
							|  |  |  |     platform: amd64 x86 | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							| 
									
										
										
										
											2020-08-24 19:17:34 +00:00
										 |  |  |     recommendation: | 
					
						
							|  |  |  |         net-misc/curl [[ description = [ GHCup uses curl by default for downloads ] ]] | 
					
						
							|  |  |  |     suggestion: | 
					
						
							|  |  |  |         net-misc/wget [[ description = [ GHCup can use wget instead of curl ] ]] | 
					
						
							| 
									
										
										
										
											2020-04-20 18:56:54 +00:00
										 |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | BUGS_TO="hasufell@posteo.de" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | WORK=${WORKBASE} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_unpack() { | 
					
						
							| 
									
										
										
										
											2020-08-24 19:17:34 +00:00
										 |  |  |     edo cp "${FETCHEDDIR}/${ARCHIVES}" ghcup | 
					
						
							| 
									
										
										
										
											2020-04-20 18:56:54 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_install() { | 
					
						
							|  |  |  |     dobin ghcup | 
					
						
							|  |  |  | } |