void-packages/srcpkgs/clisp/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

44 lines
1.1 KiB
Bash

# Template file for 'clisp'
pkgname=clisp
version=2.49
revision=6
# possibly works elsewhere but not in an ancient 2010 release
archs="x86_64* i686*"
build_style=configure
configure_args="--prefix=/usr --disable-mmap --disable-rpath
--without-dynamic-modules $(vopt_with readline)"
hostmakedepends="ffcall"
makedepends="libsigsegv-devel $(vopt_if readline readline-devel)"
short_desc="ANSI Common Lisp Interpreter, Compiler and Debugger"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-2.0-only"
homepage="http://clisp.cons.org"
distfiles="${SOURCEFORGE_SITE}/clisp/clisp-${version}.tar.bz2"
checksum=8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890
nopie=yes
nocross=yes
lib32disabled=yes
disable_parallel_build=yes
build_options="readline"
build_options_default="readline"
case "$XBPS_TARGET_MACHINE" in
i686-musl) broken="*** - MULTIPLE-VALUE-SETQ: variable EXTRA-FILE-TYPES has no value";;
esac
CFLAGS="-mtune=generic"
if [ "$XBPS_TARGET_WORDSIZE" == 32 ]; then
CFLAGS+=" -falign-functions=4"
fi
do_build() {
# Need to increase the Limit
ulimit -s 16384
cd src
make
}
do_install() {
cd src
make DESTDIR=${DESTDIR} install
}