diff options
Diffstat (limited to 'dev-python/PythonQt')
-rw-r--r-- | dev-python/PythonQt/Manifest | 3 | ||||
-rw-r--r-- | dev-python/PythonQt/PythonQt-3.1-r1.ebuild | 88 | ||||
-rw-r--r-- | dev-python/PythonQt/PythonQt-3.2.ebuild | 85 |
3 files changed, 176 insertions, 0 deletions
diff --git a/dev-python/PythonQt/Manifest b/dev-python/PythonQt/Manifest index e67e25d4b3a3..79e65a0fd558 100644 --- a/dev-python/PythonQt/Manifest +++ b/dev-python/PythonQt/Manifest @@ -1,5 +1,8 @@ AUX PythonQt-3.1-commit-433-441.patch 15025 BLAKE2B 180a5e734a4434e0723b09dde5963cdde9eaaa8865603b33fa69dfe78468e3699e87748d92130d3b584c3791923d8b6bbec79c045cd29ca9ff8e22d10b3225de SHA512 c1cc65defa0b34df3299f6c6c2c36daa1c3e205fbbb1ee8d9a6e3a2571b58be2ea4e101a137dc867598ef289222c94f26f5142dbd2ec3fff226ddea47cf3ec59 DIST PythonQt3.1.zip 4526699 BLAKE2B 37d79f4d12bc1e4909d08c0ba4c2b95c233aba5097898498575733f323a8d1a5079e85e35e6272d0271421cb945d8a359330ba5ac9854ebcc7b95030b6cf1ad1 SHA512 b3c208e3f909ebb15d40a6e83385f03e6196a8439e39cad4f924e7b1e774edbce83680298ab032161619d1358696a0d073028860f68540aadd8028b712ae8fc1 +DIST PythonQt3.2.zip 4539058 BLAKE2B c50b8333b71b6cbce6f372a0292a0ccfe791dc7eae5c660d4e6d1f5f2b3355644e3fd8cce9a514f0500e935f96c46976d0046ddd716465adb35d225e3c4cfeca SHA512 1ee0f50f5035568b38e945108f5496ba64355c6357c1ea8dfc17ad90fa360540769f94e0b3e0e398176e8a21c8afe139607f0b5a2e82c63f1cbd40201a25e0f0 +EBUILD PythonQt-3.1-r1.ebuild 2029 BLAKE2B 8cfa824f0661bf1a64dee441ef65d8dbdc344eb3838fc2b52ab8ede4de35c09591d214b904290465cce34382808c1dcddded91f510f490855e6d11d538a7095b SHA512 e4a9ef97155c7dd32b850023827029a8cb2caf8f505054228d4f11a1518755551192a7bf8e9a3f3dba5b306135e352669a1a2a4d2f64d6ca983dbbe2ca0fb279 EBUILD PythonQt-3.1.ebuild 1950 BLAKE2B e32ad4eb8b768628479946403713ef91f41419c97b9951b58c1e1b5ff3c310d0b085572660c22bbf3dc1d8efcc3aedfda1f29945cc56a95d3bb40cfbb35e1c27 SHA512 fd3b6db4306fb00df4be264a8bcc37390cf5cbe549177c0739e6a7be89c22c66935123a98640a1dd8ed37ccbd51088a25633bbddc6b3d69a84c64cf8a9908555 +EBUILD PythonQt-3.2.ebuild 1847 BLAKE2B cba31bddadaa3b0035d54b131c3f4e22bb0aa4e6d7202485f496c36d81e637b48343e2447f5e86eaddae3fe14b20b86d70d19a5af7469820994b664d0f4b8787 SHA512 815486fd8e171e8abc06a0e6465473e070d043b2074871c084f4584b9a21ad01981c86632d1bcaf20a0e097ef86a3f863e3b6c23d2ea347aee707e96f0e6d6cb EBUILD PythonQt-9999.ebuild 1864 BLAKE2B 14ada5f74d25d0797dbdeaccfa12746e89b5b27031e53d78dc4ff228b26766054a91af4b0025ccb1618ba42354d06ae6d1338a399fb23374d998b1f3d1a32d76 SHA512 3120052842008e64193375e20573194b637161534ba8a9a08e3572b6c777c3240724e28619bd80b9d6fbed8ff7fc6efe14005b4c690f0197c811cce8ecc0bb46 MISC metadata.xml 1048 BLAKE2B 68ea83dc4695440b6e30ccf5bc7fb2e753792d5aedbb89761738f820f23878baf20bc63a48546244fce0bad06cdeadf399da2e5d1244ac664289e4ab63b646df SHA512 b4cc9a0c286e86ec38cc6745a9c6f769e65226f3504eb83ce3893b50e3f31fab5e9152343515e12ffcb43a2fa051af43b6ec58f45e1aff0002c38d4db563763d diff --git a/dev-python/PythonQt/PythonQt-3.1-r1.ebuild b/dev-python/PythonQt/PythonQt-3.1-r1.ebuild new file mode 100644 index 000000000000..efab4efcc45e --- /dev/null +++ b/dev-python/PythonQt/PythonQt-3.1-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +MY_P=${PN}${PV} + +inherit qmake-utils python-single-r1 + +DESCRIPTION="A dynamic Python binding for the Qt framework" +HOMEPAGE="http://pythonqt.sourceforge.net/" +SRC_URI="mirror://sourceforge/pythonqt/pythonqt/${P}/${MY_P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +extensions webkit" + +RDEPEND="${PYTHON_DEPS} + <dev-qt/qtcore-5.9:5 + <dev-qt/qtgui-5.9:5 + <dev-qt/qtwidgets-5.9:5 + extensions? ( + <dev-qt/designer-5.9:5 + <dev-qt/qtdeclarative-5.9:5[widgets] + <dev-qt/qtmultimedia-5.9:5[widgets] + <dev-qt/qtnetwork-5.9:5 + <dev-qt/qtopengl-5.9:5 + <dev-qt/qtprintsupport-5.9:5 + <dev-qt/qtsql-5.9:5 + <dev-qt/qtsvg-5.9:5 + <dev-qt/qtxml-5.9:5 + <dev-qt/qtxmlpatterns-5.9:5 + webkit? ( <dev-qt/qtwebkit-5.9:5 ) + )" +DEPEND="${RDEPEND} + <dev-qt/qtxml-5.9:5 + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${MY_P}" + +REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}" + +# Bring uitools back, backport other fixes from trunk +PATCHES=( "${FILESDIR}/${P}-commit-433-441.patch" ) + +src_prepare() { + default + + if ! use extensions ; then + sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions" + fi + if ! use webkit ; then + # Remove webkit support if not used + sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \ + extensions/PythonQt_QtAll/PythonQt_QtAll.pro \ + || die "sed for webkit" + fi + + # Unset python version to use python-config + sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \ + || die "sed for python version" +} + +src_configure() { + eqmake5 PREFIX="${ED%/}"/usr +} + +src_install() { + einstalldocs + + # Includes + insinto /usr/include/PythonQt + doins -r src/*.h + insinto /usr/include/PythonQt/gui + doins -r src/gui/*.h + + if use extensions ; then + insinto /usr/include/PythonQt/extensions/PythonQt_QtAll + doins -r extensions/PythonQt_QtAll/*.h + fi + + # Libraries + dolib.so lib/libPythonQt* +} diff --git a/dev-python/PythonQt/PythonQt-3.2.ebuild b/dev-python/PythonQt/PythonQt-3.2.ebuild new file mode 100644 index 000000000000..9808ceef7b6c --- /dev/null +++ b/dev-python/PythonQt/PythonQt-3.2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +MY_P=${PN}${PV} + +inherit qmake-utils python-single-r1 + +DESCRIPTION="A dynamic Python binding for the Qt framework" +HOMEPAGE="http://pythonqt.sourceforge.net/" +SRC_URI="mirror://sourceforge/pythonqt/pythonqt/${P}/${MY_P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +extensions webkit" + +RDEPEND="${PYTHON_DEPS} + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + extensions? ( + dev-qt/designer:5 + dev-qt/qtdeclarative:5[widgets] + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 + webkit? ( dev-qt/qtwebkit:5 ) + )" +DEPEND="${RDEPEND} + dev-qt/qtxml:5 + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${MY_P}" + +REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}" + +src_prepare() { + default + + if ! use extensions ; then + sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions" + fi + if ! use webkit ; then + # Remove webkit support if not used + sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \ + extensions/PythonQt_QtAll/PythonQt_QtAll.pro \ + || die "sed for webkit" + fi + + # Unset python version to use python-config + sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \ + || die "sed for python version" +} + +src_configure() { + eqmake5 PREFIX="${ED%/}"/usr +} + +src_install() { + einstalldocs + + # Includes + insinto /usr/include/PythonQt + doins -r src/*.h + insinto /usr/include/PythonQt/gui + doins -r src/gui/*.h + + if use extensions ; then + insinto /usr/include/PythonQt/extensions/PythonQt_QtAll + doins -r extensions/PythonQt_QtAll/*.h + fi + + # Libraries + dolib.so lib/libPythonQt* +} |