summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-06-01 12:53:52 +0000
committerUlrich Müller <ulm@gentoo.org>2007-06-01 12:53:52 +0000
commit13118b956d57f8d684abef98a8e30725c3cbb216 (patch)
tree47e000d154cb058f27395e505d55757391c2db1e /media-sound
parentStable on ppc wrt bug 180358 (diff)
downloadgentoo-2-13118b956d57f8d684abef98a8e30725c3cbb216.tar.gz
gentoo-2-13118b956d57f8d684abef98a8e30725c3cbb216.tar.bz2
gentoo-2-13118b956d57f8d684abef98a8e30725c3cbb216.zip
Add Emacs support.
(Portage version: 2.1.2.9)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/lilypond/ChangeLog9
-rw-r--r--media-sound/lilypond/files/50lilypond-gentoo.el7
-rw-r--r--media-sound/lilypond/files/digest-lilypond-2.10.25-r13
-rw-r--r--media-sound/lilypond/lilypond-2.10.25-r1.ebuild121
4 files changed, 139 insertions, 1 deletions
diff --git a/media-sound/lilypond/ChangeLog b/media-sound/lilypond/ChangeLog
index 977e6df615da..68b887f868c7 100644
--- a/media-sound/lilypond/ChangeLog
+++ b/media-sound/lilypond/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-sound/lilypond
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/ChangeLog,v 1.53 2007/05/24 11:35:06 hkbst Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/ChangeLog,v 1.54 2007/06/01 12:53:52 ulm Exp $
+
+*lilypond-2.10.25-r1 (01 Jun 2007)
+
+ 01 Jun 2007; Ulrich Mueller <ulm@gentoo.org> +files/50lilypond-gentoo.el,
+ +lilypond-2.10.25-r1.ebuild:
+ Emacs support: Compile elisp files and install them in the proper place,
+ add an Emacs sitefile. Also fixes bug #179177.
*lilypond-2.10.25 (24 May 2007)
diff --git a/media-sound/lilypond/files/50lilypond-gentoo.el b/media-sound/lilypond/files/50lilypond-gentoo.el
new file mode 100644
index 000000000000..50f62c44d28d
--- /dev/null
+++ b/media-sound/lilypond/files/50lilypond-gentoo.el
@@ -0,0 +1,7 @@
+
+;;; lilypond site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
+(add-to-list 'auto-mode-alist '("\\.i?ly\\'" . LilyPond-mode))
+(add-hook 'LilyPond-mode-hook 'turn-on-font-lock)
diff --git a/media-sound/lilypond/files/digest-lilypond-2.10.25-r1 b/media-sound/lilypond/files/digest-lilypond-2.10.25-r1
new file mode 100644
index 000000000000..5db91d2a7546
--- /dev/null
+++ b/media-sound/lilypond/files/digest-lilypond-2.10.25-r1
@@ -0,0 +1,3 @@
+MD5 3b269dd092db621b1c25fb390b4347f3 lilypond-2.10.25.tar.gz 2660089
+RMD160 34f9d78dc44859016b02e0ec0a33267e7989986b lilypond-2.10.25.tar.gz 2660089
+SHA256 ddcbeb54475718b7cd6c3c85d98490d4597fcce5612cd4e5aaf1370d877d4cdf lilypond-2.10.25.tar.gz 2660089
diff --git a/media-sound/lilypond/lilypond-2.10.25-r1.ebuild b/media-sound/lilypond/lilypond-2.10.25-r1.ebuild
new file mode 100644
index 000000000000..df0e60f13b3d
--- /dev/null
+++ b/media-sound/lilypond/lilypond-2.10.25-r1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/lilypond-2.10.25-r1.ebuild,v 1.1 2007/06/01 12:53:52 ulm Exp $
+
+inherit eutils autotools versionator toolchain-funcs elisp-common
+
+DESCRIPTION="GNU Music Typesetter"
+SRC_URI="http://download.linuxaudio.org/lilypond/sources/v$(get_version_component_range 1-2)/${P}.tar.gz"
+HOMEPAGE="http://lilypond.org/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~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 vim"
+
+#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.1
+ >=dev-lang/python-2.4
+ || ( >=app-text/ghostscript-gnu-8.15
+ >=app-text/ghostscript-gpl-8.15
+ >=app-text/ghostscript-esp-8.15 )
+ emacs? ( virtual/emacs )"
+# >=app-text/ghostscript-gnu-8.55"
+
+# virtual/tetex
+
+DEPEND="${RDEPEND}
+ >=media-gfx/fontforge-20060406
+ <=media-gfx/fontforge-20070312
+ >=app-text/mftrace-1.2.9
+ >=sys-apps/texinfo-4.8
+ sys-devel/make
+ sys-devel/gettext
+ sys-devel/flex
+ dev-lang/perl
+ >=sys-devel/bison-2.0"
+# doc? ( media-libs/netpbm
+# media-gfx/imagemagick )"
+
+pkg_setup() {
+ if has_version =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_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
+
+ econf \
+ $(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
+ emake -j1 || die "emake failed"
+
+# if use doc; then
+# emake -j1 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} || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
+ fi
+
+ dodoc AUTHORS.txt ChangeLog DEDICATION NEWS.txt README.txt THANKS
+
+# use vim || rm -r ${D}/usr/share/vim
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}