zipp-0.6.0.recipe revision 464ccd0d
1SUMMARY="A pathlib-compatible Zipfile object wrapper"
2DESCRIPTION="Zipp is a pathlib-compatible Zipfile object wrapper."
3HOMEPAGE="https://pypi.python.org/pypi/zipp"
4COPYRIGHT="2019 Jason R. Coombs"
5LICENSE="MIT"
6REVISION="1"
7SOURCE_URI="https://pypi.io/packages/source/z/zipp/zipp-$portVersion.tar.gz"
8CHECKSUM_SHA256="3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e"
9
10ARCHITECTURES="any"
11
12PROVIDES="
13	$portName = $portVersion
14	"
15REQUIRES="
16	haiku
17	"
18
19BUILD_REQUIRES="
20	haiku_devel
21	"
22
23PYTHON_PACKAGES=(python python36 python3)
24PYTHON_VERSIONS=(2.7 3.6 3.7)
25for i in "${!PYTHON_PACKAGES[@]}"; do
26pythonPackage=${PYTHON_PACKAGES[i]}
27pythonVersion=${PYTHON_VERSIONS[$i]}
28eval "PROVIDES_${pythonPackage}=\"\
29	${portName}_$pythonPackage = $portVersion\
30	\"; \
31REQUIRES_$pythonPackage=\"\
32	haiku\n\
33	cmd:python$pythonVersion\
34	\""
35BUILD_REQUIRES="$BUILD_REQUIRES
36	setuptools_$pythonPackage"
37BUILD_PREREQUIRES="$BUILD_PREREQUIRES
38	cmd:python$pythonVersion"
39done
40
41INSTALL()
42{
43	for i in "${!PYTHON_PACKAGES[@]}"; do
44		pythonPackage=${PYTHON_PACKAGES[i]}
45		pythonVersion=${PYTHON_VERSIONS[$i]}
46
47		python=python$pythonVersion
48		installLocation=$prefix/lib/$python/vendor-packages/
49		export PYTHONPATH=$installLocation:$PYTHONPATH
50		mkdir -p $installLocation
51		rm -rf build
52		$python setup.py build install \
53			--root=/ --prefix=$prefix
54
55		packageEntries  $pythonPackage \
56			$prefix/lib/python*
57	done
58}
59