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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 28 00:42:27 2009 UTC (10 years, 8 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old ebuild
(Portage version: 2.2_rc33/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.5.ebuild,v 1.2 2009/06/16 15:15:35 hwoarang Exp $
4
5 EAPI="2"
6
7 inherit distutils qt4
8
9 MY_P=PyQt-x11-gpl-${PV}
10 QTVER="4.5.1"
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 GPL-3 )"
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.8
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}/fix_license_check.patch"
47 )
48
49 pyqt4_use_enable() {
50 use $1 && echo "--enable=${2:-$1}"
51 }
52
53 src_prepare() {
54 if ! use dbus; then
55 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
56 "${S}"/configure.py || die
57 fi
58 qt4_src_prepare
59 }
60
61 src_configure() {
62 distutils_python_version
63
64 local myconf="${python} configure.py
65 --confirm-license
66 --bindir=/usr/bin
67 --destdir=$(python_get_sitedir)
68 --sipdir=/usr/share/sip
69 $(use debug && echo '--debug')
70 --enable=QtCore
71 --enable=QtNetwork
72 --enable=QtScript
73 --enable=QtTest
74 --enable=QtXml
75 $(pyqt4_use_enable X QtGui)
76 $(pyqt4_use_enable X QtDesigner)
77 $(pyqt4_use_enable assistant QtAssistant)
78 $(pyqt4_use_enable assistant QtHelp)
79 $(pyqt4_use_enable opengl QtOpenGL)
80 $(pyqt4_use_enable phonon)
81 $(pyqt4_use_enable sql QtSql)
82 $(pyqt4_use_enable svg QtSvg)
83 $(pyqt4_use_enable webkit QtWebKit)
84 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)"
85 echo ${myconf}
86 ${myconf} || die "configuration failed"
87
88 # Fix insecure runpath
89 if use X ; then
90 for pkg in QtDesigner QtGui QtCore; do
91 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/${pkg}::" \
92 "${S}"/${pkg}/Makefile || die "failed to fix rpath issues"
93 done
94 fi
95 }
96
97 src_install() {
98 python_need_rebuild
99 # INSTALL_ROOT is needed for the QtDesigner module,
100 # the other Makefiles use DESTDIR.
101 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed"
102
103 dodoc ChangeLog NEWS THANKS || die
104
105 if use doc; then
106 dohtml -r doc/html/* || die
107 fi
108
109 if use examples; then
110 insinto /usr/share/doc/${PF}
111 doins -r examples || die
112 fi
113 }

  ViewVC Help
Powered by ViewVC 1.1.20