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

Contents of /dev-python/PyQt4/PyQt4-4.4.4-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sun Dec 13 15:49:01 2009 UTC (10 years, 2 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
  Remove obsolete versions. Pin 4.5.4 on correct sip and Qt versions. Remove
  qt3support useflag description from metadata, as it is no longer in use.
(Portage version: 2.2_rc56/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.4.4-r5.ebuild,v 1.13 2009/08/16 13:30:42 gentoofan23 Exp $
4
5 EAPI="2"
6
7 inherit distutils qt4
8
9 MY_P=PyQt-x11-gpl-${PV}
10 QTVER="4.4.2"
11
12 DESCRIPTION="A set of Python bindings for the Qt toolkit"
13 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
14 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 KEYWORDS="alpha amd64 hppa ia64 ppc ~ppc64 sparc x86 ~x86-fbsd"
19 IUSE="X assistant +dbus debug doc examples kde opengl phonon sql svg webkit xmlpatterns"
20
21 DEPEND="~dev-python/sip-4.7.9
22 >=x11-libs/qt-core-${QTVER}:4
23 >=x11-libs/qt-script-${QTVER}:4
24 >=x11-libs/qt-test-${QTVER}:4
25 X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?] )
26 assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
27 dbus? (
28 >=dev-python/dbus-python-0.80
29 >=x11-libs/qt-dbus-${QTVER}:4
30 )
31 opengl? ( >=x11-libs/qt-opengl-${QTVER}:4 )
32 phonon? (
33 !kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
34 kde? ( media-sound/phonon )
35 )
36 sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
37 svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
38 webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
39 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
40 RDEPEND="${DEPEND}"
41
42 S="${WORKDIR}/${MY_P}"
43
44 PATCHES=(
45 "${FILESDIR}/configure.py.patch"
46 "${FILESDIR}/${P}-qgraphicsproxywidget-avoid-event-callback-loop.patch"
47 "${FILESDIR}/fix_license_check.patch"
48 )
49
50 pyqt4_use_enable() {
51 use $1 && echo "--enable=${2:-$1}"
52 }
53
54 src_prepare() {
55 if ! use dbus; then
56 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
57 "${S}"/configure.py || die
58 fi
59 qt4_src_prepare
60 }
61
62 src_configure() {
63 distutils_python_version
64
65 local myconf="${python} configure.py
66 --confirm-license
67 --bindir=/usr/bin
68 --destdir=/usr/$(get_libdir)/python${PYVER}/site-packages
69 --sipdir=/usr/share/sip
70 $(use debug && echo '--debug')
71 --enable=QtCore
72 --enable=QtNetwork
73 --enable=QtScript
74 --enable=QtTest
75 --enable=QtXml
76 $(pyqt4_use_enable X QtGui)
77 $(pyqt4_use_enable X QtDesigner)
78 $(pyqt4_use_enable assistant QtAssistant)
79 $(pyqt4_use_enable assistant QtHelp)
80 $(pyqt4_use_enable opengl QtOpenGL)
81 $(pyqt4_use_enable phonon)
82 $(pyqt4_use_enable sql QtSql)
83 $(pyqt4_use_enable svg QtSvg)
84 $(pyqt4_use_enable webkit QtWebKit)
85 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)"
86 echo ${myconf}
87 ${myconf} || die "configuration failed"
88
89 # Fix insecure runpath
90 if use X ; then
91 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/QtDesigner::" \
92 "${S}"/QtDesigner/Makefile || die
93 fi
94 }
95
96 src_install() {
97 # INSTALL_ROOT is needed for the QtDesigner module,
98 # the other Makefiles use DESTDIR.
99 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed"
100
101 dodoc ChangeLog NEWS THANKS || die
102
103 if use doc; then
104 dohtml -r doc/html/* || die
105 fi
106
107 if use examples; then
108 insinto /usr/share/doc/${PF}
109 doins -r examples || die
110 fi
111 }

  ViewVC Help
Powered by ViewVC 1.1.20