diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-12-10 19:02:19 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-12-10 19:02:19 +0000 |
commit | c2e3f59498b4117276fb3092d3809ce7a2aea7b4 (patch) | |
tree | 1f895598f4495e6068326be4d5832eb191f804dd /media-sound/lilypond | |
parent | x86 stable, bug 294958 (diff) | |
download | gentoo-2-c2e3f59498b4117276fb3092d3809ce7a2aea7b4.tar.gz gentoo-2-c2e3f59498b4117276fb3092d3809ce7a2aea7b4.tar.bz2 gentoo-2-c2e3f59498b4117276fb3092d3809ce7a2aea7b4.zip |
Don't install precompiled python object files, fixes bug 258129.
(Portage version: 2.2_rc58/cvs/Linux i686)
Diffstat (limited to 'media-sound/lilypond')
-rw-r--r-- | media-sound/lilypond/ChangeLog | 9 | ||||
-rw-r--r-- | media-sound/lilypond/files/lilypond-2.12.2-dont-install-pyc.patch | 11 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-2.12.2-r1.ebuild | 126 |
3 files changed, 145 insertions, 1 deletions
diff --git a/media-sound/lilypond/ChangeLog b/media-sound/lilypond/ChangeLog index cec9ec69c245..425643761bee 100644 --- a/media-sound/lilypond/ChangeLog +++ b/media-sound/lilypond/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/lilypond # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/ChangeLog,v 1.102 2009/11/18 18:45:39 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/ChangeLog,v 1.103 2009/12/10 19:02:18 ulm Exp $ + +*lilypond-2.12.2-r1 (10 Dec 2009) + + 10 Dec 2009; Ulrich Mueller <ulm@gentoo.org> +lilypond-2.12.2-r1.ebuild, + +files/lilypond-2.12.2-dont-install-pyc.patch: + Don't install precompiled python object files, fixes bug 258129. Proxy + commit for Tomás Touceda (chiiph). 18 Nov 2009; Raúl Porcel <armin76@gentoo.org> lilypond-2.12.2.ebuild: sparc stable wrt #288316 diff --git a/media-sound/lilypond/files/lilypond-2.12.2-dont-install-pyc.patch b/media-sound/lilypond/files/lilypond-2.12.2-dont-install-pyc.patch new file mode 100644 index 000000000000..43b7ffa98985 --- /dev/null +++ b/media-sound/lilypond/files/lilypond-2.12.2-dont-install-pyc.patch @@ -0,0 +1,11 @@ +--- lilypond-2.12.2.orig/python/GNUmakefile 2009-01-18 22:04:57.000000000 -0200 ++++ lilypond-2.12.2/python/GNUmakefile 2009-12-10 12:28:27.000000000 -0300 +@@ -16,7 +16,7 @@ + INSTALLATION_OUT_DIR=$(local_lilypond_libdir)/python + + INSTALLATION_OUT_DIR1=$(local_lilypond_datadir)/python +-INSTALLATION_OUT_FILES1=$(OUT_PY_MODULES) $(OUT_PYC_MODULES) ++INSTALLATION_OUT_FILES1=$(OUT_PY_MODULES) + + $(outdir)/midi.lo: $(outdir)/config.hh + diff --git a/media-sound/lilypond/lilypond-2.12.2-r1.ebuild b/media-sound/lilypond/lilypond-2.12.2-r1.ebuild new file mode 100644 index 000000000000..7cc6d926e28f --- /dev/null +++ b/media-sound/lilypond/lilypond-2.12.2-r1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/lilypond-2.12.2-r1.ebuild,v 1.1 2009/12/10 19:02:18 ulm Exp $ + +inherit eutils versionator toolchain-funcs elisp-common + +DESCRIPTION="GNU Music Typesetter" +HOMEPAGE="http://lilypond.org/" +SRC_URI="http://download.linuxaudio.org/lilypond/sources/v$(get_version_component_range 1-2)/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" + +#LANGS="cs da de es fi fr it ja nl ru rw sv tr zh_TW" +IUSE="debug emacs profile" +#IUSE="debug doc emacs gtk profile" + +#for X in ${LANGS} ; do +# IUSE="${IUSE} linguas_${X/-/_}" +#done + +# guile with deprecated and regex +RDEPEND=" + >=media-libs/freetype-2 + media-libs/fontconfig + >=x11-libs/pango-1.12.3 + >=dev-scheme/guile-1.8.2 + >=dev-lang/python-2.4 + || ( >=app-text/ghostscript-gnu-8.15 + >=app-text/ghostscript-gpl-8.15 ) + emacs? ( virtual/emacs )" + +DEPEND="${RDEPEND} + >=media-gfx/fontforge-20070501 + dev-texlive/texlive-metapost + app-text/t1utils + >=app-text/mftrace-1.2.9 + >=sys-apps/texinfo-4.11 + sys-devel/make + sys-devel/gettext + sys-devel/flex + dev-lang/perl + >=sys-devel/bison-2.0" +# doc? ( media-libs/netpbm +# media-gfx/imagemagick +# app-text/texi2html )" + +pkg_setup() { + if has_version =dev-scheme/guile-1.8*; then + local flags="deprecated regex" + built_with_use dev-scheme/guile ${flags} || die "guile must be built with \"${flags}\" use flags" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-glibc-2.10.patch + epatch "${FILESDIR}"/${P}-dont-install-pyc.patch +} + +src_compile() { + if [[ $(gcc-major-version) -lt 4 ]]; then + eerror "You need GCC 4.x to build this software." + die "you need to compile with gcc-4 or later" + fi + + # see bug 228823 + econf --with-ncsb-dir=/usr/share/fonts/default/ghostscript \ + $(use_enable debug debugging) \ + $(use_enable profile profiling) \ + --disable-gui \ + --disable-documentation +# $(use_enable doc documentation) + +# # without -j1 it will not fail, but building docs later will, bug 236010 + emake -j1 || die "emake failed" +# emake || die "emake failed" + +# -j is unsupported, but CPU_COUNT may be set instead +# if use doc; then +# emake -j1 CPU_COUNT=2 web || die "emake web failed" +# fi + + if use emacs; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +# lilypond doesn't include the answers to the tests. +# You are supposed to build those yourself with an +# earlier version. Then running tests will compare the +# results of the tests against the results from the +# earlier version. As such, tests seem mostly useless +# for our purposes. +RESTRICT=test + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install || die "emake install failed" + +# if use doc; then +# # Note: installs .html docs, .pdf docs and examples +# emake out=www web-install DESTDIR=${D} webdir=/usr/share/doc/${PF}/html || die "emake web-install failed" +# fi + + # remove elisp files since they are in the wrong directory + rm -r "${D}"/usr/share/emacs + + if use emacs; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + dodoc AUTHORS.txt HACKING NEWS.txt README.txt +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |