void-packages/srcpkgs/gscope3/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

27 lines
695 B
Bash

# Template file for 'gscope3'
pkgname=gscope3
version=3.18
revision=1
_release=v2.18+v3.18
wrksrc="gscope-2.18-v3.18"
build_wrksrc="packages/gscope3"
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="gtksourceview-devel"
short_desc="Interactive source code browsing tool for C and other languages"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/tefletch/gscope"
distfiles="https://github.com/tefletch/gscope/archive/${_release}.tar.gz"
checksum=06d0fd4351b4f8dc1850c81b07c112b0974bfb140f9fe56f8af6f865be3e0a2a
CFLAGS="-fcommon"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vlicense ${wrksrc}/LICENSE
}