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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 31 06:44:05 2008 UTC (11 years, 8 months ago) by neurogeek
Branch: MAIN
Fixes bugs #233369 and #222435, thanks to Remy Bosch for the patch. Removed old version
(Portage version: 2.2_rc3/cvs/Linux 2.6.18-gentoo-r3 i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 inherit distutils qt4
6
7 MY_P=PyQt-x11-gpl-${PV}
8
9 DESCRIPTION="PyQt is a set of Python bindings for the Qt toolkit."
10 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
11 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/PyQt4/${MY_P}.tar.gz"
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
15 IUSE="debug doc examples"
16
17 RDEPEND="=x11-libs/qt-4*
18 >=dev-python/sip-4.7.5"
19 DEPEND="${RDEPEND}
20 sys-devel/libtool"
21
22 S=${WORKDIR}/${MY_P}
23
24 QT4_BUILT_WITH_USE_CHECK="zlib"
25
26 src_unpack() {
27 unpack ${A}
28 epatch "${FILESDIR}/${P}_compile.patch"
29 sed -i -e "s:^[ \t]*check_license():# check_license():" "${S}"/configure.py
30 sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" "${S}"/configure.py
31 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
32 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
33 }
34
35 src_compile() {
36 distutils_python_version
37 addpredict ${QTDIR}/etc/settings
38
39 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
40 use debug && myconf="${myconf} -u"
41
42 "${python}" configure.py ${myconf}
43
44 sed -i -e 'i #!/bin/bash\n' "${S}"/pyuic/pyuic4 || die "sed failed"
45 emake || die "emake failed"
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
50 dodoc ChangeLog NEWS README THANKS
51 use doc && dohtml -r doc/html/*
52 if use examples ; then
53 insinto /usr/share/doc/${PF}
54 doins -r examples
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20