# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit cvs ECVS_SERVER="cvs.linuxsampler.org:/var/cvs/linuxsampler" ECVS_MODULE="qsampler" DESCRIPTION="QSampler is a graphical frontend to the LinuxSampler engine." HOMEPAGE="http://www.linuxsampler.org" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="dev" # this is a bleeding edge CVS ebuild, chances are high that we need a # stack trace, so don't strip symbols RESTRICT="strip" #TODO: linuxsampler is actually an optional (linker) dependency, thus a # candidate for a use flag. RDEPEND="=x11-libs/qt-4* >=media-libs/liblscp-9999 >=media-libs/libgig-9999 >=media-sound/linuxsampler-9999 media-libs/alsa-lib" DEPEND="${RDEPEND}" S="${WORKDIR}/${ECVS_MODULE}" MY_LOCAL_SOURCES="/home/cuse/cvs/qsampler" # if use flag "dev" is set then local source files will be used local_dev_sources_unpack() { # (cd ${MY_LOCAL_SOURCES} && \ # make -f Makefile.cvs clean && \ # make -f Makefile.cvs && \ # ./configure && \ # make dist) || die "Could not prepare local development files of ${PF}" echo "Grabbing local development sources from $MY_LOCAL_SOURCES" mkdir -p ${WORKDIR} cd ${WORKDIR} tar xfz `ls ${MY_LOCAL_SOURCES}/${ECVS_MODULE}-*.tar.gz` \ || die "Could not unpack local development sources. Is there a tarball?" # remove version postfix in the directory name if necessary mv `find -name ${ECVS_MODULE}-* -and -type d` ${ECVS_MODULE} || true echo "Good. Let's compile this shit! :)" } src_unpack(){ if use dev; then local_dev_sources_unpack || die else cvs_src_unpack || die fi cd ${S} make -f Makefile.cvs || true } src_compile() { econf # Fix sandbox errors by borrowing from kde.eclass. REALHOME="$HOME" mkdir -p "${T}"/fakehome/.kde mkdir -p "${T}"/fakehome/.qt export HOME="${T}"/fakehome addwrite "${QTDIR}"/etc/settings # Things that should access the real homedir. [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/" emake -j1 || die "emake failed." } src_install() { emake DESTDIR="${D}" install || die "emake install failed." dodoc AUTHORS ChangeLog README TODO doman debian/${PN}.1 }