From bfa0c486259edb539210a39ee5724025f50ef636 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 14 Apr 2018 22:09:29 +0200 Subject: [PATCH] python-M2Crypto: add python3 flavor --- srcpkgs/python-M2Crypto/template | 19 ++++++++++++++----- srcpkgs/python3-M2Crypto | 1 + 2 files changed, 15 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/python3-M2Crypto diff --git a/srcpkgs/python-M2Crypto/template b/srcpkgs/python-M2Crypto/template index 8541fb89439..a0c91fc4031 100644 --- a/srcpkgs/python-M2Crypto/template +++ b/srcpkgs/python-M2Crypto/template @@ -1,14 +1,14 @@ # Template file for 'python-M2Crypto' pkgname=python-M2Crypto version=0.29.0 -revision=1 +revision=2 wrksrc="M2Crypto-${version}" -build_style=python2-module +build_style=python-module pycompile_module="M2Crypto" -hostmakedepends="python-setuptools swig libressl-devel" -makedepends="libressl-devel python-devel" +hostmakedepends="python-setuptools python3-setuptools swig libressl-devel" +makedepends="libressl-devel python-devel python3-devel" depends="python-typing" -short_desc="Python crypto and SSL toolkit" +short_desc="Python2 crypto and SSL toolkit" maintainer="Andrea Brancaleoni " license="MIT" homepage="https://gitlab.com/m2crypto/m2crypto/" @@ -23,3 +23,12 @@ pre_configure() { post_install() { vlicense LICENCE } + +python3-M2Crypto_package() { + pycompile_module="M2Crypto" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENCE + } +} diff --git a/srcpkgs/python3-M2Crypto b/srcpkgs/python3-M2Crypto new file mode 120000 index 00000000000..b9eea2597a6 --- /dev/null +++ b/srcpkgs/python3-M2Crypto @@ -0,0 +1 @@ +python-M2Crypto \ No newline at end of file