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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed May 20 23:01:26 2009 UTC (10 years, 9 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
  Turn on default useflags for all Qt modules. Remove old. Move src_unpack
  content to src_prepare, where it belongs.
(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-r1.ebuild,v 1.7 2009/02/18 20:18:41 jer Exp $
4
5 EAPI=1
6
7 inherit distutils qt4
8
9 MY_P=PyQt-x11-gpl-${PV}
10
11 DESCRIPTION="PyQt is 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.8
20 >=x11-libs/qt-core-4.4.2:4
21 dbus? ( >=x11-libs/qt-dbus-4.4.2:4 )
22 opengl? ( >=x11-libs/qt-opengl-4.4.2:4 )
23 svg? ( >=x11-libs/qt-svg-4.4.2:4 )
24 qt3support? ( >=x11-libs/qt-qt3support-4.4.2:4 )
25 webkit? ( >=x11-libs/qt-webkit-4.4.2:4 )
26 X? ( >=x11-libs/qt-gui-4.4.2:4 )"
27
28 DEPEND="${RDEPEND}
29 sys-devel/libtool"
30
31 S=${WORKDIR}/${MY_P}
32
33 QT4_BUILT_WITH_USE_CHECK="zlib"
34
35 src_unpack() {
36 unpack ${A}
37 sed -i -e "s:^[ \t]*check_license():# check_license():" "${S}"/configure.py
38 sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" "${S}"/configure.py
39 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
40 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
41 }
42
43 src_compile() {
44 distutils_python_version
45 addpredict ${QTDIR}/etc/settings
46
47 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
48 use debug && myconf="${myconf} -u"
49
50 "${python}" configure.py ${myconf}
51 emake || die "emake failed"
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
56 dodoc ChangeLog NEWS README THANKS
57 use doc && dohtml -r doc/html/*
58 if use examples ; then
59 insinto /usr/share/doc/${PF}
60 doins -r examples
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20