1SUMMARY="A powerful data analysis library for Python"
2DESCRIPTION="Pandas is a Python package providing fast, flexible \
3and expressive data structures designed to make working with \
4\"relational\" or \"labeled\" data both easy and intuitive. \
5It aims to be the fundamental high-level building block for \
6doing practical, real world data analysis in Python."
7HOMEPAGE="https://pandas.pydata.org/"
8COPYRIGHT="2008-2012 AQR Capital Management, LLC
9	Lambda Foundry, Inc.
10	PyData Development Team"
11LICENSE="BSD (3-clause)"
12REVISION="4"
13SOURCE_URI="https://files.pythonhosted.org/packages/source/p/pandas/pandas-$portVersion.tar.gz"
14CHECKSUM_SHA256="cbcb84d63867af3411fa063af3de64902665bb5b3d40b25b2059e40603594e87"
15
16ARCHITECTURES="all !x86_gcc2"
17SECONDARY_ARCHITECTURES="?x86"
18
19PROVIDES="
20	$portName = $portVersion
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	numpy$secondaryArchSuffix
25	"
26
27BUILD_REQUIRES="
28	haiku${secondaryArchSuffix}_devel
29	"
30BUILD_PREREQUIRES="
31	cmd:gcc$secondaryArchSuffix
32	cmd:gfortran$secondaryArchSuffix
33	cmd:pkg_config$secondaryArchSuffix
34	"
35
36PYTHON_PACKAGES=(python39)
37PYTHON_VERSIONS=(3.9)
38for i in "${!PYTHON_PACKAGES[@]}"; do
39pythonPackage=${PYTHON_PACKAGES[i]}
40pythonVersion=${PYTHON_VERSIONS[$i]}
41eval "PROVIDES_${pythonPackage}=\"\
42	${portName}_$pythonPackage = $portVersion\n\
43	\"; \
44REQUIRES_$pythonPackage=\"\
45	haiku$secondaryArchSuffix\n\
46	numpy${secondaryArchSuffix}_$pythonPackage\n\
47	pandas$secondaryArchSuffix\n\
48	dateutil_$pythonPackage\n\
49	pytz_$pythonPackage\n\
50	cmd:python$pythonVersion\
51	\""
52BUILD_REQUIRES="$BUILD_REQUIRES
53	numpy${secondaryArchSuffix}_$pythonPackage
54	setuptools_$pythonPackage
55	dateutil_$pythonPackage
56	pytz_$pythonPackage
57	"
58BUILD_PREREQUIRES="$BUILD_PREREQUIRES
59	cmd:cython$pythonVersion$secondaryArchSuffix
60	cmd:python$pythonVersion
61	"
62done
63
64
65INSTALL()
66{
67	for i in "${!PYTHON_PACKAGES[@]}"; do
68		pythonPackage=${PYTHON_PACKAGES[i]}
69		pythonVersion=${PYTHON_VERSIONS[$i]}
70
71		python=python$pythonVersion
72		installLocation=$prefix/lib/$python/vendor-packages/
73		export PYTHONPATH=$installLocation:$PYTHONPATH
74		mkdir -p $installLocation
75		rm -rf build
76		$python setup.py build install \
77			--root=/ --prefix=$prefix
78
79		packageEntries  $pythonPackage \
80			$prefix/lib/python*
81	done
82}
83