/[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.5 - (hide annotations) (download)
Wed Nov 28 12:56:37 2007 UTC (12 years, 4 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 caleb 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 caleb 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.3.ebuild,v 1.4 2007/08/22 23:58:05 rbu Exp $
4 caleb 1.1
5 caleb 1.3 inherit distutils qt4
6 caleb 1.1
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 rbu 1.4 KEYWORDS="~amd64 ~ppc ~x86"
15 caleb 1.1 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 caleb 1.3 QT4_BUILT_WITH_USE_CHECK="zlib"
25    
26 caleb 1.1 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 caleb 1.2 local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
39 caleb 1.1 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