# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-3.10.ebuild,v 1.2 2004/03/18 01:37:38 caleb Exp $ IUSE="" inherit eutils distutils DESCRIPTION="SIP is a tool for generating bindings for C++ classes so that they can be used by Python." SRC_URI="http://www.river-bank.demon.co.uk/download/sip/${P}.tar.gz" HOMEPAGE="http://www.riverbankcomputing.co.uk/sip/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha" DEPEND="virtual/glibc x11-libs/qt >=dev-lang/python-2.2.1" src_compile(){ distutils_python_version dodir /usr/bin dodir /usr/lib/python${PYVER}/site-packages python configure.py -l qt-mt \ -b ${D}usr/bin \ -d ${D}usr/lib/python${PYVER}/site-packages \ -e ${D}usr/include/python${PYVER} \ "CXXFLAGS+=${CXXFLAGS}" make || die } src_install() { distutils_python_version dodir /usr/include/python${PYVER} make install || die echo "/${D//\//\\/}/s//\//" > fixpaths.sed sed -i -f fixpaths.sed ${D}usr/lib/python${PYVER}/site-packages/sipconfig.py dodoc ChangeLog LICENSE NEWS README THANKS TODO }