From 62d3b64540c7f235f2027b508227145e9b2b69cc Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Mon, 8 Jan 2018 08:18:23 +0100 Subject: [PATCH] asciinema : new recipe (#2047) --- .../asciinema/python3_asciinema-1.4.0.recipe | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-python/asciinema/python3_asciinema-1.4.0.recipe diff --git a/dev-python/asciinema/python3_asciinema-1.4.0.recipe b/dev-python/asciinema/python3_asciinema-1.4.0.recipe new file mode 100644 index 000000000..0fa3677de --- /dev/null +++ b/dev-python/asciinema/python3_asciinema-1.4.0.recipe @@ -0,0 +1,42 @@ +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 +}