void-packages/srcpkgs/doxygen/template
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid 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

30 lines
852 B
Bash

# Template file for 'doxygen'
pkgname=doxygen
version=1.9.1
revision=1
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=None"
hostmakedepends="perl python3 flex"
checkdepends="libxml2 texlive-BibTeX"
short_desc="Source code documentation generator tool"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-2.0-only"
homepage="http://www.doxygen.org/"
distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
build_options="wizard"
desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"
if [ "$build_option_wizard" ]; then
configure_args+=" -Dbuild_wizard=1"
hostmakedepends+=" qt5-host-tools qt5-qmake"
makedepends+=" qt5-devel"
fi
post_install() {
vman doc/doxygen.1
if [ "$build_option_wizard" ]; then
vman doc/doxywizard.1
fi
}