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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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-r3.ebuild,v 1.1 2009/04/07 18:30:59 hwoarang Exp $
4
5 EAPI="2"
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.8
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 PATCHES=(
34 "${FILESDIR}/configure.py.patch"
35 )
36
37 src_unpack() {
38 unpack ${A}
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 }
44
45 src_configure() {
46 distutils_python_version
47 addpredict ${QTDIR}/etc/settings
48
49 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
50 use debug && myconf="${myconf} -u"
51
52 "${python}" configure.py ${myconf}
53 }
54
55 src_install() {
56 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
57 dodoc ChangeLog NEWS README THANKS
58 use doc && dohtml -r doc/html/*
59 if use examples ; then
60 insinto /usr/share/doc/${PF}
61 doins -r examples
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20