X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.cmpwn.com (mail.cmpwn.com [45.56.77.53]) by lists.alpinelinux.org (Postfix) with ESMTP id 74AB05C6192 for ; Sun, 5 Aug 2018 17:37:35 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1533490962; bh=UVE/hKXaLztWpDmvwoKsJWAIdThkE3Yz4z3J0vQGWzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gtRsPA3CLa/Xb9TptvoHlQz+FBJFQ+g4c6AYqKUgoIB+fnfQ7K13WOrlynYAlodNu CtSpKrCYGZ+Wuicx6kacMPCG+9R7Fjujn4B8hRt8dW9g1BJB8vSPq2QI0JabGYrm+P Rs24eIncZf6p31t9ck+4tC4UDbAY9Sf+bBw1Un+U= From: Drew DeVault To: alpine-aports@lists.alpinelinux.org Cc: Drew DeVault , ~sircmpwn/public-inbox@lists.sr.ht Subject: [alpine-aports] [PATCH 2/3] testing/py-pyqt5: new aport Date: Sun, 5 Aug 2018 13:37:29 -0400 Message-Id: <20180805173730.2890-2-sir@cmpwn.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180805173730.2890-1-sir@cmpwn.com> References: <20180805173730.2890-1-sir@cmpwn.com> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/py-pyqt5/APKBUILD | 91 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 testing/py-pyqt5/APKBUILD diff --git a/testing/py-pyqt5/APKBUILD b/testing/py-pyqt5/APKBUILD new file mode 100644 index 0000000000..7c825acf37 --- /dev/null +++ b/testing/py-pyqt5/APKBUILD @@ -0,0 +1,91 @@ +# Maintainer: Drew DeVault +pkgname=py-pyqt5 +_pkgname=pyqt5 +pkgver=5.9.2 +pkgrel=0 +pkgdesc="Python bindings for the Qt5 toolkit" +url="http://riverbankcomputing.co.uk/software/pyqt/intro" +arch="noarch" +license="GPL-3.0-only" +depends="py-sip pyqt5-common" +makedepends=" + python2-dev python3-dev py-sip-dev py-opengl py-dbus qt5-qtconnectivity-dev + qt5-qtmultimedia-dev qt5-qttools-dev qt5-qtserialport-dev qt5-qtsvg-dev + qt5-qtwebengine-dev qt5-qtwebkit-dev qt5-qtwebsockets-dev + qt5-qtx11extras-dev +" +subpackages="py2-${_pkgname}:_py2:all py3-${_pkgname}:_py3:all pyqt5-common:_common" +source="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt5_gpl-$pkgver.tar.gz" +builddir="$srcdir/PyQt5_gpl-$pkgver" +options="!check" + +prepare() { + default_prepare + cp -r "$builddir" "$builddir"-py3 +} + +build() { + cd "$builddir" + python2 configure.py \ + --confirm-license \ + --no-sip-files \ + --qsci-api \ + --verbose \ + -q /usr/bin/qmake-qt5 + + make + + cd "$builddir"-py3 + python3 configure.py \ + --confirm-license \ + --no-sip-files \ + --qsci-api \ + --verbose \ + -q /usr/bin/qmake-qt5 + + make +} + +package() { + mkdir -p "$pkgdir" +} + +_common() { + pkgdesc="Common PyQt files shared between py2-pyqt5 and py3-pyqt5" + depends="qt5-qtbase" + + cd "$builddir" + install -Dm644 PyQt5.api "$subpkgdir"/usr/share/qt/qsci/api/python/PyQt5.api + + install -d "$subpkgdir"/usr/share/sip/PyQt5 + cp -a sip/* "$subpkgdir"/usr/share/sip/PyQt5 +} + +_py2() { + cd "$builddir" + _py +} + +_py3() { + cd "$builddir"-py3 + _py + + mv $subpkgdir/usr/bin/pyuic5 $subpkgdir/usr/bin/pyuic5-3 + mv $subpkgdir/usr/bin/pylupdate5 $subpkgdir/usr/bin/pylupdate5-3 + mv $subpkgdir/usr/bin/pyrcc5 $subpkgdir/usr/bin/pyrcc5-3 + rm \ + "$subpkgdir"/usr/lib/qt5/plugins/designer/libpyqt5.so \ + "$subpkgdir"/usr/lib/qt5/plugins/PyQt5/libpyqt5qmlplugin.so +} + +_py() { + local pyver="${subpkgname:2:1}" + local python="python$pyver" + pkgdesc="$pkgdesc (for $python)" + depends="$python ${depends//py-/py$pyver-}" + install_if="$pkgname=$pkgver-r$pkgrel $python" + make DESTDIR="$subpkgdir" INSTALL_ROOT="$subpkgdir" install + # provided via _common + rm "$subpkgdir"/usr/share/qt5/qsci/api/python/PyQt5.api +} +sha512sums="5af2e65addaed7dd02d8dbf7a7c63767e565fc8edeb7b51e5991a00cda29f75b666529097646e821aaff556f350a929fd451f548bba76e97355b7fe10bd913bc PyQt5_gpl-5.9.2.tar.gz" -- 2.18.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---