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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed May 30 11:52:44 2007 UTC (12 years, 10 months ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove old versions
(Portage version: 2.1.2.4)

1 jokey 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 caleb 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.1.1.ebuild,v 1.1 2006/12/20 14:33:50 jokey Exp $
4 jokey 1.1
5     inherit distutils
6    
7     MY_P="PyQt-x11-gpl-${PV}"
8     S="${WORKDIR}/${MY_P}"
9    
10     DESCRIPTION="PyQt is a set of Python bindings for the Qt toolkit."
11     HOMEPAGE="http://www.riverbankcomputing.co.uk/pyqt/"
12     #SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
13     SRC_URI="http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/${MY_P}.tar.gz"
14     #SRC_URI="http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt3/${MY_P}.tar.gz"
15    
16     SLOT="0"
17     LICENSE="GPL-2"
18     KEYWORDS="~amd64 ~x86"
19     IUSE="debug doc examples"
20    
21     RDEPEND="=x11-libs/qt-4*
22     >=dev-python/sip-4.5"
23     DEPEND="${RDEPEND}
24     sys-devel/libtool"
25    
26    
27     src_unpack() {
28     unpack ${A}
29     sed -i -e "s:^[ \t]*check_license():# check_license():" ${S}/configure.py
30     sed -i -e "s:join(qt_dir, \"mkspecs\":join(\"/usr/share/qt4\", \"mkspecs\":g" ${S}/configure.py
31     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
32     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
33     }
34    
35     src_compile() {
36     distutils_python_version
37     addpredict ${QTDIR}/etc/settings
38    
39     local myconf="-d ${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages/PyQt4 \
40     -b ${ROOT}/usr/bin \
41     -v ${ROOT}/usr/share/sip" #\
42     # -n ${ROOT}/usr/include \
43     # -o ${ROOT}/usr/$(get_libdir) \
44     # -w -y qt-mt"
45     use debug && myconf="${myconf} -u"
46    
47     python configure.py ${myconf}
48     emake || die "emake failed"
49     }
50    
51     src_install() {
52     make DESTDIR=${D} install || die "install failed"
53     dodoc ChangeLog LICENSE NEWS README README.Linux THANKS
54     use doc && dohtml doc/PyQt.html
55     if use examples ; then
56     dodir /usr/share/doc/${PF}/examples
57     cp -r examples/* ${D}/usr/share/doc/${PF}/examples
58     fi
59     }

  ViewVC Help
Powered by ViewVC 1.1.20