mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
racket: update to 8.6.
This commit is contained in:
parent
a15f014818
commit
7e4a7e0347
2 changed files with 38 additions and 11 deletions
27
srcpkgs/racket/patches/build.patch
Normal file
27
srcpkgs/racket/patches/build.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From 053be470e7c5454cdf48e934f3254d2d916bbbc5 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Flatt <mflatt@racket-lang.org>
|
||||
Date: Sat, 30 Jul 2022 07:06:55 -0600
|
||||
Subject: [PATCH] CS makefiles: fix Unix-style install for cross compilation
|
||||
|
||||
Closes #4377
|
||||
---
|
||||
racket/src/cs/c/build.zuo | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/racket/src/cs/c/build.zuo b/racket/src/cs/c/build.zuo
|
||||
index 7fe59431140..625621ca6e2 100644
|
||||
--- a/racket/src/cs/c/build.zuo
|
||||
+++ b/racket/src/cs/c/build.zuo
|
||||
@@ -1023,10 +1023,9 @@
|
||||
(define (setup)
|
||||
(call-with-dest-racket
|
||||
(lambda (bindir dest-racket)
|
||||
- (define copytree-racket (and cross? (config-bootstrap-racket)))
|
||||
+ (define copytree-racket (and cross? (hash-ref (config-bootstrap-racket) 'racket)))
|
||||
(maybe-copytree config dest-racket copytree-racket at-dir)
|
||||
- (run-raco-setup config dest-racket
|
||||
- (and cross? (hash-ref (config-bootstrap-racket) 'racket))
|
||||
+ (run-raco-setup config dest-racket copytree-racket
|
||||
;; this can be redundant if it's also supplied via `SETUP_MACHINE_FLAGS`,
|
||||
;; but redundant should be ok:
|
||||
(list "-MCR" (~a (at-dir "compiled") ":")
|
|
@ -1,35 +1,36 @@
|
|||
# Template file for 'racket'
|
||||
pkgname=racket
|
||||
version=8.4
|
||||
version=8.6
|
||||
revision=1
|
||||
archs="aarch64* armv6* armv7* i686* x86_64*"
|
||||
wrksrc=${pkgname}-${version}
|
||||
wrksrc="${pkgname}-${version}" # needed below
|
||||
build_wrksrc=src
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-useprefix"
|
||||
hostmakedepends="gsfonts"
|
||||
makedepends="sqlite-devel gtk+3-devel"
|
||||
configure_args="--enable-useprefix --enable-curses"
|
||||
make_build_args="CC_FOR_BUILD=cc"
|
||||
hostmakedepends="liberation-fonts-ttf"
|
||||
makedepends="gtk+3-devel liblz4-devel ncurses-devel sqlite-devel zlib-devel"
|
||||
depends="gtk+3 libssl1.1"
|
||||
short_desc="Multi-paradigm programming language in the Lisp-Scheme family"
|
||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||
license="LGPL-3.0-only, MIT"
|
||||
homepage="http://racket-lang.org/"
|
||||
distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${version}-src.tgz"
|
||||
checksum=b89faf2fe16d04d20b9056f08bba99eb2040d5172bee8f3ceb3999fed16e6ad3
|
||||
checksum=2eff3e97bc7a10cfa0320da9b07f0d488653b0b5b8490322c82f384ae0fa1a28
|
||||
nostrip=yes
|
||||
patch_args="-Np2"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
_chezscheme_path="${XBPS_BUILDDIR}/${wrksrc}/${build_wrksrc}"
|
||||
|
||||
configure_args+=" --enable-racket=/usr/bin/racket
|
||||
--enable-scheme=${_chezscheme_path}"
|
||||
--enable-scheme=${_chezscheme_path}"
|
||||
hostmakedepends+=" racket sqlite-devel"
|
||||
|
||||
# Build ChezScheme for the host so we can use it to build Racket
|
||||
# Using "--enable-racket=auto" above selects the wrong compiler toolchain
|
||||
pre_build() {
|
||||
# Make sure we don't get lost
|
||||
_correct_position=$(pwd)
|
||||
(
|
||||
cd ${_chezscheme_path}/ChezScheme
|
||||
|
||||
# If this builds the wrong arch, Racket's automatic
|
||||
|
@ -47,8 +48,7 @@ if [ "$CROSS_BUILD" ]; then
|
|||
-LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib -rdynamic" \
|
||||
./configure --disable-curses --disable-x11
|
||||
make
|
||||
|
||||
cd ${_correct_position}
|
||||
)
|
||||
}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue