chez-scheme: add alternatives
This commit is contained in:
		
							
								
								
									
										19
									
								
								srcpkgs/chez-scheme/patches/fix-compilation-with-gcc-8.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								srcpkgs/chez-scheme/patches/fix-compilation-with-gcc-8.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| commit 82a14c87aaa44ae004b9d76af42144155e426290 | ||||
| Author: Göran Weinholt <goran@weinholt.se> | ||||
| Date:   Fri May 4 18:18:22 2018 +0200 | ||||
|  | ||||
|     - Double FMTBUFSIZE to fix compilation with gcc-8 | ||||
|         c/prim5.c | ||||
|  | ||||
| diff --git c/prim5.c c/prim5.c | ||||
| index 5bee635..69c6bfd 100644 | ||||
| --- c/prim5.c | ||||
| +++ c/prim5.c | ||||
| @@ -219,6 +219,6 @@ static ptr s_decode_float(x) ptr x; { | ||||
|      return S_decode_float(FLODAT(x)); | ||||
|  } | ||||
|  | ||||
| -#define FMTBUFSIZE 60 | ||||
| +#define FMTBUFSIZE 120 | ||||
|  #define CHUNKADDRLT(x, y) (((chunkinfo *)(Scar(x)))->addr < ((chunkinfo *)(Scar(y)))->addr) | ||||
|  mkmergesort(sort_chunks, merge_chunks, ptr, Snil, CHUNKADDRLT, INITCDR) | ||||
| @@ -1,7 +1,7 @@ | ||||
| # Template file for 'chez-scheme' | ||||
| pkgname=chez-scheme | ||||
| version=9.5 | ||||
| revision=1 | ||||
| revision=2 | ||||
| wrksrc="ChezScheme-${version}" | ||||
| build_style=gnu-configure | ||||
| hostmakedepends="git libX11-devel ncurses-devel zlib-devel" | ||||
| @@ -14,6 +14,10 @@ distfiles="https://github.com/cisco/ChezScheme/archive/v${version}.tar.gz | ||||
|  https://github.com/nanopass/nanopass-framework-scheme/archive/1f7e80bcff16766ef419183169bbc343db07db0c.tar.gz" | ||||
| checksum="a1d9f93bd8a683ea3d8f2f1b4880f85ea40bf9a482ee6b84cb0fe0ab6148a98c | ||||
|  5fe450f78bc1f096f58a907ca8b3829fff1cc520e5d5e8c503ac5c601b6779e0" | ||||
| alternatives=" | ||||
|  scheme:scheme:/usr/bin/chez-scheme | ||||
|  scheme:scheme.1:/usr/share/man/man1/chez-scheme.1 | ||||
| " | ||||
|  | ||||
| only_for_archs="i686 i686-musl x86_64 x86_64-musl armv6l armv7l" | ||||
| case "$XBPS_MACHINE" in | ||||
| @@ -54,7 +58,8 @@ post_extract() { | ||||
|  | ||||
| do_configure() { | ||||
| 	./configure --installprefix=/usr --installman=/usr/share/man \ | ||||
| 		--nogzip-man-pages --temproot=$DESTDIR --machine=$_host | ||||
| 		--nogzip-man-pages --temproot=$DESTDIR --machine=$_host \ | ||||
| 		--installschemename=chez-scheme | ||||
| } | ||||
|  | ||||
| post_install() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ivan Sokolov
					Ivan Sokolov