mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
65 lines
1.7 KiB
Bash
65 lines
1.7 KiB
Bash
SUMMARY="Widget to display page-based documents for Qt5/PyQt5"
|
|
DESCRIPTION="qpageview provides a page based document viewer widget for Qt5/PyQt5.
|
|
It has a flexible architecture potentionally supporting many formats. Currently, it supports SVG \
|
|
documents, images, and, using the Poppler-Qt5 binding, PDF documents."
|
|
HOMEPAGE="https://qpageview.org/"
|
|
COPYRIGHT="2009-2022 Wilbert Berendsen"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="3"
|
|
SOURCE_URI="https://pypi.python.org/packages/source/q/qpageview/qpageview-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="1c1e3d6dc5374264e1f7c7d4a78616a811e8131c7ed214aed7e08a71f12923e9"
|
|
SOURCE_DIR="qpageview-$portVersion"
|
|
PYTHON3_VERSION="3.10"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
qpageview = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
PROVIDES_python310="
|
|
qpageview_python310 = $portVersion
|
|
"
|
|
REQUIRES_python310="
|
|
$REQUIRES
|
|
pyqt5_python310
|
|
python_poppler_qt5_python310
|
|
cmd:python$PYTHON3_VERSION
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
pyqt5_python310
|
|
setuptools_python310
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python$PYTHON3_VERSION
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
OLDPYTHONPATH=$PYTHONPATH
|
|
|
|
local packageLinksDir=$(dirname $portPackageLinksDir)
|
|
local python3PackageName="${portName}_python310-$portFullVersion"
|
|
|
|
# GENERIC: all python_setuptools-based installs need this
|
|
python=$packageLinksDir/$python3PackageName/cmd~python$PYTHON3_VERSION/bin/python$PYTHON3_VERSION
|
|
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c4)
|
|
installLocation=lib/python$pythonVersion/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
|
|
|
|
$python setup.py install --prefix=$prefix --root=/
|
|
|
|
packageEntries python310 \
|
|
$installLocation
|
|
|
|
rmdir $prefix/lib/python$pythonVersion
|
|
|
|
### PACKAGING HACK ###
|
|
rm -rf $prefix/packages
|
|
### PACKAGING HACK ###
|
|
}
|