/[gentoo-x86]/dev-python/PyQt4/PyQt4-4.11.3.ebuild
Gentoo

Contents of /dev-python/PyQt4/PyQt4-4.11.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 17 17:25:08 2015 UTC (4 years, 8 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop version that is not going to get stabilized.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.11.3.ebuild,v 1.3 2015/05/11 18:00:13 pesa Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7
8 inherit eutils multibuild multilib python-r1 qmake-utils
9
10 DESCRIPTION="Python bindings for the Qt framework"
11 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ https://pypi.python.org/pypi/PyQt4"
12
13 MY_PN="PyQt-x11-gpl"
14 if [[ ${PV} == *_pre* ]]; then
15 MY_P=${MY_PN}-${PV%_pre*}-snapshot-${REVISION}
16 SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
17 else
18 MY_P=${MY_PN}-${PV}
19 SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
20 fi
21
22 LICENSE="|| ( GPL-2 GPL-3 )"
23 SLOT="0"
24 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
25
26 IUSE="X dbus debug declarative designer doc examples help kde multimedia
27 opengl phonon script scripttools sql svg testlib webkit xmlpatterns"
28 REQUIRED_USE="
29 ${PYTHON_REQUIRED_USE}
30 sql? ( X )
31 testlib? ( X )
32 "
33
34 # Minimal supported version of Qt.
35 QT_PV="4.8.5:4"
36
37 RDEPEND="
38 ${PYTHON_DEPS}
39 >=dev-python/sip-4.16.6:=[${PYTHON_USEDEP}]
40 >=dev-qt/qtcore-${QT_PV}
41 X? ( >=dev-qt/qtgui-${QT_PV} )
42 dbus? (
43 dev-python/dbus-python[${PYTHON_USEDEP}]
44 >=dev-qt/qtdbus-${QT_PV}
45 )
46 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
47 designer? ( >=dev-qt/designer-${QT_PV} )
48 help? ( >=dev-qt/qthelp-${QT_PV} )
49 multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
50 opengl? ( >=dev-qt/qtopengl-${QT_PV} )
51 phonon? (
52 kde? ( >=media-libs/phonon-4.7[qt4] )
53 !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} >=media-libs/phonon-4.7[qt4] ) )
54 )
55 script? ( >=dev-qt/qtscript-${QT_PV} )
56 scripttools? ( >=dev-qt/qtgui-${QT_PV} )
57 sql? ( >=dev-qt/qtsql-${QT_PV} )
58 svg? ( >=dev-qt/qtsvg-${QT_PV} )
59 testlib? ( >=dev-qt/qttest-${QT_PV} )
60 webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
61 xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
62 "
63 DEPEND="${RDEPEND}
64 dbus? ( virtual/pkgconfig )
65 "
66
67 S=${WORKDIR}/${MY_P}
68
69 src_prepare() {
70 # Support qreal on arm architecture (bug 322349).
71 use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
72
73 # Allow building against KDE's phonon (bug 525354).
74 epatch "${FILESDIR}/${PN}-4.11.2-phonon.patch"
75
76 # Avoid automagic dependency.
77 use dbus || rm -fr dbus
78 }
79
80 pyqt_use_enable() {
81 use $1 && echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}}
82 }
83
84 src_configure() {
85 configuration() {
86 local myconf=(
87 "${PYTHON}"
88 "${S}"/configure-ng.py
89 $(use debug && echo --debug --trace)
90 --verbose
91 --confirm-license
92 --qmake="$(qt4_get_bindir)"/qmake
93 --destdir="$(python_get_sitedir)"
94 --qsci-api
95 --enable=QtCore
96 --enable=QtNetwork
97 --enable=QtXml
98 $(pyqt_use_enable X QtGui)
99 $(pyqt_use_enable dbus QtDBus)
100 $(pyqt_use_enable declarative)
101 $(pyqt_use_enable designer)
102 $(usex designer '' --no-designer-plugin)
103 $(pyqt_use_enable help)
104 $(pyqt_use_enable multimedia)
105 $(pyqt_use_enable opengl QtOpenGL)
106 $(pyqt_use_enable phonon phonon)
107 $(pyqt_use_enable script)
108 $(pyqt_use_enable scripttools QtScriptTools)
109 $(pyqt_use_enable sql)
110 $(pyqt_use_enable svg)
111 $(pyqt_use_enable testlib QtTest)
112 $(pyqt_use_enable webkit QtWebKit)
113 $(pyqt_use_enable xmlpatterns QtXmlPatterns)
114 )
115 echo "${myconf[@]}"
116 "${myconf[@]}" || die
117
118 eqmake4 -recursive ${PN}.pro
119 }
120 python_foreach_impl run_in_build_dir configuration
121 }
122
123 src_compile() {
124 python_foreach_impl run_in_build_dir default
125 }
126
127 src_install() {
128 installation() {
129 local tmp_root=${D%/}/tmp
130 emake INSTALL_ROOT="${tmp_root}" install
131
132 local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic
133 if python_is_python3; then
134 rm -r "${uic_dir}"/port_v2 || die
135 else
136 rm -r "${uic_dir}"/port_v3 || die
137 fi
138
139 python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4
140 rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die
141
142 multibuild_merge_root "${tmp_root}" "${D}"
143 python_optimize
144 }
145 python_foreach_impl run_in_build_dir installation
146
147 dodoc NEWS THANKS
148
149 if use doc; then
150 dodoc -r doc/html
151 fi
152
153 if use examples; then
154 insinto /usr/share/doc/${PF}
155 doins -r examples
156 fi
157 }

  ViewVC Help
Powered by ViewVC 1.1.20