Added dev-python/m2crypto.
This commit is contained in:
parent
44872f837c
commit
b82258f539
4
dev-python/m2crypto/Manifest
Normal file
4
dev-python/m2crypto/Manifest
Normal file
|
@ -0,0 +1,4 @@
|
|||
AUX 0.24-cpuarch.patch 559 SHA256 3e6eee106d0323e365426a5e0d52dc277d98c1fdac15bf378ccec21d6ebaaf80 SHA512 9a7566f7bf973db23af2bb6038bc897461f628969314ac0d1363bbc42ce2e73f4a68b3cc7968741a6a36b3c0e81a7c90d31712b55e72d7cabb7d5cde07344588 WHIRLPOOL 4904b0251ed96991eb7b96a3f1000dcdb030814a6ac91b1161e5cf5779ba81e575b23b0484619f3a4b0b9865283ff5359be87c1176bc3a8214e75e5f7664e3b6
|
||||
DIST M2Crypto-0.24.0.tar.gz 184457 SHA256 80a56441a1d2c0cf27e725be7554c92598b938fc8767ee2c71fdbc2fdc055ee8 SHA512 c23ae0f8ac790d4ef108a217a44e994341f6bbe4e12a7fef2518d8def82331246a145e19a2504b82b790a3ad4b467d2facc8a73bb7f1190b56441d8482c66aca WHIRLPOOL 47a437ee1207b4cca8d67aa4bdec95b9194030e3fc7146ace8d071caa9be829f3e9516ff9399e695615acdf930a90040deb0f1175d81994465ed0853688e3b37
|
||||
EBUILD m2crypto-0.24.0.ebuild 1211 SHA256 78923b147c808f12ef476600f52aea21bcd5ce8f7d7bf2d999dba287f4e7f2ca SHA512 3658ef70ec1625c247905f4aa9dcf2597bc4488da0b866738d2e51bffdeff5b36544eec3334d9eb51947cbac20433a45e0f4dc946e30c616c0153abcef8241e9 WHIRLPOOL a49c9b179b8ae31419c0745f5b8cc489982e916de2d4b7ff4e75e973fac1791d65b0a60efbc2a1fd53b77dc441c902d7b90a8b9c5daa0df8a0b29ac3dcdccd5a
|
||||
MISC metadata.xml 380 SHA256 5ab7583a3fb8617ce68eb175d57b6a1ba951baca62d0179d80f63aca9eba3635 SHA512 f2e3b4228c45471f0132b3bb412f017f4006eb82bd63e187db3efdfd3f412c1db19bdb79d37630bb059f75ef69f110687b8924d22c2aef0101cb40eb3486f1e6 WHIRLPOOL f7bbc7ad82ae17374b32f1606bbf8960c799800debf709111abffb1df8da39d4492038dbeb3e3eb135f81f43038615d6d0fc0810151a58d5c27a3936237df9da
|
11
dev-python/m2crypto/files/0.24-cpuarch.patch
Normal file
11
dev-python/m2crypto/files/0.24-cpuarch.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- M2Crypto-0.24.0/setup.py 2017-04-24 01:53:45.223167325 +0200
|
||||
+++ M2Crypto-0.24.0/setup.py.orig 2017-04-24 01:52:50.368912266 +0200
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
# For RedHat-based distros, the '-D__{arch}__' option for
|
||||
# Swig needs to be normalized, particularly on i386.
|
||||
- mach = os.getenv('__SWIG_CPU_ARCH', platform.machine().lower())
|
||||
+ mach = platform.machine().lower()
|
||||
if mach in ('i386', 'i486', 'i586', 'i686'):
|
||||
arch = '__i386__'
|
||||
elif mach in ('ppc64', 'powerpc64'):
|
55
dev-python/m2crypto/m2crypto-0.24.0.ebuild
Normal file
55
dev-python/m2crypto/m2crypto-0.24.0.ebuild
Normal file
|
@ -0,0 +1,55 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit eutils distutils-r1
|
||||
|
||||
MY_PN="M2Crypto"
|
||||
|
||||
DESCRIPTION="M2Crypto: A Python crypto and SSL toolkit"
|
||||
HOMEPAGE="https://gitlab.com/m2crypto/m2crypto https://pypi.python.org/pypi/M2Crypto"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="libressl"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-1.3.28:0
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
# Tests access network, and fail randomly. Bug #431458.
|
||||
RESTRICT=test
|
||||
|
||||
python_prepare_all() {
|
||||
epatch "${FILESDIR}"/0.24-cpuarch.patch
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use amd64; then
|
||||
export __SWIG_CPU_ARCH=i686
|
||||
fi
|
||||
if use x86; then
|
||||
export __SWIG_CPU_ARCH=x86_64
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
12
dev-python/m2crypto/metadata.xml
Normal file
12
dev-python/m2crypto/metadata.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">M2Crypto</remote-id>
|
||||
<remote-id type="gitlab">m2crypto/m2crypto</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue