summaryrefslogtreecommitdiff
path: root/community/lilypond
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/lilypond
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/lilypond')
-rw-r--r--community/lilypond/PKGBUILD40
-rw-r--r--community/lilypond/lilypond-gcc45.patch16
2 files changed, 56 insertions, 0 deletions
diff --git a/community/lilypond/PKGBUILD b/community/lilypond/PKGBUILD
new file mode 100644
index 000000000..f6d6bd0b3
--- /dev/null
+++ b/community/lilypond/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 28189 2010-10-03 15:28:38Z foutrelis $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Geoffroy Carrier <geoffroy@archlinux.org>
+# Contributor: Andrea `BaSh` Scarpino <bash.lnx@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+# Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
+
+pkgname=lilypond
+pkgver=2.12.3
+pkgrel=7
+pkgdesc="An automated music engraving system"
+arch=('i686' 'x86_64')
+url="http://lilypond.org"
+license=('GPL')
+depends=('guile' 'python2' 'texlive-core' 'ghostscript' 'pango' 'fontconfig')
+makedepends=('flex' 'bison' 'gettext' 'mftrace' 'texinfo' 'fontforge' 't1utils' 'gsfonts')
+options=('emptydirs')
+source=(http://download.linuxaudio.org/lilypond/sources/v2.12/$pkgname-$pkgver.tar.gz
+ lilypond-gcc45.patch)
+md5sums=('2303bf5f2ea8d4628f33a68f016f3866'
+ '023636ea13dc6eb2de379e5ef369b218')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # 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
+
+# libtoolize --force --copy
+# aclocal
+# autoconf
+# automake
+ ./configure --prefix=/usr --disable-gui
+ patch -p1 <$srcdir/lilypond-gcc45.patch
+ make
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/lilypond/lilypond-gcc45.patch b/community/lilypond/lilypond-gcc45.patch
new file mode 100644
index 000000000..6af391ff3
--- /dev/null
+++ b/community/lilypond/lilypond-gcc45.patch
@@ -0,0 +1,16 @@
+diff --git a/lily/spacing-spanner.cc b/lily/spacing-spanner.cc
+index 99fe982..6949458 100644
+--- a/lily/spacing-spanner.cc
++++ b/lily/spacing-spanner.cc
+@@ -38,8 +38,8 @@ Spacing_spanner::get_columns (Grob *me_grob)
+ vsize end = binary_search (all, (Grob*) me->get_bound (RIGHT),
+ &Paper_column::less_than);
+
+- all = vector<Grob*>::vector<Grob*> (all.begin () + start,
+- all.begin () + end + 1);
++ all = vector<Grob*> (all.begin () + start,
++ all.begin () + end + 1);
+ return all;
+ }
+
+--