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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (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.7: +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-r2.ebuild,v 1.7 2009/06/09 20:45:17 hwoarang Exp $
4
5 EAPI=1
6
7 inherit distutils qt4
8
9 MY_P=PyQt-x11-gpl-${PV}
10
11 DESCRIPTION="A set of Python bindings for the Qt toolkit"
12 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
13 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/PyQt4/${MY_P}.tar.gz"
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
17 IUSE="dbus debug doc examples opengl qt3support svg webkit X"
18
19 RDEPEND="~dev-python/sip-4.7.9
20 >=x11-libs/qt-core-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 src_unpack() {
34 unpack ${A}
35 sed -i -e "s:^[ \t]*check_license():# check_license():" "${S}"/configure.py
36 sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" "${S}"/configure.py
37 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
38 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
39 }
40
41 src_compile() {
42 distutils_python_version
43 addpredict ${QTDIR}/etc/settings
44
45 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
46 use debug && myconf="${myconf} -u"
47
48 "${python}" configure.py ${myconf}
49 emake || die "emake failed"
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
54 dodoc ChangeLog NEWS README THANKS
55 use doc && dohtml -r doc/html/*
56 if use examples ; then
57 insinto /usr/share/doc/${PF}
58 doins -r examples
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20