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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 10 13:49:12 2007 UTC (12 years, 8 months ago) by caleb
Branch: MAIN
Changes since 1.1: +2 -4 lines
Fix installation dir
(Portage version: 2.1.2.7)

1 # Copyright 1999-2007 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.3.ebuild,v 1.1 2007/08/09 11:56:23 caleb Exp $
4
5 inherit distutils
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/pyqt/"
11 SRC_URI="http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/${MY_P}.tar.gz"
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="debug doc examples"
16
17 RDEPEND="=x11-libs/qt-4*
18 >=dev-python/sip-4.7"
19 DEPEND="${RDEPEND}
20 sys-devel/libtool"
21
22 S=${WORKDIR}/${MY_P}
23
24 src_unpack() {
25 unpack ${A}
26 sed -i -e "s:^[ \t]*check_license():# check_license():" ${S}/configure.py
27 sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" ${S}/configure.py
28 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
29 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
30 }
31
32 src_compile() {
33 distutils_python_version
34 addpredict ${QTDIR}/etc/settings
35
36 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
37 use debug && myconf="${myconf} -u"
38
39 "${python}" configure.py ${myconf}
40 emake || die "emake failed"
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
45 dodoc ChangeLog NEWS README THANKS
46 use doc && dohtml -r doc/html/*
47 if use examples ; then
48 insinto /usr/share/doc/${PF}
49 doins -r examples
50 fi
51 }

  ViewVC Help
Powered by ViewVC 1.1.20