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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jul 31 06:44:05 2008 UTC (11 years, 8 months ago) by neurogeek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
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 hawking 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 neurogeek 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.4.ebuild,v 1.1 2008/05/14 20:16:36 hawking Exp $
4 hawking 1.1
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     sed -i -e "s:^[ \t]*check_license():# check_license():" "${S}"/configure.py
29     sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" "${S}"/configure.py
30     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
31     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
32     }
33    
34     src_compile() {
35     distutils_python_version
36     addpredict ${QTDIR}/etc/settings
37    
38     local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -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