From b6bf12ce838b10adaf6eedd3c87626d17611abd5 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 20 Aug 2017 11:35:20 +0200 Subject: [PATCH] python-html5-parser: fix template - add python3 flavor - fix pycompile_module - fix depends --- srcpkgs/python-html5-parser/template | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python-html5-parser/template b/srcpkgs/python-html5-parser/template index 56712c4df1..ba91637583 100644 --- a/srcpkgs/python-html5-parser/template +++ b/srcpkgs/python-html5-parser/template @@ -1,16 +1,25 @@ # Template file for 'python-html5-parser' pkgname=python-html5-parser version=0.4.4 -revision=1 -wrksrc=html5-parser-${version} +revision=2 +wrksrc="html5-parser-${version}" build_style=python-module -hostmakedepends="python python-setuptools pkg-config" -makedepends="python-devel libxml2-devel" -short_desc="Fast C based HTML 5 parsing for python" +pycompile_module="html5_parser" +hostmakedepends="python-setuptools python3-setuptools pkg-config" +makedepends="python-devel python3-devel libxml2-devel" +depends="python-chardet python-lxml" +short_desc="Fast C-based HTML5 parsing (Python2)" maintainer="Andrea Brancaleoni " license="Apache-2.0" homepage="https://html5-parser.readthedocs.io/" distfiles="${PYPI_SITE}/h/html5-parser/html5-parser-${version}.tar.gz" checksum=b9f3a1d4cdb8742e8e4ecafab04bff541bde4ff09af233293ed0b94028ec1ab5 -pycompile_module="html5-parser" +python3-html5-parser_package() { + pycompile_module="html5_parser" + depends="python3-chardet python3-lxml" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +}