From 8ad071ca0dd6b47c013327ef5a2ab1981c64d59a Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 17 Apr 2019 13:43:57 -0300 Subject: [PATCH] python-pyside: remove Depends on Qt4, has no consumer since FreeCAD switched to Pyside2 --- srcpkgs/libpyside-common-devel | 1 - srcpkgs/libpyside-python | 1 - srcpkgs/libpyside-python-devel | 1 - srcpkgs/libpyside-python3 | 1 - srcpkgs/libpyside-python3-devel | 1 - srcpkgs/python-pyside-phonon | 1 - srcpkgs/python-pyside/INSTALL.msg | 1 + srcpkgs/python-pyside/template | 121 ++---------------------------- srcpkgs/python-pyside/update | 1 - srcpkgs/python3-pyside | 1 - srcpkgs/python3-pyside-phonon | 1 - 11 files changed, 6 insertions(+), 125 deletions(-) delete mode 120000 srcpkgs/libpyside-common-devel delete mode 120000 srcpkgs/libpyside-python delete mode 120000 srcpkgs/libpyside-python-devel delete mode 120000 srcpkgs/libpyside-python3 delete mode 120000 srcpkgs/libpyside-python3-devel delete mode 120000 srcpkgs/python-pyside-phonon create mode 100644 srcpkgs/python-pyside/INSTALL.msg delete mode 100644 srcpkgs/python-pyside/update delete mode 120000 srcpkgs/python3-pyside delete mode 120000 srcpkgs/python3-pyside-phonon diff --git a/srcpkgs/libpyside-common-devel b/srcpkgs/libpyside-common-devel deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/libpyside-common-devel +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/libpyside-python b/srcpkgs/libpyside-python deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/libpyside-python +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/libpyside-python-devel b/srcpkgs/libpyside-python-devel deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/libpyside-python-devel +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/libpyside-python3 b/srcpkgs/libpyside-python3 deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/libpyside-python3 +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/libpyside-python3-devel b/srcpkgs/libpyside-python3-devel deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/libpyside-python3-devel +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/python-pyside-phonon b/srcpkgs/python-pyside-phonon deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/python-pyside-phonon +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/python-pyside/INSTALL.msg b/srcpkgs/python-pyside/INSTALL.msg new file mode 100644 index 0000000000..6de207b7aa --- /dev/null +++ b/srcpkgs/python-pyside/INSTALL.msg @@ -0,0 +1 @@ +python-pyside is no longer provided by Void Linux, and will be fully removed from the repos on 2019-07-17 diff --git a/srcpkgs/python-pyside/template b/srcpkgs/python-pyside/template index 15e913b65a..7053f0e7fc 100644 --- a/srcpkgs/python-pyside/template +++ b/srcpkgs/python-pyside/template @@ -1,120 +1,9 @@ # Template file for 'python-pyside' pkgname=python-pyside version=1.2.2 -revision=6 -wrksrc="pyside-qt4.8+${version}" -hostmakedepends="cmake" -makedepends="python-devel python3-devel libshiboken-python-devel - libshiboken-python3-devel qt-devel qt-webkit-devel MesaLib-devel phonon-devel" -depends="python-shiboken" -pycompile_module="PySide" -short_desc="LGPL-licensed Python2 bindings for the Qt4 toolkit" -maintainer="Enno Boland " +revision=7 +archs=noarch +build_style=meta +short_desc="LGPL-licensed Python2 bindings for the Qt4 toolkit (removed package)" +license="BSD-2-Clause" homepage="http://www.pyside.org/" -license="LGPL-2.1" -distfiles="https://download.qt.io/official_releases/pyside/pyside-qt4.8+${version}.tar.bz2" -checksum=a1a9df746378efe52211f1a229f77571d1306fb72830bbf73f0d512ed9856ae1 - -pre_build() { - # Fix generated pkgconfig file to require the shiboken - # library suffixed with the correct python version. - sed -i '/^Requires:/s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' libpyside/pyside.pc.in -} -do_build() { - local args= configure_args=" - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_TESTS=OFF" - - for pyver in $py2_ver $py3_ver; do - unset args - if [ "$pyver" = "$py2_ver" ]; then - args="-DPYTHON_SUFFIX=-python$py2_ver" - fi - - [ ! -d build-${pyver} ] && mkdir build-${pyver} - pushd build-${pyver} - cmake .. ${configure_args} ${args} - make ${makejobs} - popd - done -} -do_install() { - for pyver in $py2_ver $py3_ver; do - make -C build-${pyver} DESTDIR=${DESTDIR} install - done -} -post_install() { - # Fix conflict between .pc files - rm -f ${DESTDIR}/usr/lib/pkgconfig/* - for pyver in $py2_ver $py3_ver; do - vinstall build-${pyver}/libpyside/pyside.pc 644 \ - usr/lib/pkgconfig pyside-python${pyver}.pc - done -} - -libpyside-common-devel_package() { - short_desc+=" - common development files" - pkg_install() { - vmove usr/include - vmove usr/lib/cmake/PySide-${version}/PySideConfig.cmake - vmove usr/lib/cmake/PySide-${version}/PySideConfigVersion.cmake - vmove usr/share - } -} -libpyside-python-devel_package() { - depends="libpyside-common-devel-${version}_${revision} - libpyside-python-${version}_${revision}" - short_desc+=" - shared library (development files)" - pkg_install() { - vmove usr/lib/cmake/PySide-${version}/PySideConfig-python${py2_ver}.cmake - vmove usr/lib/pkgconfig/pyside-python${py2_ver}.pc - vmove usr/lib/libpyside-python${py2_ver}.so - } -} -libpyside-python_package() { - short_desc+=" - shared library" - pkg_install() { - vmove usr/lib/libpyside-python${py2_ver}.so.${version%.*} - vmove usr/lib/libpyside-python${py2_ver}.so.${version} - } -} -python-pyside-phonon_package() { - depends="${sourcepkg}-${version}_${revision}" - short_desc+=" - phonon bindings" - pkg_install() { - vmove ${py2_sitelib}/PySide/phonon.so - } -} -libpyside-python3-devel_package() { - depends="libpyside-common-devel-${version}_${revision} - libpyside-python3-${version}_${revision}" - short_desc="${short_desc/Python2/Python3} - shared library (development files)" - pkg_install() { - vmove usr/lib/cmake/PySide-${version}/PySideConfig-python${py3_ver}.cmake - vmove usr/lib/pkgconfig/pyside-python${py3_ver}.pc - vmove usr/lib/libpyside-python${py3_ver}.so - } -} -libpyside-python3_package() { - short_desc="${short_desc/Python2/Python3} - shared library" - pkg_install() { - vmove usr/lib/libpyside-python${py3_ver}.so.${version%.*} - vmove usr/lib/libpyside-python${py3_ver}.so.${version} - } -} -python3-pyside-phonon_package() { - depends="python3-pyside-${version}_${revision}" - short_desc="${short_desc/Python2/Python3} - phonon bindings" - pkg_install() { - vmove ${py3_sitelib}/PySide/phonon.so - } -} -python3-pyside_package() { - depends="python3-shiboken" - pycompile_module="PySide" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove ${py3_sitelib} - } -} diff --git a/srcpkgs/python-pyside/update b/srcpkgs/python-pyside/update deleted file mode 100644 index 08165b13c9..0000000000 --- a/srcpkgs/python-pyside/update +++ /dev/null @@ -1 +0,0 @@ -pkgname="pyside-qt4.8+" diff --git a/srcpkgs/python3-pyside b/srcpkgs/python3-pyside deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/python3-pyside +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file diff --git a/srcpkgs/python3-pyside-phonon b/srcpkgs/python3-pyside-phonon deleted file mode 120000 index 0b943cf46e..0000000000 --- a/srcpkgs/python3-pyside-phonon +++ /dev/null @@ -1 +0,0 @@ -python-pyside \ No newline at end of file