void-packages/srcpkgs/guile1.8/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

34 lines
1.2 KiB
Bash

# Template file for 'guile1.8'
pkgname=guile1.8
version=1.8.8
revision=3
wrksrc=${pkgname/1.8/}-${version}
build_style="gnu-configure"
configure_args="--disable-static --disable-error-on-warning --program-suffix='-1.8'"
make_build_args="GUILE_FOR_BUILD=guile"
hostmakedepends="pkg-config guile"
makedepends="gmp-devel libltdl-devel ncurses-devel readline-devel"
short_desc="Portable, embeddable Scheme implementation written in C"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="LGPL-2.1-or-later"
homepage="https://www.gnu.org/software/guile/guile.html"
distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
post_install() {
# conflicts with guile-2.0
rm -rf ${DESTDIR}/usr/share/info
}
guile1.8-devel_package() {
short_desc+=" - development files"
depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/guile-config-1.8
sed -i '1s|/usr/bin/guile|/usr/bin/guile-1.8|' ${PKGDESTDIR}/usr/bin/guile-config-1.8
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
mv ${PKGDESTDIR}/usr/share/aclocal/{guile.m4,guile-1.8.m4}
}
}