# 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="gigedit" DESCRIPTION="Gigedit is an instrument editor for Gigasampler files." HOMEPAGE="http://www.linuxsampler.org" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc 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 dependency, thus a candidate # for a use flag. RDEPEND=" >=dev-cpp/gtkmm-2.4.10 >=media-libs/libgig-9999 >=media-libs/libsndfile-1.0.2 >=media-sound/linuxsampler-9999 sys-devel/gettext doc? ( dev-libs/libxslt app-text/docbook-xsl-stylesheets )" DEPEND="${RDEPEND}" S="${WORKDIR}/${ECVS_MODULE}" MY_LOCAL_SOURCES="/home/cuse/cvs/gigedit" # 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 } src_compile() { econf || die "./configure failed" emake -j1 || die "make failed" # docs are currently automatically tried to be built # on 'make (all)', so we don't need this now: #if use doc; then # make docs || die "make docs failed" #fi } src_install() { einstall || die "einstall failed" dodoc AUTHORS ChangeLog README NEWS #if use doc; then # mv ${S}/doc/html ${D}/usr/share/doc/${PF}/ #fi }