# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-x86/media-sound/lilypond/lilypond-1.5.15.ebuild,v 1.4 2002/08/01 11:40:16 seemant Exp $ S=${WORKDIR}/${P} DESCRIPTION="GNU Music Typesetter" SRC_URI="http://ftp.cs.uu.nl/pub/GNU/LilyPond/v1.7/${P}.tar.gz" HOMEPAGE="http://lilypond.org/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86" DEPEND=">=dev-lang/python-2.0-r4 >=dev-util/guile-1.6.0 >=sys-devel/flex-2.5.4a-r4 >=sys-devel/bison-1.28-r3 >=sys-apps/texinfo-4.0-r3 >=app-text/tetex-1.0.7-r2 >=app-text/pktrace-1.0.4" src_compile() { if [ "`gcc --version | cut -f1 -d.`" -eq 3 ] || ([ -n "${CXX}" ] && [ "`${CXX} --version | cut -f1 -d.`" -eq 3 ]) || [ "`gcc --version|grep gcc|cut -f1 -d.|cut -f3 -d\ `" -eq 3 ] then # Patch for compilation with gcc-3.x # # rigo@home.nl - 19 August 2002 rm -f config.cache ./lexer-gcc-3.1.sh CPPFLAGS=-I${S}/lily/out ./autogen.sh ${ENABLECONFIG} || die "autogen failed" else econf || die "configure failed" fi emake || die "make failed" } src_install () { make prefix=${D}/usr install || die dodoc AUTHORS* CHANGES DEDICATION NEWS README.txt ROADMAP FAQ* VERSION }