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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jul 17 07:07:19 2009 UTC (10 years, 7 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old ebuilds
(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.4.4-r4.ebuild,v 1.4 2009/06/09 20:45:17 hwoarang Exp $
4
5 EAPI="2"
6 inherit distutils qt4
7
8 MY_P=PyQt-x11-gpl-${PV}
9
10 DESCRIPTION="A set of Python bindings for the Qt toolkit"
11 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
12 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/PyQt4/${MY_P}.tar.gz"
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16 IUSE="+dbus debug doc examples +opengl +qt3support +svg +webkit +X"
17
18 RDEPEND="~dev-python/sip-4.7.9
19 >=x11-libs/qt-core-4.4.2:4
20 >=x11-libs/qt-xmlpatterns-4.4.2:4
21 dbus? ( dev-python/dbus-python
22 >=x11-libs/qt-dbus-4.4.2:4 )
23 opengl? ( >=x11-libs/qt-opengl-4.4.2:4 )
24 svg? ( >=x11-libs/qt-svg-4.4.2:4 )
25 qt3support? ( >=x11-libs/qt-qt3support-4.4.2:4 )
26 webkit? ( >=x11-libs/qt-webkit-4.4.2:4 )
27 X? ( >=x11-libs/qt-gui-4.4.2:4 )"
28 DEPEND="${RDEPEND}
29 sys-devel/libtool"
30
31 S=${WORKDIR}/${MY_P}
32
33 PATCHES=(
34 "${FILESDIR}/configure.py.patch"
35 "${FILESDIR}/PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch"
36 )
37
38 src_prepare() {
39 sed -i -e "s:^[ \t]*check_license():# check_license():" "${S}"/configure.py
40 sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" "${S}"/configure.py
41 sed -i -e "s:\"QT_INSTALL_HEADERS\"\: os.path.join(qt_dir, \"include\":\"QT_INSTALL_HEADERS\"\: os.path.join(qt_dir, \"include/qt4\":g" "${S}"/configure.py
42 sed -i -e "s:\"QT_INSTALL_LIBS\"\: os.path.join(qt_dir, \"lib\":\"QT_INSTALL_LIBS\"\: os.path.join(qt_dir, \"lib/qt4\":g" "${S}"/configure.py
43 qt4_src_prepare
44 }
45
46 src_configure() {
47 distutils_python_version
48 addpredict ${QTDIR}/etc/settings
49
50 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
51 use debug && myconf="${myconf} -u"
52
53 "${python}" configure.py ${myconf}
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
58 dodoc ChangeLog NEWS README THANKS
59 use doc && dohtml -r doc/html/*
60 if use examples ; then
61 insinto /usr/share/doc/${PF}
62 doins -r examples
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20