From c0e578bcdd1b018699dc295d321618a127a0788a Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 20 May 2018 18:24:24 +0200 Subject: [PATCH] python-logfury: add python3 flavor, fix depends --- srcpkgs/python-logfury/template | 27 +++++++++++++++++++-------- srcpkgs/python3-logfury | 1 + 2 files changed, 20 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3-logfury diff --git a/srcpkgs/python-logfury/template b/srcpkgs/python-logfury/template index 5a5a7214b5..ba7f2f73be 100644 --- a/srcpkgs/python-logfury/template +++ b/srcpkgs/python-logfury/template @@ -1,16 +1,16 @@ # Template file for 'python-logfury' pkgname=python-logfury version=0.1.2 -revision=2 -noarch=y -wrksrc="logfury-$version" +revision=3 +noarch=yes +wrksrc="logfury-${version}" build_style=python-module -pycompile_module=logfury -hostmakedepends="python python-setuptools" -depends="python-funcsigs" -short_desc="Low-boilerplate logging of method calls for python libraries" +pycompile_module="logfury" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-six python-funcsigs" +short_desc="Low-boilerplate logging of method calls (Python2)" maintainer="Andrea Brancaleoni " -license="3-clause-BSD" +license="BSD-3-Clause" homepage="https://github.com/ppolewicz/logfury" distfiles="$homepage/archive/$version.tar.gz" checksum=07464a8c1673a6012fee0e7b70b9b12941ede4210ed53e8dcda40433e2ef70fa @@ -18,3 +18,14 @@ checksum=07464a8c1673a6012fee0e7b70b9b12941ede4210ed53e8dcda40433e2ef70fa post_install() { vlicense LICENSE.txt } + +python3-logfury_package() { + noarch=yes + pycompile_module="logfury" + depends="python3-six python3-funcsigs" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-logfury b/srcpkgs/python3-logfury new file mode 120000 index 0000000000..710697327e --- /dev/null +++ b/srcpkgs/python3-logfury @@ -0,0 +1 @@ +python-logfury \ No newline at end of file