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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Nov 15 03:12:12 2014 UTC (5 years, 3 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20