summaryrefslogtreecommitdiff
path: root/portsToCome/lilypond/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'portsToCome/lilypond/Pkgfile')
-rw-r--r--portsToCome/lilypond/Pkgfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/portsToCome/lilypond/Pkgfile b/portsToCome/lilypond/Pkgfile
new file mode 100644
index 0000000..3ba2ccd
--- /dev/null
+++ b/portsToCome/lilypond/Pkgfile
@@ -0,0 +1,42 @@
+# Description: Music notation for everyone.
+# URL: http://lilypond.org/web/
+# Maintainer: Erich Eckner, crux at eckner dot net
+# Depends on: fontconfig freetype guile pango glib python fontforge gsfonts ghostscript texlive tex-gyre-fonts
+
+name=lilypond
+version=2.19.59
+release=1
+source=(http://download.linuxaudio.org/lilypond/source/v${version%.*}/lilypond-$version.tar.gz
+ no_fontforge-versioncheck.patch)
+
+build() {
+ cd "$name-$version"
+
+ # 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
+
+ patch -Np1 < $SRC/no_fontforge-versioncheck.patch
+ rm -rf python/out/
+
+ export GUILE=/usr/bin/guile
+ export GUILE_CONFIG=/usr/bin/guile-config
+ export PYTHON="python2"
+ export PYTHON_CONFIG="python2-config"
+ export GUILE=/usr/bin/guile1.8
+ export GUILE_CONFIG=/usr/bin/guile-config1.8
+
+ ./autogen.sh --prefix=/usr \
+ --disable-documentation
+
+ # FIXME: the extra LDFLAG should not be needed;
+ # this is a regression somewhere
+ make LDFLAGS+=" -pthread" all
+
+ make DESTDIR="$PKG/" \
+ vimdir="/usr/share/vim/vimfiles" install
+
+ rm -rf "$PKG/usr/share/man"
+}