# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/liblscp/liblscp-0.3.0.ebuild,v 1.5 2006/03/06 15:33:04 flameeyes Exp $ inherit cvs ECVS_SERVER="cvs.linuxsampler.org:/var/cvs/linuxsampler" ECVS_MODULE="liblscp" DESCRIPTION="liblscp is a C++ library for the Linux Sampler control protocol." HOMEPAGE="http://www.linuxsampler.org/" SRC_URI="" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc dev" RDEPEND="" DEPEND="doc? ( app-doc/doxygen )" # this is a bleeding edge CVS ebuild, chances are high that we need a # stack trace, so don't strip symbols RESTRICT="strip" S="${WORKDIR}/${ECVS_MODULE}" MY_LOCAL_SOURCES="/home/cuse/cvs/liblscp" # if use flag "dev" was set, then the given local sources 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 } src_compile() { econf || die "./configure failed" emake -j1 || die "make failed" if use doc; then make docs || die "make docs failed" fi } src_install() { einstall || die "einstall failed" dodoc AUTHORS ChangeLog TODO NEWS README if use doc; then mv ${S}/doc/html ${D}/usr/share/doc/${PF}/ fi }