void-packages/srcpkgs/boomerang/template
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: 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

32 lines
1,005 B
Bash

# Template file for 'boomerang'
pkgname=boomerang
version=0.5.2
revision=1
build_style=cmake
configure_args="-DBOOMERANG_BUILD_REGRESSION_TESTS=TRUE"
make_check_target="check"
hostmakedepends="flex qt5-devel"
makedepends="qt5-devel capstone-devel"
checkdepends="python3"
short_desc="General, open source machine code decompiler"
maintainer="Piraty <piraty1@inbox.ru>"
license="BSD-3-Clause"
homepage="https://github.com/BoomerangDecompiler/boomerang"
distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) broken="BinaryFile.h:45:5: error: expected unqualified-id before numeric constant"
esac
pre_configure() {
# Fails to build w/ qt5-5.15.0 because of deprecated functions warnings
vsed -i cmake-scripts/boomerang-flags.cmake \
-e "s;-Werror;;"
}
post_install() {
vlicense LICENSE.TERMS
rm ${DESTDIR}/usr/share/boomerang/LICENSE.TERMS
}