/[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.1 - (hide annotations) (download)
Tue Jun 9 18:53:57 2009 UTC (10 years, 10 months ago) by hwoarang
Branch: MAIN
Version bump
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)

1 hwoarang 1.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.4 2009/06/05 10:41:17 yngwin 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 +qt3support sql svg webkit xmlpatterns"
20    
21     DEPEND=">=dev-python/sip-4.8
22     >=x11-libs/qt-core-${QTVER}:4[qt3support?]
23     >=x11-libs/qt-script-${QTVER}:4
24     >=x11-libs/qt-test-${QTVER}:4
25     X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?,qt3support?] )
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[qt3support?] )
32     phonon? (
33     !kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
34     kde? ( media-sound/phonon )
35     )
36     qt3support? ( >=x11-libs/qt-qt3support-${QTVER}:4 )
37     sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
38     svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
39     webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
40     xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
41     RDEPEND="${DEPEND}"
42    
43     S="${WORKDIR}/${MY_P}"
44    
45     PATCHES=(
46     "${FILESDIR}/configure.py.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=$(python_get_sitedir)
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     for pkg in QtDesigner QtGui QtCore; do
92     sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/${pkg}::" \
93     "${S}"/${pkg}/Makefile || die "failed to fix rpath issues"
94     done
95     fi
96     }
97    
98     src_install() {
99     python_need_rebuild
100     # INSTALL_ROOT is needed for the QtDesigner module,
101     # the other Makefiles use DESTDIR.
102     emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed"
103    
104     dodoc ChangeLog NEWS THANKS || die
105    
106     if use doc; then
107     dohtml -r doc/html/* || die
108     fi
109    
110     if use examples; then
111     insinto /usr/share/doc/${PF}
112     doins -r examples || die
113     fi
114     }

  ViewVC Help
Powered by ViewVC 1.1.20