aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-11-25 21:47:24 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2021-11-25 21:47:24 +0100
commitebafaf0c0f01e1339bb61bf9d31ce2f63b087397 (patch)
tree612ca8fc4544c6c31597ab0ecefd55cf0b2bea00
parentfe4fa23daeefa12b3e267b8a40ce72943a40be4b (diff)
downloadaports-ebafaf0c0f01e1339bb61bf9d31ce2f63b087397.tar.gz
aports-ebafaf0c0f01e1339bb61bf9d31ce2f63b087397.tar.bz2
aports-ebafaf0c0f01e1339bb61bf9d31ce2f63b087397.tar.xz
testing/py3-unidiff: new aport
Required by GCC's ./contrib/mklog.py script.
-rw-r--r--testing/py3-unidiff/APKBUILD36
-rw-r--r--testing/py3-unidiff/fix-test-script.patch8
2 files changed, 44 insertions, 0 deletions
diff --git a/testing/py3-unidiff/APKBUILD b/testing/py3-unidiff/APKBUILD
new file mode 100644
index 0000000000..f3da1b92a8
--- /dev/null
+++ b/testing/py3-unidiff/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer:
+pkgname=py3-unidiff
+pkgver=0.7.0
+pkgrel=0
+pkgdesc="Unified diff python parsing/metadata extraction library"
+url="https://github.com/matiasb/python-unidiff"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-setuptools"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/matiasb/python-unidiff/archive/refs/tags/v$pkgver.tar.gz
+ fix-test-script.patch"
+builddir="$srcdir/python-unidiff-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ sh run_tests.sh
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+ install -m644 README.rst HISTORY AUTHORS \
+ "$pkgdir"/usr/share/doc/$pkgname
+}
+
+sha512sums="
+8a8b3bf322a2a383b4efb0a51fa49ca5392d523188ee573adccdd19f88ab94030d7007796be054cc5a400dfc38f5e013f9c3cbcada1184c66fd04439a36363fb py3-unidiff-0.7.0.tar.gz
+3c42b36da7a549d59647a2a489cb85f45d5d51c839b206893e39f2bc5fc14917719e1aa5cd1042758c55bc7a218c63f1df3bb76c28c57724cc6a890ecafa64bc fix-test-script.patch
+"
diff --git a/testing/py3-unidiff/fix-test-script.patch b/testing/py3-unidiff/fix-test-script.patch
new file mode 100644
index 0000000000..45a6901a88
--- /dev/null
+++ b/testing/py3-unidiff/fix-test-script.patch
@@ -0,0 +1,8 @@
+diff -upr python-unidiff-0.7.0.orig/run_tests.sh python-unidiff-0.7.0/run_tests.sh
+--- python-unidiff-0.7.0.orig/run_tests.sh 2021-11-25 19:06:30.063860770 +0100
++++ python-unidiff-0.7.0/run_tests.sh 2021-11-25 19:06:39.597243030 +0100
+@@ -1,2 +1,2 @@
+-#! /bin/bash
+-PYTHONPATH=unidiff python -m unittest discover -s tests/
++#!/bin/sh
++PYTHONPATH=unidiff python3 -m unittest discover -s tests/