void-packages/srcpkgs/iverilog/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

20 lines
667 B
Bash

# Template file for 'iverilog'
pkgname=iverilog
version=11.0
revision=1
wrksrc="${pkgname}-${version/./_}"
build_style=gnu-configure
hostmakedepends="automake flex gperf"
makedepends="readline-devel zlib-devel"
short_desc="Verilog simulation and synthesis tool"
maintainer="Johannes <johannes.brechtmann@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="http://iverilog.icarus.com/"
distfiles="https://github.com/steveicarus/iverilog/archive/v${version/./_}.tar.gz"
checksum=6327fb900e66b46803d928b7ca439409a0dc32731d82143b20387be0833f1c95
nocross="draw_tt.exe: cannot execute binary file: Exec format error"
pre_configure() {
sh ./autoconf.sh
}