python-sip{,-devel,-PyQt5}: drop packages
This commit is contained in:
parent
0f26814874
commit
13135c7d70
4 changed files with 8 additions and 77 deletions
|
@ -1 +0,0 @@
|
||||||
sip
|
|
|
@ -1 +0,0 @@
|
||||||
sip
|
|
|
@ -1 +0,0 @@
|
||||||
sip
|
|
|
@ -1,9 +1,8 @@
|
||||||
# Template file for 'sip'
|
# Template file for 'sip'
|
||||||
pkgname=sip
|
pkgname=sip
|
||||||
version=4.19.24
|
version=4.19.24
|
||||||
revision=1
|
revision=2
|
||||||
create_wrksrc=yes
|
hostmakedepends="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="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -12,76 +11,22 @@ 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=edcd3790bb01938191eef0f6117de0bf56d1136626c0ddb678f3a558d62e41e5
|
checksum=edcd3790bb01938191eef0f6117de0bf56d1136626c0ddb678f3a558d62e41e5
|
||||||
|
|
||||||
post_extract() {
|
|
||||||
mv sip-$version sip-${py2_ver}
|
|
||||||
cp -a sip-${py2_ver} sip-${py3_ver}
|
|
||||||
cp -a sip-${py2_ver} sip-${py2_ver}-PyQt5
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
for pyver in $py2_ver $py3_ver ${py2_ver}-PyQt5; do
|
python3 configure.py \
|
||||||
if [ "${pyver%-PyQt5}" != "$py2_ver" ]; then
|
CC="${CC}" CFLAGS="${CFLAGS}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
||||||
pyinc="$py3_inc"
|
LINK="${CXX}" LINK_SHLIB="${CXX}" LFLAGS="${LDFLAGS}" STRIP="" \
|
||||||
else
|
INCDIR="${XBPS_CROSS_BASE}/${py3_inc}" ${pyqt5}
|
||||||
pyinc="$py2_inc"
|
make ${makejobs}
|
||||||
fi
|
|
||||||
if [ "${pyver##*-}" = "PyQt5" ]; then
|
|
||||||
pyqt5="--sip-module PyQt5.sip --no-tools"
|
|
||||||
fi
|
|
||||||
cd ${wrksrc}/sip-${pyver}
|
|
||||||
python${pyver%-PyQt5} configure.py \
|
|
||||||
CC="${CC}" CFLAGS="${CFLAGS}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
||||||
LINK="${CXX}" LINK_SHLIB="${CXX}" LFLAGS="${LDFLAGS}" STRIP="" \
|
|
||||||
INCDIR="${XBPS_CROSS_BASE}/${pyinc}" ${pyqt5}
|
|
||||||
make ${makejobs}
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${wrksrc}/sip-${py2_ver}
|
|
||||||
# install sip
|
|
||||||
make DESTDIR=${DESTDIR} install -C sipgen
|
|
||||||
# install python-sip
|
|
||||||
make DESTDIR=${DESTDIR} install -C siplib
|
|
||||||
vinstall sipconfig.py 644 $py2_sitelib
|
|
||||||
vinstall sipdistutils.py 644 $py2_sitelib
|
|
||||||
|
|
||||||
# install python3-sip
|
|
||||||
cd ${wrksrc}/sip-${py3_ver}
|
|
||||||
make DESTDIR=${DESTDIR} install -C sipgen
|
make DESTDIR=${DESTDIR} install -C sipgen
|
||||||
make DESTDIR=${DESTDIR} install -C siplib
|
make DESTDIR=${DESTDIR} install -C siplib
|
||||||
vinstall sipconfig.py 644 $py3_sitelib
|
vinstall sipconfig.py 644 $py3_sitelib
|
||||||
vinstall sipdistutils.py 644 $py3_sitelib
|
vinstall sipdistutils.py 644 $py3_sitelib
|
||||||
|
|
||||||
# install python2 PyQt5 sip
|
|
||||||
cd ${wrksrc}/sip-${py2_ver}-PyQt5
|
|
||||||
make DESTDIR=${DESTDIR} install -C siplib
|
|
||||||
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python-sip_package() {
|
|
||||||
lib32disabled=yes
|
|
||||||
depends="python"
|
|
||||||
short_desc="Python2 SIP bindings"
|
|
||||||
pkg_install() {
|
|
||||||
vmove ${py2_sitelib}/sip.so
|
|
||||||
vmove ${py2_sitelib}/sipconfig.py
|
|
||||||
vmove ${py2_sitelib}/sip.pyi
|
|
||||||
vlicense sip-${py2_ver}/LICENSE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
python-sip-devel_package() {
|
|
||||||
lib32disabled=yes
|
|
||||||
depends="sip-${version}_${revision} python-sip-${version}_${revision}"
|
|
||||||
short_desc="Python2 SIP bindings - development files"
|
|
||||||
pkg_install() {
|
|
||||||
vmove ${py2_inc}
|
|
||||||
vmove ${py2_sitelib}/sipdistutils.py
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
python3-sip_package() {
|
python3-sip_package() {
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
depends="python3"
|
depends="python3"
|
||||||
|
@ -90,7 +35,7 @@ python3-sip_package() {
|
||||||
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
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,14 +47,3 @@ python3-sip-devel_package() {
|
||||||
vmove ${py3_sitelib}/sipdistutils.py
|
vmove ${py3_sitelib}/sipdistutils.py
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
python-sip-PyQt5_package() {
|
|
||||||
lib32disabled=yes
|
|
||||||
depends="python"
|
|
||||||
short_desc="Python2 SIP bindings (PyQt5 version)"
|
|
||||||
pkg_install() {
|
|
||||||
vmove ${py2_sitelib}/PyQt5/sip.so
|
|
||||||
vmove ${py2_sitelib}/PyQt5/sip.pyi
|
|
||||||
vlicense sip-${py2_ver}-PyQt5/LICENSE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue