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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 28 12:56:37 2007 UTC (12 years, 3 months ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
remove old versions
(Portage version: 2.1.3.16)

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.2.ebuild,v 1.4 2007/06/24 20:11:22 dev-zero 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.6"
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/PyQt4 \
37 -b /usr/bin \
38 -v /usr/share/sip"
39 use debug && myconf="${myconf} -u"
40
41 "${python}" configure.py ${myconf}
42 emake || die "emake failed"
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
47 dodoc ChangeLog NEWS README THANKS
48 use doc && dohtml -r doc/html/*
49 if use examples ; then
50 insinto /usr/share/doc/${PF}
51 doins -r examples
52 fi
53 }

  ViewVC Help
Powered by ViewVC 1.1.20