Added new app: LilyPond, version 2.12.3

This commit is contained in:
Giuseppe Calà 2010-11-22 12:48:30 +00:00
parent 03dbc8991f
commit 7f84df8461
3 changed files with 95 additions and 0 deletions

52
lilypond/PKGBUILD Normal file
View File

@ -0,0 +1,52 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=lilypond
pkgver=2.12.3
pkgrel=1
pkgdesc="A music engraving program, devoted to producing the highest-quality sheet music possible."
arch=('i686' 'x86_64')
url="http://lilypond.org/"
license=('GPL')
depends=('fontconfig' 'freetype2' 'ghostscript'
'guile' 'pango' 'python')
makedepends=('bison' 'flex' 'fontforge' 'gettext' 'gsfonts'
'perl' 'texinfo' 't1utils' 'texlive-core' 'netpbm')
optdepends=('netpbm: building HTML documentation'
'imagemagick: building HTML documentation'
'ttf-kochi-substitute: building HTML documentation'
'texi2html>=1.82: building HTML documentation'
'rsync: installing HTML documentation')
install=$pkgname.install
source=(http://download.linuxaudio.org/${pkgname}/sources/v2.12/${pkgname}-${pkgver}.tar.gz
spacing-spanner-fix.patch)
md5sums=('2303bf5f2ea8d4628f33a68f016f3866'
'a8fb1950f4b4a13eb7e74660e0015756')
build() {
cd "$srcdir/lilypond-$pkgver"
# Applying patch to spacing-spanner.cc
patch -Np1 -i ${srcdir}/spacing-spanner-fix.patch
# python2 fix
for file in $(find . -name '*.py' -print); do
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
done
./configure --prefix=/usr
make all
}
package() {
cd "$srcdir/lilypond-$pkgver"
make DESTDIR="$pkgdir/" install
}

31
lilypond/lilypond.install Normal file
View File

@ -0,0 +1,31 @@
infodir=/usr/share/info
filelist=(lilypond-changes
lilypond-contributor
lilypond-essay
lilypond-extending
lilypond-internals
lilypond-learning
lilypond-notation
lilypond-usage
lilypond-web
music-glossary)
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info $infodir/$file.info $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info --delete $infodir/$file.info $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,12 @@
diff -Naur lilypond-2.12.3-orig/lily/spacing-spanner.cc lilypond-2.12.3/lily/spacing-spanner.cc
--- lilypond-2.12.3-orig/lily/spacing-spanner.cc 2010-01-12 16:20:49.000000000 +0000
+++ lilypond-2.12.3/lily/spacing-spanner.cc 2010-11-22 12:41:07.956666673 +0000
@@ -38,7 +38,7 @@
vsize end = binary_search (all, (Grob*) me->get_bound (RIGHT),
&Paper_column::less_than);
- all = vector<Grob*>::vector<Grob*> (all.begin () + start,
+ all = vector<Grob*> (all.begin () + start,
all.begin () + end + 1);
return all;
}