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

35 lines
818 B
Bash

# Template file for 'redo'
pkgname=redo
version=1.5
revision=3
create_wrksrc=yes
hostmakedepends="perl"
short_desc="Incremental build system (version of de Boyne Pollard)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="ISC"
homepage="http://jdebp.info/Softwares/redo/"
distfiles="http://jdebp.info/Repository/freebsd/redo-${version}.tar.gz"
checksum=5ff21779993418cf16f5632c593e30d9a2780bfc38cef9de9ab9427154736d36
do_configure() {
./package/prepare
echo "$CXX" >build/cxx
echo "$CPPFLAGS" >build/cppflags
echo "$CXXFLAGS" >build/cxxflags
echo "$LDFLAGS" >build/ldflags
}
do_build() {
./package/make
}
do_install() {
vbin build/redo
vman build/redo.1
for cmd in redo-ifcreate redo-ifchange cubehash; do
ln -sf redo ${DESTDIR}/usr/bin/${cmd}
vman build/${cmd}.1
done
vlicense source/COPYING
}