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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Mar 20 13:45:05 2009 UTC (10 years, 11 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Dropping old packages due to qt-4.3 removal
(Portage version: 2.2_rc26/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2008 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.3.3.ebuild,v 1.10 2008/10/07 19:57:49 jer Exp $
4
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="mirror://gentoo/${MY_P}.tar.gz"
12 #SRC_URI="http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/${MY_P}.tar.gz"
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="alpha amd64 hppa ia64 ~ppc ppc64 sparc x86 ~x86-fbsd"
16 IUSE="debug doc examples"
17
18 RDEPEND="=x11-libs/qt-4.3*
19 >=dev-python/sip-4.7.3"
20 DEPEND="${RDEPEND}
21 sys-devel/libtool"
22
23 S=${WORKDIR}/${MY_P}
24
25 QT4_BUILT_WITH_USE_CHECK="zlib"
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 /usr/$(get_libdir)/python${PYVER}/site-packages -b /usr/bin -v /usr/share/sip"
40 use debug && myconf="${myconf} -u"
41
42 "${python}" configure.py ${myconf}
43 emake || die "emake failed"
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "install failed"
48 dodoc ChangeLog NEWS README THANKS
49 use doc && dohtml -r doc/html/*
50 if use examples ; then
51 insinto /usr/share/doc/${PF}
52 doins -r examples
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20