diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/PyQt5 |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/PyQt5')
-rw-r--r-- | dev-python/PyQt5/Manifest | 7 | ||||
-rw-r--r-- | dev-python/PyQt5/PyQt5-5.7.1.ebuild | 196 | ||||
-rw-r--r-- | dev-python/PyQt5/PyQt5-5.8.2.ebuild | 196 | ||||
-rw-r--r-- | dev-python/PyQt5/metadata.xml | 45 |
4 files changed, 444 insertions, 0 deletions
diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest new file mode 100644 index 000000000000..85640cdaffd0 --- /dev/null +++ b/dev-python/PyQt5/Manifest @@ -0,0 +1,7 @@ +DIST PyQt5_gpl-5.7.1.tar.gz 3733746 SHA256 be849f212a074049b9ebc10b6c07dddefb86e6d30e8df8a5c715cbb2cf7fad14 SHA512 7498713f73807522e58ae38ff58548cf80c2f2c418d6c55e20ce613cdc997e4ee7139076f1f152c7c3edb970bde14febc3496009f934e31ff71f01a1605f558f WHIRLPOOL 9322ccaaebf78a9e177703bae26f002cdfe9ad3ba45a9c7b9ccdd3b73cca96550e479b243b302d59eefdc1520a6e5b5f18ac5fabc1f8eff36f7f76d71b7dea11 +DIST PyQt5_gpl-5.8.2.tar.gz 3744907 SHA256 ebd70515b30bbd6098fee29e6271a6696b1183c5530ee30e6ba9aaab195536e8 SHA512 8b765b9ae6210b7312a2dc6ed94d2664ae569625fe8a27443bae4230d9d9c00e0cf3b4be6904c66ebceff5cd5bbd19a5a9794a0b3222c8098a55f0b94fc8d89b WHIRLPOOL a2cf7d65f73b0cba7d37339e22b4bb8d3a4a924dbbd4d093943e299cf4d96dfd66e81ecfc4a5bf570f37f33eaad458849d7ef93ea22b115eece88866067f2e22 +EBUILD PyQt5-5.7.1.ebuild 5612 SHA256 9cc63dfe3053a665263019919056c4ff654e97483fac58f7b4ce6bd9cdb12c45 SHA512 1bf9de7a46d07740e91d5497767b226435d20bc98eca0cce901e5b7f2e7de3f41a4e34b073f4d3280e0184387d8d07d06f7e0a002196659c1a9da8e3745dd366 WHIRLPOOL 36494a100fb28ba04e7de4dc80dc53f48efdb05eb0fd3aa645d82ffb90369a577580d7397cee2edd36cb245aaabb5b5d42d5de86ea05c5b8d76893fe4bd83823 +EBUILD PyQt5-5.8.2.ebuild 5636 SHA256 5d636464a9dbcaebfbab6e0b1032400f92b85882dbe2e9a7a7dee21a589c16d1 SHA512 71c23f5ce7c44be2252cba0efd8687591ac6e4980626d9d880a5a54a31d8b721697ca9a80990ac38481d54ab12036457e020cc7afca7e01a265472a05e106f5b WHIRLPOOL 65e2a1c3988004e80b8a308f2463629a323a6ef3cb056a3cf9b7bbce23ba452220da3fd7fcc5f0b13aed029d1dc09b91ffe334821e0a1e1d656ba2b1aa6f8dbe +MISC ChangeLog 5945 SHA256 bc33b54e774fca6c280fea23679a5e301d9b0e579000bc279fefa1e6cd4e22ae SHA512 36ca5033cba177eaac511fb501a9dc7db91ea8ed00ba412b93611261546c1b1c73d06e9fc65e20d76f1043c3ef73c776d9674f57ffc4b465efc979ef09ee6714 WHIRLPOOL 6261d3e758bb7fdc5e61df408f408794036b05116d4895492d5e1d5e59346996d788b49fa6da5a3e8453f87df8d1f04fa388bf1b1e9b0b0822354268b544afaa +MISC ChangeLog-2015 2530 SHA256 c0f5fb7e518d57246a272e1850019d5c6b17295aeb6be532c3ea0531993066ce SHA512 e84858c3d2dfc44e35eca767822dbdf42396f0df1c2b6676bfcd624be232ec4ead7daadc71dcadf204ac10bd91dddf0c37decea272f3e6130ae2b36aad6cb18f WHIRLPOOL 67f2ecb4cd02db99f6ffc1e0e1bb404c5067015cb85846704e285122c5074b286103ecaf9ef17e9874afad4784d18492808f192e60e363438f375408c1af45cd +MISC metadata.xml 2458 SHA256 76c968147d7a2e8135e38306261729f31498e340584f4442b119b0a46b5f3bd0 SHA512 8554c97aeb873a2a7e1d50b8aacc3638a87fdc0fdc367d61123b63bd506b1376873d88a967773e8f1050f0e8c35ae180d61c7eb2c213c345e5b17a3c0e4c7df8 WHIRLPOOL 2731d8a5af652bc6b372b12ed8ee714487abc542a2a1673a80b97110f800f453fcbd648124742a17463da6abb586359601016b70b2006bd8d68604e031b4bf5d diff --git a/dev-python/PyQt5/PyQt5-5.7.1.ebuild b/dev-python/PyQt5/PyQt5-5.7.1.ebuild new file mode 100644 index 000000000000..0de6722265f6 --- /dev/null +++ b/dev-python/PyQt5/PyQt5-5.7.1.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit multibuild python-r1 qmake-utils + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro" + +MY_P=${PN}_gpl-${PV/_pre/.dev} +if [[ ${PV} == *_pre* ]]; then + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" +else + SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" +fi + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 arm ~ppc64 x86" + +# TODO: QtNfc +IUSE="bluetooth dbus debug declarative designer doc examples gles2 gui help location + multimedia network opengl positioning printsupport sensors serialport sql svg + testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns" + +# The requirements below were extracted from configure.py +# and from the output of 'grep -r "%Import " "${S}"/sip' +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + bluetooth? ( gui ) + declarative? ( gui network ) + designer? ( widgets ) + help? ( gui widgets ) + location? ( positioning ) + multimedia? ( gui network ) + opengl? ( gui widgets ) + positioning? ( gui ) + printsupport? ( gui widgets ) + sensors? ( gui ) + serialport? ( gui ) + sql? ( widgets ) + svg? ( gui widgets ) + testlib? ( gui widgets ) + webchannel? ( network ) + webengine? ( network widgets? ( webchannel ) ) + webkit? ( gui network printsupport widgets ) + websockets? ( network ) + widgets? ( gui ) + xmlpatterns? ( network ) +" + +# Minimal supported version of Qt. +QT_PV="5.6.0:5" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-python/sip-4.19:=[${PYTHON_USEDEP}] + >=dev-qt/qtcore-${QT_PV} + >=dev-qt/qtxml-${QT_PV} + bluetooth? ( >=dev-qt/qtbluetooth-${QT_PV} ) + dbus? ( + dev-python/dbus-python[${PYTHON_USEDEP}] + >=dev-qt/qtdbus-${QT_PV} + ) + declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) + designer? ( >=dev-qt/designer-${QT_PV} ) + gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] ) + help? ( >=dev-qt/qthelp-${QT_PV} ) + location? ( >=dev-qt/qtlocation-${QT_PV} ) + multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] ) + network? ( >=dev-qt/qtnetwork-${QT_PV} ) + opengl? ( >=dev-qt/qtopengl-${QT_PV} ) + positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) + printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) + sensors? ( >=dev-qt/qtsensors-${QT_PV} ) + serialport? ( >=dev-qt/qtserialport-${QT_PV} ) + sql? ( >=dev-qt/qtsql-${QT_PV} ) + svg? ( >=dev-qt/qtsvg-${QT_PV} ) + testlib? ( >=dev-qt/qttest-${QT_PV} ) + webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) + webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] ) + webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] ) + websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) + widgets? ( >=dev-qt/qtwidgets-${QT_PV} ) + x11extras? ( >=dev-qt/qtx11extras-${QT_PV} ) + xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) +" +DEPEND="${RDEPEND} + dbus? ( virtual/pkgconfig ) +" + +S=${WORKDIR}/${MY_P} + +DOCS=( "${S}"/{ChangeLog,NEWS} ) + +pyqt_use_enable() { + use "$1" || return + + if [[ $# -eq 1 ]]; then + echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1} + else + shift + echo ${@/#/--enable=} + fi +} + +src_configure() { + configuration() { + local myconf=( + "${PYTHON}" + "${S}"/configure.py + $(usex debug '--debug --trace' '') + --verbose + --confirm-license + --qmake="$(qt5_get_bindir)"/qmake + --bindir="${EPREFIX}/usr/bin" + --destdir="$(python_get_sitedir)" + --sip-incdir="$(python_get_includedir)" + --qsci-api + --enable=QtCore + --enable=QtXml + $(pyqt_use_enable bluetooth) + $(pyqt_use_enable dbus QtDBus) + $(usex dbus '' --no-python-dbus) + $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets '')) + $(usex declarative '' --no-qml-plugin) + $(pyqt_use_enable designer) + $(usex designer '' --no-designer-plugin) + $(pyqt_use_enable gui) + $(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core})) + $(pyqt_use_enable help) + $(pyqt_use_enable location) + $(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets '')) + $(pyqt_use_enable network) + $(pyqt_use_enable opengl QtOpenGL) + $(pyqt_use_enable positioning) + $(pyqt_use_enable printsupport QtPrintSupport) + $(pyqt_use_enable sensors) + $(pyqt_use_enable serialport QtSerialPort) + $(pyqt_use_enable sql) + $(pyqt_use_enable svg) + $(pyqt_use_enable testlib QtTest) + $(pyqt_use_enable webchannel QtWebChannel) + $(pyqt_use_enable webengine QtWebEngineCore $(usex widgets QtWebEngineWidgets '')) + $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets) + $(pyqt_use_enable websockets QtWebSockets) + $(pyqt_use_enable widgets) + $(pyqt_use_enable x11extras QtX11Extras) + $(pyqt_use_enable xmlpatterns QtXmlPatterns) + ) + echo "${myconf[@]}" + "${myconf[@]}" || die + + eqmake5 -recursive ${PN}.pro + } + python_foreach_impl run_in_build_dir configuration +} + +src_compile() { + python_foreach_impl run_in_build_dir default +} + +src_install() { + installation() { + local tmp_root=${D%/}/tmp + emake INSTALL_ROOT="${tmp_root}" install + + local bin_dir=${tmp_root}${EPREFIX}/usr/bin + local exe + for exe in pylupdate5 pyrcc5 pyuic5; do + python_doexe "${bin_dir}/${exe}" + rm "${bin_dir}/${exe}" || die + done + + local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic + if python_is_python3; then + rm -r "${uic_dir}"/port_v2 || die + else + rm -r "${uic_dir}"/port_v3 || die + fi + + multibuild_merge_root "${tmp_root}" "${D}" + python_optimize + } + python_foreach_impl run_in_build_dir installation + + einstalldocs + use doc && dodoc -r doc/html + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/dev-python/PyQt5/PyQt5-5.8.2.ebuild b/dev-python/PyQt5/PyQt5-5.8.2.ebuild new file mode 100644 index 000000000000..3eab65c36a65 --- /dev/null +++ b/dev-python/PyQt5/PyQt5-5.8.2.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit multibuild python-r1 qmake-utils + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro" + +MY_P=${PN}_gpl-${PV/_pre/.dev} +if [[ ${PV} == *_pre* ]]; then + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" +else + SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" +fi + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# TODO: QtNfc +IUSE="bluetooth dbus debug declarative designer doc examples gles2 gui help location + multimedia network opengl positioning printsupport sensors serialport sql svg + testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns" + +# The requirements below were extracted from configure.py +# and from the output of 'grep -r "%Import " "${S}"/sip' +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + bluetooth? ( gui ) + declarative? ( gui network ) + designer? ( widgets ) + help? ( gui widgets ) + location? ( positioning ) + multimedia? ( gui network ) + opengl? ( gui widgets ) + positioning? ( gui ) + printsupport? ( gui widgets ) + sensors? ( gui ) + serialport? ( gui ) + sql? ( widgets ) + svg? ( gui widgets ) + testlib? ( gui widgets ) + webchannel? ( network ) + webengine? ( network widgets? ( webchannel ) ) + webkit? ( gui network printsupport widgets ) + websockets? ( network ) + widgets? ( gui ) + xmlpatterns? ( network ) +" + +# Minimal supported version of Qt. +QT_PV="5.6.0:5" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-python/sip-4.19.1:=[${PYTHON_USEDEP}] + >=dev-qt/qtcore-${QT_PV} + >=dev-qt/qtxml-${QT_PV} + bluetooth? ( >=dev-qt/qtbluetooth-${QT_PV} ) + dbus? ( + dev-python/dbus-python[${PYTHON_USEDEP}] + >=dev-qt/qtdbus-${QT_PV} + ) + declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) + designer? ( >=dev-qt/designer-${QT_PV} ) + gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] ) + help? ( >=dev-qt/qthelp-${QT_PV} ) + location? ( >=dev-qt/qtlocation-${QT_PV} ) + multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] ) + network? ( >=dev-qt/qtnetwork-${QT_PV} ) + opengl? ( >=dev-qt/qtopengl-${QT_PV} ) + positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) + printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) + sensors? ( >=dev-qt/qtsensors-${QT_PV} ) + serialport? ( >=dev-qt/qtserialport-${QT_PV} ) + sql? ( >=dev-qt/qtsql-${QT_PV} ) + svg? ( >=dev-qt/qtsvg-${QT_PV} ) + testlib? ( >=dev-qt/qttest-${QT_PV} ) + webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) + webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] ) + webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] ) + websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) + widgets? ( >=dev-qt/qtwidgets-${QT_PV} ) + x11extras? ( >=dev-qt/qtx11extras-${QT_PV} ) + xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) +" +DEPEND="${RDEPEND} + dbus? ( virtual/pkgconfig ) +" + +S=${WORKDIR}/${MY_P} + +DOCS=( "${S}"/{ChangeLog,NEWS} ) + +pyqt_use_enable() { + use "$1" || return + + if [[ $# -eq 1 ]]; then + echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1} + else + shift + echo ${@/#/--enable=} + fi +} + +src_configure() { + configuration() { + local myconf=( + "${PYTHON}" + "${S}"/configure.py + $(usex debug '--debug --qml-debug --trace' '') + --verbose + --confirm-license + --qmake="$(qt5_get_bindir)"/qmake + --bindir="${EPREFIX}/usr/bin" + --destdir="$(python_get_sitedir)" + --sip-incdir="$(python_get_includedir)" + --qsci-api + --enable=QtCore + --enable=QtXml + $(pyqt_use_enable bluetooth) + $(pyqt_use_enable dbus QtDBus) + $(usex dbus '' --no-python-dbus) + $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets '')) + $(usex declarative '' --no-qml-plugin) + $(pyqt_use_enable designer) + $(usex designer '' --no-designer-plugin) + $(pyqt_use_enable gui) + $(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core})) + $(pyqt_use_enable help) + $(pyqt_use_enable location) + $(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets '')) + $(pyqt_use_enable network) + $(pyqt_use_enable opengl QtOpenGL) + $(pyqt_use_enable positioning) + $(pyqt_use_enable printsupport QtPrintSupport) + $(pyqt_use_enable sensors) + $(pyqt_use_enable serialport QtSerialPort) + $(pyqt_use_enable sql) + $(pyqt_use_enable svg) + $(pyqt_use_enable testlib QtTest) + $(pyqt_use_enable webchannel QtWebChannel) + $(pyqt_use_enable webengine QtWebEngineCore $(usex widgets QtWebEngineWidgets '')) + $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets) + $(pyqt_use_enable websockets QtWebSockets) + $(pyqt_use_enable widgets) + $(pyqt_use_enable x11extras QtX11Extras) + $(pyqt_use_enable xmlpatterns QtXmlPatterns) + ) + echo "${myconf[@]}" + "${myconf[@]}" || die + + eqmake5 -recursive ${PN}.pro + } + python_foreach_impl run_in_build_dir configuration +} + +src_compile() { + python_foreach_impl run_in_build_dir default +} + +src_install() { + installation() { + local tmp_root=${D%/}/tmp + emake INSTALL_ROOT="${tmp_root}" install + + local bin_dir=${tmp_root}${EPREFIX}/usr/bin + local exe + for exe in pylupdate5 pyrcc5 pyuic5; do + python_doexe "${bin_dir}/${exe}" + rm "${bin_dir}/${exe}" || die + done + + local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic + if python_is_python3; then + rm -r "${uic_dir}"/port_v2 || die + else + rm -r "${uic_dir}"/port_v3 || die + fi + + multibuild_merge_root "${tmp_root}" "${D}" + python_optimize + } + python_foreach_impl run_in_build_dir installation + + einstalldocs + use doc && dodoc -r doc/html + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/dev-python/PyQt5/metadata.xml b/dev-python/PyQt5/metadata.xml new file mode 100644 index 000000000000..6540bb21471f --- /dev/null +++ b/dev-python/PyQt5/metadata.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>qt@gentoo.org</email> + <name>Gentoo Qt Project</name> + </maintainer> + <use> + <flag name="bluetooth">Build bindings for the QtBluetooth module</flag> + <flag name="dbus">Build bindings for the QtDBus module</flag> + <flag name="declarative">Build bindings for the QtQml/QtQuick modules and enable the qmlscene plugin</flag> + <flag name="designer">Build bindings for the QtDesigner module and enable the designer plugin</flag> + <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag> + <flag name="gui">Build bindings for the QtGui module</flag> + <flag name="help">Build bindings for the QtHelp module</flag> + <flag name="location">Build bindings for the QtLocation module</flag> + <flag name="multimedia">Build bindings for the QtMultimedia module</flag> + <flag name="network">Build bindings for the QtNetwork module</flag> + <flag name="opengl">Build bindings for the QtOpenGL module</flag> + <flag name="positioning">Build bindings for the QtPositioning module</flag> + <flag name="printsupport">Build bindings for the QtPrintSupport module</flag> + <flag name="sensors">Build bindings for the QtSensors module</flag> + <flag name="serialport">Build bindings for the QtSerialPort module</flag> + <flag name="sql">Build bindings for the QtSql module</flag> + <flag name="svg">Build bindings for the QtSvg module</flag> + <flag name="testlib">Build bindings for the QtTest module</flag> + <flag name="webchannel">Build bindings for the QtWebChannel module</flag> + <flag name="webengine">Build bindings for the QtWebEngine module</flag> + <flag name="webkit">Build bindings for the QtWebKit module</flag> + <flag name="websockets">Build bindings for the QtWebSockets module</flag> + <flag name="widgets">Build bindings for the QtWidgets module</flag> + <flag name="x11extras">Build bindings for the QtX11Extras module</flag> + <flag name="xmlpatterns">Build bindings for the QtXmlPatterns module</flag> + </use> + <upstream> + <maintainer status="active"> + <email>phil@riverbankcomputing.com</email> + <name>Phil Thompson</name> + </maintainer> + <bugs-to>mailto:pyqt@riverbankcomputing.com</bugs-to> + <doc>http://pyqt.sourceforge.net/Docs/PyQt5/</doc> + <remote-id type="pypi">PyQt5</remote-id> + <remote-id type="sourceforge">pyqt</remote-id> + </upstream> +</pkgmetadata> |