# $Id$ PNAME="liblastfm" PVER="0.3.0" PBUILD="r1" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="A Qt C++ library for the Last.fm webservices." HOMEPAGE="http://github.com/mxcl/liblastfm/" DEPEND=">= x11-libs/qt4-core-4.5 >= media-libs/libsamplerate-0.1.4 >= sci-libs/fftw3-3.2.2" SDEPEND=">= dev-lang/ruby-1.9" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild qt4 SRC_URI=( http://cdn.last.fm/src/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME/lib/} ${PNAME/lib/}-src - ${PNAME/lib/}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix multilib pathes find . -name *.pro -exec sed -i -e "/target.path/s/lib/$(mlibdir)/g" {} + || die # fix qmake sed -i "s:qmake-qt4:${QMAKE}:g" admin/which_qmake.rb || die # fix ruby-1.9; do not require ftools sed -i "s/require 'ftools'//g" admin/* || die } src_compile() { cd ${SRCDIR} ./configure --prefix "/usr" --no-strip --release || die mmake || die }