# $Id: sip-4.10-r1.smage2 4830 2010-02-11 22:21:17Z niro $ PNAME="sip" PVER="4.11.2_pre_c93f5da3d4e4" PBUILD="r1" PCATEGORIE="dev-python" STATE="unstable" DESCRIPTION="SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries." HOMEPAGE="http://www.riverbankcomputing.com/software/sip/" DEPEND=">= dev-lang/python-2.7" SRCFILE="${PNAME}-${PVER/_pre_/-snapshot}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_pre_/-snapshot}" # pull in mbuild to have a normal src_install() sminclude python mbuild SRC_URI=( http://www.riverbankcomputing.com/static/Downloads/sip4/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE}/download | firsttarball gz" src_compile() { cd ${SRCDIR} python configure.py \ -d /usr/$(mlibdir)/python$(get_python_version)/site-packages \ -e /usr/include/python$(get_python_version) \ -b /usr/bin \ -v /usr/share/sip \ "CFLAGS+=${CFLAGS}" \ "CXXFLAGS+=${CXXFLAGS}" \ || die mmake || die }