mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
asciinema: bump version and rewrite recipe (#3323)
This commit is contained in:
59
app-misc/asciinema/asciinema-2.0.1.recipe
Normal file
59
app-misc/asciinema/asciinema-2.0.1.recipe
Normal file
@@ -0,0 +1,59 @@
|
||||
SUMMARY="A terminal session recorder"
|
||||
DESCRIPTION="asciinema lets you easily record terminal sessions and replay \
|
||||
them in a terminal as well as in a web browser. It is the best companion of \
|
||||
asciinema.org."
|
||||
HOMEPAGE="https://asciinema.org/"
|
||||
COPYRIGHT="2011-2018 Marcin Kulik"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/asciinema/asciinema/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7087b247dae36d04821197bc14ebd4248049592b299c9878d8953c025ac802e4"
|
||||
SOURCE_FILENAME="asciinema-$portVersion.tar.gz"
|
||||
PATCHES="asciinema-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
asciinema = $portVersion
|
||||
cmd:asciinema
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python3
|
||||
"
|
||||
REPLACES="
|
||||
python3_asciinema
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
setuptools_python3
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python3
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
nose_python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf build
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
sed -i \
|
||||
-e "s|documentation/man|$relativeManDir|" \
|
||||
-e "s|documentation/packages/asciinema|$relativeDocDir|" \
|
||||
setup.py
|
||||
python3 setup.py install --prefix=$prefix --root=/ --skip-build
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
python3 setup.py test
|
||||
}
|
||||
49
app-misc/asciinema/patches/asciinema-2.0.1.patchset
Normal file
49
app-misc/asciinema/patches/asciinema-2.0.1.patchset
Normal file
@@ -0,0 +1,49 @@
|
||||
From b7a0f1c59b10f09c63828504facade963bf05ad5 Mon Sep 17 00:00:00 2001
|
||||
From: Crestwave <crest.wave@yahoo.com>
|
||||
Date: Fri, 2 Nov 2018 07:55:00 +0000
|
||||
Subject: Add long_description, data_files and test_requires to setup.py
|
||||
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 588a6cd..6f6b91c 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -7,6 +7,10 @@ if sys.version_info[0] < 3:
|
||||
|
||||
url_template = 'https://github.com/asciinema/asciinema/archive/v%s.tar.gz'
|
||||
requirements = []
|
||||
+test_requirements = ['nose']
|
||||
+
|
||||
+with open('README.md', encoding='utf8') as file:
|
||||
+ long_description = file.read()
|
||||
|
||||
setup(
|
||||
name='asciinema',
|
||||
@@ -14,6 +18,8 @@ setup(
|
||||
packages=['asciinema', 'asciinema.commands', 'asciinema.asciicast'],
|
||||
license='GNU GPLv3',
|
||||
description='Terminal session recorder',
|
||||
+ long_description=long_description,
|
||||
+ long_description_content_type='text/markdown',
|
||||
author=asciinema.__author__,
|
||||
author_email='m@ku1ik.com',
|
||||
url='https://asciinema.org',
|
||||
@@ -23,7 +29,15 @@ setup(
|
||||
'asciinema = asciinema.__main__:main',
|
||||
],
|
||||
},
|
||||
+ data_files=[('documentation/packages/asciinema', ['CHANGELOG.md',
|
||||
+ 'CODE_OF_CONDUCT.md',
|
||||
+ 'CONTRIBUTING.md',
|
||||
+ 'README.md',
|
||||
+ 'doc/asciicast-v1.md',
|
||||
+ 'doc/asciicast-v2.md']),
|
||||
+ ('documentation/man/man1', ['man/asciinema.1'])],
|
||||
install_requires=requirements,
|
||||
+ tests_require=test_requirements,
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Console',
|
||||
--
|
||||
2.19.1
|
||||
|
||||
Reference in New Issue
Block a user