mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 08:10:07 +02:00
qpageview: new recipe (#6896)
* qpageview: new recipe * fix duplicate "haiku" requires
This commit is contained in:
64
dev-python/qpageview/qpageview-0.6.2.recipe
Normal file
64
dev-python/qpageview/qpageview-0.6.2.recipe
Normal file
@@ -0,0 +1,64 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/q/qpageview/qpageview-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1c1e3d6dc5374264e1f7c7d4a78616a811e8131c7ed214aed7e08a71f12923e9"
|
||||
SOURCE_DIR="qpageview-$portVersion"
|
||||
PYTHON3_VERSION="3.8"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
qpageview = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
PROVIDES_python38="
|
||||
qpageview_python38 = $portVersion
|
||||
"
|
||||
REQUIRES_python38="
|
||||
$REQUIRES
|
||||
pyqt5_python38
|
||||
python_poppler_qt5_python38
|
||||
cmd:python$PYTHON3_VERSION
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
pyqt5_python38
|
||||
setuptools_python38
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python$PYTHON3_VERSION
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
OLDPYTHONPATH=$PYTHONPATH
|
||||
|
||||
local packageLinksDir=$(dirname $portPackageLinksDir)
|
||||
local python3PackageName="${portName}_python38-$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 -c3)
|
||||
installLocation=lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
|
||||
|
||||
$python setup.py install --prefix=$prefix --root=/
|
||||
|
||||
packageEntries python38 \
|
||||
$installLocation
|
||||
|
||||
rmdir $prefix/lib/python$pythonVersion
|
||||
|
||||
### PACKAGING HACK ###
|
||||
rm -rf $prefix/packages
|
||||
### PACKAGING HACK ###
|
||||
}
|
||||
Reference in New Issue
Block a user