sip: update to 4.19.23

Close: #24076
This commit is contained in:
Đoàn Trần Công Danh 2020-08-09 16:33:13 +07:00 committed by Danh Doan
parent 84c132b15a
commit bb6da8f926

View file

@ -1,23 +1,24 @@
# Template file for 'sip' # Template file for 'sip'
pkgname=sip pkgname=sip
version=4.19.19 version=4.19.23
revision=2 revision=1
create_wrksrc=yes
hostmakedepends="python-devel python3-devel" hostmakedepends="python-devel python3-devel"
makedepends="${hostmakedepends}" makedepends="${hostmakedepends}"
short_desc="Python extension module generator for C/C++ libraries" short_desc="Python extension module generator for C/C++ libraries"
maintainer="Alessio Sergi <al3hex@gmail.com>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, GPL-3.0-only, custom:SIP" license="GPL-2.0-only, GPL-3.0-only, custom:SIP"
homepage="https://riverbankcomputing.com/software/sip/intro" homepage="https://riverbankcomputing.com/software/sip/intro"
distfiles="https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz" distfiles="https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz"
checksum=5436b61a78f48c7e8078e93a6b59453ad33780f80c644e5f3af39f94be1ede44 checksum=22ca9bcec5388114e40d4aafd7ccd0c4fe072297b628d0c5cdfa2f010c0bc7e7
pre_build() { post_extract() {
mkdir -p sip-${py2_ver} mv sip-$version sip-${py2_ver}
mv * sip-${py2_ver} || true
cp -a sip-${py2_ver} sip-${py3_ver} cp -a sip-${py2_ver} sip-${py3_ver}
cp -a sip-${py2_ver} sip-${py3_ver}-PyQt5 cp -a sip-${py2_ver} sip-${py3_ver}-PyQt5
cp -a sip-${py2_ver} sip-${py2_ver}-PyQt5 cp -a sip-${py2_ver} sip-${py2_ver}-PyQt5
} }
do_build() { do_build() {
for pyver in $py2_ver $py3_ver ${py3_ver}-PyQt5 ${py2_ver}-PyQt5; do for pyver in $py2_ver $py3_ver ${py3_ver}-PyQt5 ${py2_ver}-PyQt5; do
if [ "${pyver%-PyQt5}" != "$py2_ver" ]; then if [ "${pyver%-PyQt5}" != "$py2_ver" ]; then
@ -36,6 +37,7 @@ do_build() {
make ${makejobs} make ${makejobs}
done done
} }
do_install() { do_install() {
cd ${wrksrc}/sip-${py2_ver} cd ${wrksrc}/sip-${py2_ver}
# install sip # install sip
@ -65,44 +67,47 @@ do_install() {
python-sip_package() { python-sip_package() {
lib32disabled=yes lib32disabled=yes
depends="${sourcepkg}-${version}_${revision} python" depends="python"
pycompile_module="sipconfig.py"
short_desc="Python2 SIP bindings" short_desc="Python2 SIP bindings"
pkg_install() { pkg_install() {
vmove ${py2_sitelib}/sip.so vmove ${py2_sitelib}/sip.so
vmove ${py2_sitelib}/sipconfig.py vmove ${py2_sitelib}/sipconfig.py
vmove ${py2_sitelib}/sip.pyi vmove ${py2_sitelib}/sip.pyi
vlicense sip-${py2_ver}/LICENSE
} }
} }
python-sip-devel_package() { python-sip-devel_package() {
depends="python-sip-${version}_${revision}" lib32disabled=yes
pycompile_module="sipdistutils.py" depends="sip-${version}_${revision} python-sip-${version}_${revision}"
short_desc="Python2 SIP bindings - development files" short_desc="Python2 SIP bindings - development files"
pkg_install() { pkg_install() {
vmove ${py2_inc} vmove ${py2_inc}
vmove ${py2_sitelib}/sipdistutils.py vmove ${py2_sitelib}/sipdistutils.py
} }
} }
python3-sip_package() { python3-sip_package() {
lib32disabled=yes lib32disabled=yes
depends="${sourcepkg}-${version}_${revision} python3" depends="python3"
pycompile_module="sipconfig.py"
short_desc="Python3 SIP bindings" short_desc="Python3 SIP bindings"
pkg_install() { pkg_install() {
vmove ${py3_sitelib}/sip.so vmove ${py3_sitelib}/sip.so
vmove ${py3_sitelib}/sipconfig.py vmove ${py3_sitelib}/sipconfig.py
vmove ${py3_sitelib}/sip.pyi vmove ${py3_sitelib}/sip.pyi
vlicense sip-${py3_ver}/LICENSE
} }
} }
python3-sip-devel_package() { python3-sip-devel_package() {
depends="python3-sip-${version}_${revision}" depends="python3-sip-${version}_${revision} sip-${version}_${revision}"
pycompile_module="sipdistutils.py"
short_desc="Python3 SIP bindings - development files" short_desc="Python3 SIP bindings - development files"
pkg_install() { pkg_install() {
vmove ${py3_inc} vmove ${py3_inc}
vmove ${py3_sitelib}/sipdistutils.py vmove ${py3_sitelib}/sipdistutils.py
} }
} }
python3-sip-PyQt5_package() { python3-sip-PyQt5_package() {
lib32disabled=yes lib32disabled=yes
depends="${sourcepkg}-${version}_${revision} python3" depends="${sourcepkg}-${version}_${revision} python3"
@ -112,12 +117,14 @@ python3-sip-PyQt5_package() {
vmove ${py3_sitelib}/PyQt5/sip.pyi vmove ${py3_sitelib}/PyQt5/sip.pyi
} }
} }
python-sip-PyQt5_package() { python-sip-PyQt5_package() {
lib32disabled=yes lib32disabled=yes
depends="${sourcepkg}-${version}_${revision} python" depends="python"
short_desc="Python2 SIP bindings (PyQt5 version)" short_desc="Python2 SIP bindings (PyQt5 version)"
pkg_install() { pkg_install() {
vmove ${py2_sitelib}/PyQt5/sip.so vmove ${py2_sitelib}/PyQt5/sip.so
vmove ${py2_sitelib}/PyQt5/sip.pyi vmove ${py2_sitelib}/PyQt5/sip.pyi
vlicense sip-${py2_ver}-PyQt5/LICENSE
} }
} }