40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'python3-pyqt5-qsci'
|
|
# XXX Keep in sync with qscintilla-qt5
|
|
# Splited because of circular dependencies
|
|
# qscintilla-qt5 -> PyQt5 -> pyqt5-qsci
|
|
pkgname=python3-pyqt5-qsci
|
|
version=2.14.1
|
|
revision=2
|
|
build_wrksrc=Python
|
|
build_style=sip-build
|
|
build_helper=qemu
|
|
hostmakedepends="qt5-qmake qt5-host-tools python3-PyQt5-devel
|
|
python3-PyQt-builder pkg-config"
|
|
makedepends="qscintilla-qt5-devel python3-PyQt5-devel qt5-devel python3-devel"
|
|
depends="python3-PyQt5"
|
|
short_desc="Qt5 port of Scintilla editor - Python 3 binding"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
|
|
distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_src-${version}.tar.gz"
|
|
checksum=dfe13c6acc9d85dfcba76ccc8061e71a223957a6c02f3c343b30a9d43a4cdd4d
|
|
lib32disabled=yes
|
|
|
|
CXXFLAGS="$(printf " -I$XBPS_CROSS_BASE/usr/include/qt5/%s" \
|
|
QtWidgets QtPrintSupport)"
|
|
|
|
post_extract() {
|
|
rm -rf src
|
|
ln -sf pyproject-qt5.toml Python/pyproject.toml
|
|
}
|
|
|
|
python3-pyqt5-qsci-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
lib32disabled=yes
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}/PyQt5/bindings
|
|
vmove usr/share/qt5/qsci/api
|
|
}
|
|
}
|