asciidoc: Use python2 in cmd
This commit is contained in:
parent
7a31e14323
commit
73973da622
11
asciidoc/0002-use-python2-in-cmd.patch
Normal file
11
asciidoc/0002-use-python2-in-cmd.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- asciidoc-py3/a2x.py.orig 2019-06-07 22:23:57.665795800 +0300
|
||||
+++ asciidoc-py3/a2x.py 2019-06-07 22:24:02.876093800 +0300
|
||||
@@ -203,7 +203,7 @@
|
||||
if not mo:
|
||||
mo = re.match(r'^\s*(?P<arg0>[^ ]+)', cmd)
|
||||
if mo.group('arg0').endswith('.py'):
|
||||
- cmd = 'python ' + cmd
|
||||
+ cmd = 'python2 ' + cmd
|
||||
# Remove redundant quoting -- this is not just cosmetic,
|
||||
# quoting seems to dramatically decrease the allowed command
|
||||
# length in Windows XP.
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
pkgname=asciidoc
|
||||
pkgver=8.6.10
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Text document format for short documents, articles, books and UNIX man pages.'
|
||||
arch=('any')
|
||||
url='http://www.methods.co.nz/asciidoc/'
|
||||
@ -18,10 +18,12 @@ groups=('base-devel')
|
||||
# 'lynx: text generation'
|
||||
# 'w3m: text generation (alternative to lynx)')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/asciidoc/asciidoc/archive/${pkgver}.tar.gz"
|
||||
0001-W32-confdir.msys2.patch)
|
||||
0001-W32-confdir.msys2.patch
|
||||
0002-use-python2-in-cmd.patch)
|
||||
noextract=("${pkgname}-${pkgver}.tar.gz")
|
||||
sha256sums=('9e52f8578d891beaef25730a92a6e723596ddbd07bfe0d2a56486fcf63a0b983'
|
||||
'71f44b513f627b133afead38576fcb8a5460d0514174a4ce219c6ea761d8b40c')
|
||||
'71f44b513f627b133afead38576fcb8a5460d0514174a4ce219c6ea761d8b40c'
|
||||
'a363ab8c95009b3625cacd306cce2e95b4919f4f32087113fc95171b862ac08d')
|
||||
|
||||
prepare() {
|
||||
tar -xzvf ${pkgname}-${pkgver}.tar.gz --recursive-unlink
|
||||
@ -29,6 +31,7 @@ prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
patch -p1 -i ${srcdir}/0001-W32-confdir.msys2.patch
|
||||
patch -p1 -i ${srcdir}/0002-use-python2-in-cmd.patch
|
||||
|
||||
# python2 fix
|
||||
for file in asciidocapi.py a2x.py asciidoc.py filters/music/music2png.py filters/latex/latex2img.py \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user