From 0304ba968a3d5f7fe52faf5b655b0e4ae5b9f9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Augusto=20Silva=20Gon=C3=A7alves?= Date: Tue, 8 May 2018 18:10:57 -0300 Subject: [PATCH] New package: python-markdown2-2.3.7 --- .../disable-building-wheel-by-default.patch | 10 +++++++ srcpkgs/python-markdown2/template | 28 +++++++++++++++++++ srcpkgs/python3-markdown2 | 1 + 3 files changed, 39 insertions(+) create mode 100644 srcpkgs/python-markdown2/patches/disable-building-wheel-by-default.patch create mode 100644 srcpkgs/python-markdown2/template create mode 120000 srcpkgs/python3-markdown2 diff --git a/srcpkgs/python-markdown2/patches/disable-building-wheel-by-default.patch b/srcpkgs/python-markdown2/patches/disable-building-wheel-by-default.patch new file mode 100644 index 0000000000..3e9c800cdd --- /dev/null +++ b/srcpkgs/python-markdown2/patches/disable-building-wheel-by-default.patch @@ -0,0 +1,10 @@ +diff --git setup.cfg setup.cfg +index 4fe3b74..139986d 100644 +--- setup.cfg ++++ setup.cfg +@@ -1,5 +1,4 @@ + [aliases] +-build=sdist bdist_wheel + + [wheel] + universal = 1 diff --git a/srcpkgs/python-markdown2/template b/srcpkgs/python-markdown2/template new file mode 100644 index 0000000000..ae51351695 --- /dev/null +++ b/srcpkgs/python-markdown2/template @@ -0,0 +1,28 @@ +# Template file for 'python-markdown2' +pkgname=python-markdown2 +version=2.3.7 +revision=1 +noarch=yes +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=@4576ebde09526f20c873a73775192851b7e9ed5f521fac34303ed0a8b8eda1ed + +post_install() { + vlicense LICENSE.txt +} + +python3-markdown2_package() { + noarch=yes + 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 new file mode 120000 index 0000000000..e6e6853527 --- /dev/null +++ b/srcpkgs/python3-markdown2 @@ -0,0 +1 @@ +python-markdown2 \ No newline at end of file