# $Id: pyqt4-4.7-r1.smage2 4831 2010-02-11 22:22:09Z niro $ PNAME="pyqt4" PVER="4.8_pre_eac5dd92c907" PBUILD="r1" PCATEGORIE="dev-python" STATE="unstable" DESCRIPTION="Python Qt bindings." HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/" DEPEND=">= dev-lang/python-2.7 >= dev-python/sip-4.10 >= dev-python/qscintilla-qt4-2.4.5 >= virtual/opengl >= virtual/phonon >= x11-libs/qt4-core-4.7 >= x11-libs/qt4-dbus-4.7 >= x11-libs/qt4-gui-4.7 >= x11-libs/qt4-opengl-4.7 >= x11-libs/qt4-script-4.7 >= x11-libs/qt4-sql-4.7 >= x11-libs/qt4-svg-4.7 >= x11-libs/qt4-test-4.7 >= x11-libs/qt4-webkit-4.7 >= x11-libs/qt4-xmlpatterns-4.7 >= x11-libs/qt4-assistant-4.7" SRCFILE="PyQt-x11-gpl-${PVER/_pre_/-snapshot-}.tar.gz" SRCDIR="${BUILDDIR}/PyQt-x11-gpl-${PVER/_pre_/-snapshot-}" # pull in mbuild to have a normal src_install() sminclude qt4 python mbuild SRC_URI=( http://www.riverbankcomputing.com/static/Downloads/PyQt4/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE}/download | firsttarball gz" src_compile() { cd ${SRCDIR} local use_distcc [[ ${SMAGE_USE_DISTCC} = true ]] && use_distcc="-c" # warning: needs more than 256mb to compile successfully python configure.py \ --confirm-license \ -q ${QMAKE} \ -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \ -n /usr/include \ -b /usr/bin \ -v /usr/share/sip \ -w \ ${use_distcc} \ -e QtCore \ -e QtNetwork \ -e QtScript \ -e QtTest \ -e QtXml \ -e QtGui \ -e QtDesigner \ -e QtAssistant \ -e QtHelp \ -e QtOpenGL \ -e phonon \ -e QtSql \ -e QtSvg \ -e QtWebKit \ -e QtXmlPatterns \ || die # fix insecure runpath local i for i in QtDesigner QtGui QtCore do sed -i "/^LFLAGS/s:-Wl,-rpath,${SRCDIR}/qpy/${i}::" ${SRCDIR}/${i}/Makefile || die done mmake || die } src_install() { cd ${SRCDIR} # INSTALL_ROOT is needed for the QtDesigner module, # the other Makefiles use DESTDIR. mmake DESTDIR=${BINDIR} INSTALL_ROOT=${BINDIR} install || die minstalldocs ChangeLog GPL* LICENSE* NEWS OPENSOURCE-NOTICE.TXT README THANKS || die }