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

33 lines
953 B
Bash

# Template file for 'povray'
pkgname=povray
version=3.7.0.8
revision=5
build_style=gnu-configure
_v=${version%.*.*}
configure_args="COMPILED_BY=Void --disable-optimiz-arch"
conf_files="
/etc/povray/$_v/povray.conf
/etc/povray/$_v/povray.ini"
hostmakedepends="git autoconf automake"
makedepends="boost-devel libpng-devel tiff-devel SDL-devel"
depends="openexr"
short_desc="Script-based raytracer for 3D graphic production"
maintainer="Brenton Horne <brentonhorne77@gmail.com>"
license="AGPL-3.0-or-later"
homepage="http://povray.org/"
distfiles="https://github.com/POV-Ray/povray/archive/v${version}.tar.gz"
checksum=53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4
nocross="Builds fail on ARM architectures
Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
LDFLAGS+=" -Wl,-z,stack-size=1048576"
pre_configure() {
cd $wrksrc/unix
./prebuild.sh
cd ..
./bootstrap
}
post_install() {
vlicense LICENSE
}