Browse Source

ap/lilypond: Upgraded to lilypond-2.12.2.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
6fc58339ea
  1. 1
      ap/lilypond/lilypond-2.12.1.tar.gz.sha1
  2. 1
      ap/lilypond/lilypond-2.12.2-1.documentation.tar.bz2.sha1
  3. 1
      ap/lilypond/lilypond-2.12.2.tar.gz.sha1
  4. 85
      ap/lilypond/lilypond.SlackBuild

1
ap/lilypond/lilypond-2.12.1.tar.gz.sha1

@ -1 +0,0 @@
203bead967f8409dbac00fd835d2a411694f408b lilypond-2.12.1.tar.gz

1
ap/lilypond/lilypond-2.12.2-1.documentation.tar.bz2.sha1

@ -0,0 +1 @@
2046de0b50a3ccbaa7c720e0ad270fe5bd3b953e lilypond-2.12.2-1.documentation.tar.bz2

1
ap/lilypond/lilypond-2.12.2.tar.gz.sha1

@ -0,0 +1 @@
92afe4ef926d966e7855f64ae93ee762f1fa5178 lilypond-2.12.2.tar.gz

85
ap/lilypond/lilypond.SlackBuild

@ -1,40 +1,44 @@
#!/bin/bash
# Build script for Slackware
# Damien Goutte-Gattat "gouttegd" < dgouttegattat at incenp.org >
# Copyright (C) 2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications, is
# permitted provided that the following conditions are met:
# Redistribution and use of this script, with or without modifications,
# ispermitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Latest LilyPond sourcecode is available at:
# http://lilypond.org/download/
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Depends: xap/fontforge, ap/mftrace, ap/texi2html
# Latest LilyPond sourcecode is available at: <http://lilypond.org/>.
#
# Depends: xap/fontforge, ap/t1utils
# Source package infos
NAMESRC=${NAMESRC:-lilypond}
VERSION=${VERSION:-2.12.1}
VERSION=${VERSION:-2.12.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
ARCHDOC=${ARCHDOC:-$NAMESRC-$VERSION-1.documentation.tar.bz2}
WGET=${WGET:-http://lilypond.org/download/sources/v2.12/$ARCHIVE}
WGETDOC=${WGETDOC:-http://lilypond.org/download/binaries/documentation/$ARCHDOC}
# Built package infos
# Build infos
NAMETGZ=${NAMETGZ:-lilypond}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
@ -59,19 +63,28 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
# Get and verify the archives
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
if [ ! -r $ARCHDOC ]; then
wget -c -O $ARCHDOC.part "$WGETDOC"
mv $ARCHDOC.part $ARCHDOC
fi
sha1sum -c $ARCHIVE.sha1
sha1sum -c $ARCHDOC.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
# Extract
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
@ -83,10 +96,8 @@ CXXFLAGS=$CPUOPT \
--mandir=/usr/man \
--infodir=/usr/info \
--disable-debugging
make -j 3
make -j 3 web
make -j $JOBS
make install DESTDIR=$PKG
make web-install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
@ -96,18 +107,26 @@ find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG/usr/man -type f -exec gzip -9 '{}' \;
find $PKG/usr/info -type f -exec gzip -9 '{}' \;
# Install the documentation
# Install the project docs
mkdir -p $PKG/usr/doc/$NAME
mv $PKG/usr/share/doc/lilypond/html $PKG/usr/doc/$NAME/html
rm -rf $PKG/usr/share/doc
install -m 644 \
AUTHORS.txt COPYING DEDICATION HACKING INSTALL.txt NEWS.txt \
README.txt ROADMAP THANKS VERSION \
AUTHORS.txt COPYING DEDICATION HACKING INSTALL.txt \
NEWS.txt README.txt ROADMAP THANKS VERSION \
$PKG/usr/doc/$NAME
# Building Lilypond documentation from source takes a *long* time and
# requires more memory than my virtual machine can provide. So, install
# the pre-built documentation.
(
cd $PKG/usr/doc/$NAME
tar xf $CWD/$ARCHDOC
# Keep only English docs
rm -rf Documentation/ja
find . \( -name '*.fr.*' -o -name '*.de.*' -o -name '*.es.*' \) -delete
)
# Copy slack-desc file
mkdir -p $PKG/install
install -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG

Loading…
Cancel
Save