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

26 lines
872 B
Bash

# Template file for 'buildbot'
pkgname=buildbot
reverts="2.4.1_1"
version=0.8.14
revision=5
build_style=python2-module
pycompile_dirs="usr/share/buildbot/contrib"
hostmakedepends="python"
depends="python-setuptools python-dateutil python-Jinja2 python-sqlalchemy-migrate python-Twisted"
short_desc="System to automate the compile/test cycle"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://buildbot.net/"
distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
pre_install() {
sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
}
post_install() {
# Install all contrib modules.
local contribdir=${DESTDIR}/usr/share/buildbot/contrib
vmkdir usr/share/buildbot/contrib
install -m755 ${wrksrc}/contrib/*.py ${contribdir}
}