diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-03-20 16:40:56 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-03-20 16:40:56 +0000 |
commit | 405d4015b44e049f81776676dca9eb7279fb00de (patch) | |
tree | 4a9db54df4c9c5a717ca332492f4b6562b299a7d /media-sound/lilypond/lilypond-2.0.3.ebuild | |
parent | Added patch to fix detection of MP3 frame header. Submitted in bug #44838 by... (diff) | |
download | gentoo-2-405d4015b44e049f81776676dca9eb7279fb00de.tar.gz gentoo-2-405d4015b44e049f81776676dca9eb7279fb00de.tar.bz2 gentoo-2-405d4015b44e049f81776676dca9eb7279fb00de.zip |
Version bump.
Diffstat (limited to 'media-sound/lilypond/lilypond-2.0.3.ebuild')
-rw-r--r-- | media-sound/lilypond/lilypond-2.0.3.ebuild | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/media-sound/lilypond/lilypond-2.0.3.ebuild b/media-sound/lilypond/lilypond-2.0.3.ebuild new file mode 100644 index 000000000000..963c276b46a6 --- /dev/null +++ b/media-sound/lilypond/lilypond-2.0.3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/lilypond-2.0.3.ebuild,v 1.1 2004/03/20 16:40:56 eradicator Exp $ + +IUSE="doc" + +MY_PV="v$(echo ${PV} | cut -d. -f1,2)" +DESCRIPTION="GNU Music Typesetter" +SRC_URI="http://www.lilypond.org/ftp/${MY_PV}/${P}.tar.gz" +HOMEPAGE="http://lilypond.org/" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~x86" + +RDEPEND=">=dev-util/guile-1.6.4 + virtual/ghostscript + >=app-text/tetex-1.0.7-r12 + >=dev-lang/python-2.2.3-r1" + +DEPEND="${RDEPEND} + >=dev-lang/perl-5.8.0-r12 + >=sys-apps/texinfo-4.6 + >=sys-devel/flex-2.5.4a-r5 + >=sys-devel/gcc-3.1-r8 + >=sys-devel/make-3.80 + >=app-text/mftrace-1.0.19 + sys-devel/bison !=sys-devel/bison-1.75 + doc? ( media-gfx/imagemagick + >=media-libs/netpbm-9.12-r4 )" + +src_unpack() { + unpack ${A} || die "unpack failed" + cd ${S}; epatch ${FILESDIR}/${PN}-2.0.0-coreutils-compat.patch + NOCONFIGURE=1 ./autogen.sh >/dev/null +} + +src_compile() { + # Remove ccache from the PATH since it can break compilation of + # this package. See bug 21305 + PATH="$(echo ":${PATH}:" | sed 's/:[^:]*ccache[^:]*:/:/;s/^://;s/:$//;')" + + addwrite /dev/stderr + addwrite /var/cache/fonts + addwrite /usr/share/texmf/fonts + addwrite /usr/share/texmf/ls-R + + econf --build=${CHOST} || die "econf failed" + emake || die "emake failed" + + if use doc; then + make web || die "make web failed" + fi +} + +src_install () { + einstall \ + lilypond_datadir=${D}/usr/share/lilypond \ + local_lilypond_datadir=${D}/usr/share/lilypond/${PV} \ + || die "einstall failed" + + dodoc AUTHORS.txt COPYING ChangeLog DEDICATION INSTALL.txt \ + NEWS.txt README.txt ROADMAP THANKS VERSION \ + || die "dodoc failed" + + insinto /usr/share/lilypond/${PV}/buildscripts/out + doins buildscripts/out/lilypond-profile \ + buildscripts/out/lilypond-login \ + buildscripts/out/clean-fonts \ + buildscripts/out/lilypond.words \ + || die "doins failed" + insinto /usr/share/lilypond/${PV}/elisp/out + doins elisp/out/lilypond.words.el elisp/out/lilypond.words.vim \ + || die "doins failed" + insinto /usr/share/lilypond/${PV}/elisp + doins elisp/*.el \ + || die "doins failed" + insinto /usr/share/lilypond/${PV}/ + doins lilypond.vim vimrc \ + || die "doins failed" + + # we might be able to get the new "make out=www web-install" + # to work (if someone wants to fight with it), but our + # old way is easier for now: + if use doc; then + dohtml -A txt,midi,ly,pdf,gz -r Documentation input *.html *.png \ + || die "doins failed" + fi +} + +pkg_postinst () { + # Cleaning out old fonts is more appropriate in pkg_prerm, but we + # also need to clean up after any previous lilypond installations. + . /usr/share/lilypond/${PV}/buildscripts/out/clean-fonts +} + +pkg_prerm () { + . /usr/share/lilypond/${PV}/buildscripts/out/clean-fonts +} |