a03d116397
```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 ```
22 lines
858 B
Bash
22 lines
858 B
Bash
# Template file for 'ecl'
|
|
pkgname=ecl
|
|
version=16.1.3
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-gmp=system --enable-boehm=system
|
|
--enable-libatomic=system --with-dffi=system"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gc-devel libatomic_ops-devel gmp-devel libffi-devel"
|
|
depends=$makedepends
|
|
short_desc="Common-Lisp interpreter as described in the X3J13 Ansi specification"
|
|
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://common-lisp.net/project/ecl/"
|
|
distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
|
|
checksum=76a585c616e8fa83a6b7209325a309da5bc0ca68e0658f396f49955638111254
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Depend on system ecl
|
|
hostmakedepends+=" ecl"
|
|
configure_args+=" --with-cross-config=${XBPS_SRCPKGDIR}/ecl/files/${XBPS_TARGET_MACHINE}.conf"
|
|
fi
|