From 315c3fc0c8d8550c852cd4abb7609341e22f81b3 Mon Sep 17 00:00:00 2001 From: Benjamin Slade Date: Thu, 1 Oct 2020 05:27:27 -0600 Subject: [PATCH] racket: update to 7.9 - add libressl-devel to `depends` in order to address bug https://github.com/void-linux/void-packages/issues/25748 (see upstream bug https://github.com/racket/racket/issues/1096 ) --- srcpkgs/racket/template | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/srcpkgs/racket/template b/srcpkgs/racket/template index dab6e5ec43c..873a009d4c2 100644 --- a/srcpkgs/racket/template +++ b/srcpkgs/racket/template @@ -1,21 +1,23 @@ # Template file for 'racket' pkgname=racket -version=7.7 +version=7.9 revision=1 build_wrksrc=src build_style=gnu-configure configure_args="--enable-useprefix --disable-docs" hostmakedepends="gsfonts" makedepends="sqlite-devel gtk+-devel" -depends="gtk+" +depends="gtk+ libressl-devel" short_desc="Multi-paradigm programming language in the Lisp-Scheme family" maintainer="Andrea Brancaleoni " license="LGPL-3.0-only" -homepage="http://racket-lang.org/" +homepage="https://racket-lang.org/" distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${version}-src.tgz" -checksum=62659f42b059d028b37874a5ddd56a69057b1895e37e2c08590c150be680a533 +checksum=2e12f297678da2ff2299992ec0eaddb7bf7932b44a5636bb30ca78fce533ffa2 nostrip=yes +CFLAGS="-D_GNU_SOURCE" + if [ "$CROSS_BUILD" ]; then configure_args+=" --enable-racket=/usr/bin/racket" hostmakedepends+=" racket sqlite-devel" @@ -25,25 +27,17 @@ case "$XBPS_TARGET_MACHINE" in ppc*) broken="hangs or segfaults";; *-musl) - makedepends+=" libucontext-devel";; + makedepends+=" libucontext-devel" + export LIBS="-lucontext" + ;; esac -pre_configure() { - case "$XBPS_TARGET_MACHINE" in - *-musl) - export CFLAGS+=" -D_GNU_SOURCE" - export LIBS+=" -lucontext" - ;; - esac -} - post_install() { vlicense LICENSE-libscheme.txt vlicense LICENSE-MIT.txt } racket-doc_package() { - archs=noarch short_desc+=" - documentation" depends="racket>=${version}_${revision}" pkg_install() {