# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ MY_PV="v$(echo ${PV} | sed 's/\.[0-9]*$//')" S=${WORKDIR}/${P} 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="x86" DEPEND=">=dev-lang/python-2.2.1-r2 >=sys-devel/perl-5.6.1-r6 >=dev-util/guile-1.4-r3 >=sys-devel/flex-2.5.4a-r4 >=sys-devel/bison-1.35 >=app-text/tetex-1.0.7-r10 >=sys-apps/texinfo-4.2-r5 doc? ( >=app-text/mftrace-1.0.7 >=app-text/ghostscript-7.05.5 >=media-libs/netpbm-9.12-r2 )" RDEPEND=">=dev-util/guile-1.4-r3 >=app-text/ghostscript-7.05.5 >=app-text/tetex-1.0.7-r10 >=dev-lang/python-2.2.1-r2" 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" fi econf --prefix=/usr --host=${CHOST} || die "econf failed" emake || die "emake failed" #use doc && make web-doc || "make web-doc failed" } src_install () { make \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ datadir=${D}/usr/share \ lilypond_datadir=${D}/usr/share/lilypond \ local_lilypond_datadir=${D}/usr/share/lilypond/${PV} \ install || die "make install failed" dodoc AUTHORS* COPYING ChangeLog DEDICATION NEWS README.txt \ ROADMAP THANKS VERSION insinto /usr/share/lilypond/${PV}/buildscripts/out doins buildscripts/out/lilypond-profile \ buildscripts/out/lilypond-login \ buildscripts/out/clean-fonts } pkg_postinst () { # Cleaning out old fonts is probably more appropriate in # pkg_prerm, but we also need to clean up after any # lilypond installations which may not have been # installed via portage. . /usr/share/lilypond/${PV}/buildscripts/out/clean-fonts } pkg_prerm () { . /usr/share/lilypond/${PV}/buildscripts/out/clean-fonts }