49cb564d14
* par 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 ```
33 lines
1,007 B
Bash
33 lines
1,007 B
Bash
# Template file for 'python3-gevent'
|
|
pkgname=python3-gevent
|
|
version=21.1.2
|
|
revision=1
|
|
wrksrc="gevent-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-Cython"
|
|
makedepends="python3-devel libev-devel c-ares-devel python3-greenlet-devel"
|
|
depends="python3-dnspython python3-greenlet python3-zope.event python3-zope.interface"
|
|
checkdepends="${depends} iana-etc"
|
|
short_desc="Coroutine-based Python3 networking library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://www.gevent.org/"
|
|
distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
|
|
checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
|
|
|
|
post_extract() {
|
|
# purge bundled dependencies
|
|
rm -rf deps
|
|
}
|
|
|
|
do_check() {
|
|
PYTHONPATH="$(cd build/lib* && pwd)" python -m gevent.tests
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
# remove python2 compat stuff
|
|
rm -f ${DESTDIR}/${py3_sitelib}/gevent/_*2.py
|
|
# don't ship tests
|
|
rm -rf ${DESTDIR}/${py3_sitelib}/gevent/tests
|
|
}
|