mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
Matplotlib: new recipe (#5324)
This commit is contained in:
102
dev-python/matplotlib/matplotlib-3.3.3.recipe
Normal file
102
dev-python/matplotlib/matplotlib-3.3.3.recipe
Normal file
@@ -0,0 +1,102 @@
|
||||
SUMMARY="Pure python plotting library with matlab like syntax"
|
||||
DESCRIPTION="Matplotlib is a plotting library for the Python programming \
|
||||
language and its numerical mathematics extension NumPy. It provides an \
|
||||
object-oriented API for embedding plots into applications using \
|
||||
general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+. There is \
|
||||
also a procedural \"pylab\" interface, designed to closely resemble that of \
|
||||
MATLAB, though its use is discouraged."
|
||||
HOMEPAGE="https://matplotlib.org/"
|
||||
COPYRIGHT="2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael \
|
||||
Droettboom and the Matplotlib development team \
|
||||
2012 - 2020 The Matplotlib development team"
|
||||
LICENSE="Matplotlib
|
||||
Adobe
|
||||
BitstreamVera
|
||||
BSD (3-clause)
|
||||
MIT
|
||||
SIL Open Font License v1.1
|
||||
CC0 1.0 Universal
|
||||
AMS
|
||||
Anti-Grain Geometry
|
||||
BaKoMa
|
||||
ColorBrewer
|
||||
Qhull
|
||||
STIX
|
||||
yorick"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/matplotlib/matplotlib/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="12c8a48373b7e46d4c9b84629a8964341357d9a56ac2ac1f2475669bf3102f94"
|
||||
SOURCE_FILENAME="matplotlib-$portVersion.tar.gz"
|
||||
SOURCE_DIR="matplotlib-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
"
|
||||
|
||||
pythonPackage="python3"
|
||||
pythonVersion="3.7"
|
||||
|
||||
PROVIDES_python3="
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
"
|
||||
REQUIRES_python3="
|
||||
cmd:python$pythonVersion
|
||||
matplotlib$secondaryArchSuffix
|
||||
dateutil_$pythonPackage
|
||||
numpy${secondaryArchSuffix}_$pythonPackage
|
||||
pillow${secondaryArchSuffix}_$pythonPackage
|
||||
pyqt${secondaryArchSuffix}_$pythonPackage
|
||||
pytz_$pythonPackage
|
||||
six_$pythonPackage
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
numpy${secondaryArchSuffix}_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cat > setup.cfg << EOF
|
||||
[libs]
|
||||
enable_lto = True
|
||||
system_freetype = True
|
||||
system_qhull = False
|
||||
|
||||
[packages]
|
||||
sample_data = True
|
||||
|
||||
[gui_support]
|
||||
macosx = False
|
||||
|
||||
[rc_options]
|
||||
backend = Qt5Agg
|
||||
EOF
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
}
|
||||
Reference in New Issue
Block a user