mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
dev-python/PythonQt: version bump to 3.2.
Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
committed by
Patrice Clement
parent
5858b9d7b5
commit
6235e2268f
@@ -1 +1,2 @@
|
||||
DIST PythonQt3.1.zip 4526699 BLAKE2B 37d79f4d12bc1e4909d08c0ba4c2b95c233aba5097898498575733f323a8d1a5079e85e35e6272d0271421cb945d8a359330ba5ac9854ebcc7b95030b6cf1ad1 SHA512 b3c208e3f909ebb15d40a6e83385f03e6196a8439e39cad4f924e7b1e774edbce83680298ab032161619d1358696a0d073028860f68540aadd8028b712ae8fc1
|
||||
DIST PythonQt3.2.zip 4539058 BLAKE2B c50b8333b71b6cbce6f372a0292a0ccfe791dc7eae5c660d4e6d1f5f2b3355644e3fd8cce9a514f0500e935f96c46976d0046ddd716465adb35d225e3c4cfeca SHA512 1ee0f50f5035568b38e945108f5496ba64355c6357c1ea8dfc17ad90fa360540769f94e0b3e0e398176e8a21c8afe139607f0b5a2e82c63f1cbd40201a25e0f0
|
||||
|
||||
85
dev-python/PythonQt/PythonQt-3.2.ebuild
Normal file
85
dev-python/PythonQt/PythonQt-3.2.ebuild
Normal file
@@ -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*
|
||||
}
|
||||
Reference in New Issue
Block a user