# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/burrow-owl/burrow-owl-1.2.ebuild,v 1.1 2007/06/06 23:32:33 dberkholz Exp $ if [[ ${PV} = 9999* ]]; then EBZR_REPO_URI="http://oregonstate.edu/~benisong/software/projects/burrow-owl/" EBZR_BRANCH="releases/1.4" EBZR_BOOTSTRAP="eautoreconf" BZR="bzr" fi inherit autotools ${BZR} SRC_PN="${PN/-owl}" SRC_P="${SRC_PN}-${PV}" DESCRIPTION="Visualize multidimensional nuclear magnetic resonance (NMR) spectra" HOMEPAGE="http://burrow-owl.sourceforge.net/" if [[ ${PV} = 9999* ]]; then SRC_URI="examples? ( mirror://sourceforge/${PN}/${SRC_PN}-demos.tar )" else SRC_URI="mirror://sourceforge/${PN}/${SRC_P}.tar.gz examples? ( mirror://sourceforge/${PN}/${SRC_PN}-demos.tar )" S="${WORKDIR}/${SRC_P}" fi LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="examples" RDEPEND="=x11-libs/gtk+-2* dev-scheme/guile-gnome-platform sci-libs/starparse" DEPEND="${RDEPEND} dev-util/pkgconfig" src_unpack() { unpack ${A} bzr_src_unpack } src_install() { emake DESTDIR="${D}" install || die "emake install failed" if use examples; then pushd "${WORKDIR}"/burrow-demos docinto demonstration dodoc * || die "dodoc demo failed" cd data docinto demonstration/data dodoc * || die "dodoc data failed" popd fi }