asciinema: Update from 1.4.0 to 2.0.1

This commit is contained in:
Fredrik Fornwall 2018-04-08 23:45:06 +02:00
parent f4bec0e35f
commit bd00474740
2 changed files with 27 additions and 4 deletions

View File

@ -0,0 +1,23 @@
See https://github.com/asciinema/asciinema/issues/271
diff -u -r ../asciinema-2.0.1/asciinema/asciicast/v2.py ./asciinema/asciicast/v2.py
--- ../asciinema-2.0.1/asciinema/asciicast/v2.py 2018-04-04 09:05:41.000000000 +0200
+++ ./asciinema/asciicast/v2.py 2018-04-06 23:24:44.432657505 +0200
@@ -4,7 +4,16 @@
import json.decoder
import time
import codecs
-from multiprocessing import Process, Queue
+
+try:
+ # Importing synchronize is to detect platforms where
+ # multiprocessing does not work (python issue 3770)
+ # and cause an ImportError. Otherwise it will happen
+ # later when trying to use Queue().
+ from multiprocessing import synchronize, Process, Queue
+except ImportError:
+ from threading import Thread as Process
+ from queue import Queue
from asciinema.pty_recorder import PtyRecorder

View File

@ -1,12 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://asciinema.org/
TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way"
TERMUX_PKG_VERSION=1.4.0
# ncurses-utils for tput which asciinema uses:
TERMUX_PKG_DEPENDS="python, ncurses-utils"
TERMUX_PKG_VERSION=2.0.1
TERMUX_PKG_SHA256=7087b247dae36d04821197bc14ebd4248049592b299c9878d8953c025ac802e4
TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=841a55b0f51988d5e155e99badbd6ce5cf3b43cca2ba15cd20c971a19719dc9a
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
# ncurses-utils for tput which asciinema uses:
TERMUX_PKG_DEPENDS="python, ncurses-utils"
termux_step_make () {
return