asciinema: bump version and rewrite recipe (#3323)

This commit is contained in:
Crestwave
2018-11-02 23:31:02 +08:00
committed by fbrosson
parent a77823f223
commit ae979b43b4
3 changed files with 108 additions and 0 deletions

View File

@@ -1,42 +0,0 @@
SUMMARY="Command line recorder for asciinema.org service"
DESCRIPTION="asciinema lets you easily record terminal sessions and replay \
them in a terminal as well as in a web browser."
HOMEPAGE="https://asciinema.org/"
COPYRIGHT="2011-2017 Marcin Kulik"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/asciinema/asciinema/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="841a55b0f51988d5e155e99badbd6ce5cf3b43cca2ba15cd20c971a19719dc9a"
SOURCE_DIR="asciinema-$portVersion"
ARCHITECTURES="any"
PROVIDES="
python3_asciinema = $portVersion
cmd:asciinema
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
setuptools_python3
"
BUILD_PREREQUIRES="
cmd:make
cmd:python3
"
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$(python3 --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python3/bin/python3 setup.py install \
--prefix=$prefix
}