# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libgig/libgig-2.0.1.ebuild,v 1.2 2005/07/11 18:43:24 dholm Exp $ inherit cvs ECVS_SERVER="cvs.linuxsampler.org:/var/cvs/linuxsampler" ECVS_MODULE="libgig" DESCRIPTION="libgig is a C++ library for loading Gigasampler files and DLS (Downloadable Sounds) Level 1/2 files." HOMEPAGE="http://stud.fh-heilbronn.de/~cschoene/projects/libgig/" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc dev" RDEPEND=" || ( >=media-libs/libsndfile-1.0.2 >=media-libs/audiofile-0.2.3 ) sys-fs/e2fsprogs doc? ( app-doc/doxygen )" DEPEND="${RDEPEND}" # 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/libgig" # wenn use flag "dev" gesetzt ist, dann werden die lokalen sources verwendet 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 README NEWS if use doc; then mv ${S}/doc/html ${D}/usr/share/doc/${PF}/ fi }