* runit is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Template file for 'racket'
|
|
pkgname=racket
|
|
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+"
|
|
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=5578942066a9405fdbcad9522d08685356693f4ddd5dbe92b5273557a112b73e
|
|
nostrip=yes
|
|
nocross=yes
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --enable-racket=/usr/bin/racket"
|
|
hostmakedepends+=" racket sqlite-devel"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*)
|
|
broken="hangs or segfaults";;
|
|
*-musl)
|
|
makedepends+=" libucontext-devel";;
|
|
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() {
|
|
short_desc+=" - documentation"
|
|
depends="racket>=${version}_${revision}"
|
|
pkg_install() {
|
|
# Remove once --disable-doc can be removed
|
|
echo "Documentation currently not available." \
|
|
> ${DESTDIR}/usr/share/doc/racket/no-doc.txt
|
|
vmove usr/share/doc/racket
|
|
}
|
|
}
|