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

Contents of /dev-python/PyQt4/PyQt4-4.0_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Nov 15 19:01:33 2006 UTC (13 years, 3 months ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove old verion
(Portage version: 2.1.2_rc1-r1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 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.0_beta1.ebuild,v 1.1 2006/05/05 17:07:56 caleb Exp $
4
5 inherit distutils
6
7 MY_P="PyQt4-gpl-${PV/_beta/beta}"
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="~x86"
19 IUSE="debug doc examples"
20
21 RDEPEND="=x11-libs/qt-4*
22 >=dev-python/sip-4.4.3"
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 examples3/* ${D}/usr/share/doc/${PF}/examples
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20