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

Contents of /dev-python/PyQt4/PyQt4-4.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Nov 21 14:19:15 2008 UTC (11 years, 3 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, with updated deps. Drop older hardmasked version. Drop x86-fbsd keyword as deps can't be met.
(Portage version: 2.2_rc14/cvs/Linux 2.6.27-hh5 i686)

1 # Copyright 1999-2008 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.2.ebuild,v 1.2 2008/05/25 13:05:29 ingmar 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 ~x86-fbsd"
17 IUSE="dbus debug doc examples opengl qt3support svg X"
18
19 RDEPEND=">=dev-python/sip-4.7.6
20 >=x11-libs/qt-core-4.4.0:4
21 dbus? ( >=x11-libs/qt-dbus-4.4.0:4 )
22 opengl? ( >=x11-libs/qt-opengl-4.4.0:4 )
23 svg? ( >=x11-libs/qt-svg-4.4.0:4 )
24 qt3support? ( >=x11-libs/qt-qt3support-4.4.0:4 )
25 X? ( >=x11-libs/qt-gui-4.4.0:4 )"
26
27 DEPEND="${RDEPEND}
28 sys-devel/libtool"
29
30 S=${WORKDIR}/${MY_P}
31
32 QT4_BUILT_WITH_USE_CHECK="zlib"
33
34 src_unpack() {
35 unpack ${A}
36 sed -i -e "s:^[ \t]*check_license():# check_license():" "${S}"/configure.py
37 sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" "${S}"/configure.py
38 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
39 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
40 }
41
42 src_compile() {
43 distutils_python_version
44 addpredict ${QTDIR}/etc/settings
45
46 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
47 use debug && myconf="${myconf} -u"
48
49 "${python}" configure.py ${myconf}
50 emake || die "emake failed"
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
55 dodoc ChangeLog NEWS README THANKS
56 use doc && dohtml -r doc/html/*
57 if use examples ; then
58 insinto /usr/share/doc/${PF}
59 doins -r examples
60 fi
61 }

  ViewVC Help
Powered by ViewVC 1.1.20