From 96238114afb9e3c55feb87011b36d5beadcb5e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 20 Sep 2020 22:05:06 +0700 Subject: [PATCH] python-markdown2: drop package --- srcpkgs/python-markdown2/template | 40 ------------------------------ srcpkgs/python3-markdown2 | 1 - srcpkgs/python3-markdown2/template | 25 +++++++++++++++++++ 3 files changed, 25 insertions(+), 41 deletions(-) delete mode 100644 srcpkgs/python-markdown2/template delete mode 120000 srcpkgs/python3-markdown2 create mode 100644 srcpkgs/python3-markdown2/template diff --git a/srcpkgs/python-markdown2/template b/srcpkgs/python-markdown2/template deleted file mode 100644 index e9068f64202..00000000000 --- a/srcpkgs/python-markdown2/template +++ /dev/null @@ -1,40 +0,0 @@ -# Template file for 'python-markdown2' -pkgname=python-markdown2 -version=2.3.8 -revision=2 -archs=noarch -build_style=python-module -pycompile_module="markdown2" -hostmakedepends="python-setuptools python3-setuptools" -short_desc="Fast and complete implementation of Markdown in Python2" -maintainer="Aluísio Augusto Silva Gonçalves " -license="MIT" -homepage="https://github.com/trentm/python-markdown2" -distfiles="https://github.com/trentm/python-markdown2/archive/${version}.tar.gz" -checksum=@f2439906b925fb3991b8e4c01909bd2e6cb3aa75ce64a053b5495f9c72726f77 - -do_check() { - PY2PATH="${PWD}/build-2.7/lib" - PY3PATH="${PWD}/build-${py3_ver}/lib" - - cd test - # On python2 markdown2/phpmarkdown/email_auto_links is broken; - # cf. https://github.com/trentm/python-markdown2/issues/5 - #PYTHONPATH="${PY2PATH}" python2 test.py -- -knownfailure - PYTHONPATH="${PY3PATH}" python3 test.py -- -knownfailure -} - - -post_install() { - vlicense LICENSE.txt -} - -python3-markdown2_package() { - archs=noarch - pycompile_module="markdown2" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove "usr/lib/python3*" - vlicense LICENSE.txt - } -} diff --git a/srcpkgs/python3-markdown2 b/srcpkgs/python3-markdown2 deleted file mode 120000 index e6e6853527b..00000000000 --- a/srcpkgs/python3-markdown2 +++ /dev/null @@ -1 +0,0 @@ -python-markdown2 \ No newline at end of file diff --git a/srcpkgs/python3-markdown2/template b/srcpkgs/python3-markdown2/template new file mode 100644 index 00000000000..b263ff0979f --- /dev/null +++ b/srcpkgs/python3-markdown2/template @@ -0,0 +1,25 @@ +# Template file for 'python3-markdown2' +pkgname=python3-markdown2 +version=2.3.8 +revision=3 +wrksrc=python-markdown2-$version +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Fast and complete implementation of Markdown in Python3" +maintainer="Aluísio Augusto Silva Gonçalves " +license="MIT" +homepage="https://github.com/trentm/python-markdown2" +distfiles="https://github.com/trentm/python-markdown2/archive/${version}.tar.gz" +checksum=@f2439906b925fb3991b8e4c01909bd2e6cb3aa75ce64a053b5495f9c72726f77 + +do_check() { + PY3PATH="${PWD}/build/lib" + + cd test + PYTHONPATH="${PY3PATH}" python3 test.py -- -knownfailure +} + + +post_install() { + vlicense LICENSE.txt +}