python: massive setuptools fix

This commit is contained in:
blshkv 2017-11-30 10:25:36 +08:00
parent 76bada5ac8
commit 60d5029e88
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 0 additions and 129 deletions

View file

@ -1,20 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="python wrapper for Xvfb, Xephyr and Xvnc"
HOMEPAGE="https://github.com/ponty/pyvirtualdisplay"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"

View file

@ -1,38 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
MY_PV="${PV//_/-}"
MY_P=capstone-"${MY_PV}"
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit eutils multilib distutils-r1
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
HOMEPAGE="http://www.capstone-engine.org/"
SRC_URI="https://github.com/aquynh/capstone/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="cython"
RDEPEND="cython? ( dev-python/cython
dev-libs/capstone[python] )"
DEPEND=""
S=${WORKDIR}/${MY_P}/bindings/python
python_prepare() {
#our hack to adjust cython setup
if use cython; then
cp setup_cython.py setup.py
# sed -e 's|install:|install_default:|' -i Makefile || die "sed failed"
# sed -e 's|install_cython:|install:|' -i Makefile || die "sed failed"
#this section is from Makefile
cp capstone/__init__.py pyx/__init__.py
for i in arm{,_const} arm64{,_const} mips{,_const} ppc{,_const} x86{,_const} sparc{,_const} systemz sysz_const xcore{,_const}; do
cp capstone/${i}.py pyx/${i}.pyx
done
fi
}

View file

@ -1,23 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5} )
inherit distutils-r1
DESCRIPTION="Beautify, unpack or deobfuscate JavaScript"
HOMEPAGE="https://pypi.python.org/pypi/jsbeautifier"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
>=dev-python/six-1.6.1[${PYTHON_USEDEP}]
>=dev-python/editorconfig-0.12.0[${PYTHON_USEDEP}]
"

View file

@ -1,26 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 flag-o-matic
DESCRIPTION="Experimental Python wrapper for OpenSSL"
HOMEPAGE="https://github.com/nabla-c0d3/nassl"
#SRC_URI="https://github.com/nabla-c0d3/nassl/archive/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="http://dev.pentoo.ch/~blshkv/distfiles/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_compile() {
append-cflags -fno-strict-aliasing
append-ldflags -Wl,-z,noexecstack
python2.7 setup.py build
}

View file

@ -1,22 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1
DESCRIPTION="A pure Python module that provides read access to Windows Registry files"
HOMEPAGE="http://www.williballenthin.com/registry/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
dev-python/enum34"