diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-17 20:23:17 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-17 23:34:13 -0500 |
commit | c71bbcb16bc583f8a45f2cb167739ab070b35f2d (patch) | |
tree | 43c04c3db8e8763fe0e4b879b1b6ac77be08472f /graphics/fontmatrix/fontmatrix.SlackBuild | |
parent | f16da522b7ea55596254c4dd87e4b93a8be8932d (diff) | |
download | slackbuilds-c71bbcb16bc583f8a45f2cb167739ab070b35f2d.tar.gz |
graphics/fontmatrix: Updated for subversion revision 1220.
Various cleanups in the build proceure.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/fontmatrix/fontmatrix.SlackBuild')
-rw-r--r-- | graphics/fontmatrix/fontmatrix.SlackBuild | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/graphics/fontmatrix/fontmatrix.SlackBuild b/graphics/fontmatrix/fontmatrix.SlackBuild index a0177b0317..a0378087f5 100644 --- a/graphics/fontmatrix/fontmatrix.SlackBuild +++ b/graphics/fontmatrix/fontmatrix.SlackBuild @@ -5,7 +5,7 @@ # Maintained by Klaatu <klaatu@member.fsf.org> PRGNAM=fontmatrix -VERSION=${VERSION:-0.6.0} +VERSION=${VERSION:-r1220} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -38,16 +38,13 @@ else LIBDIRSUFFIX="" fi -# Decide if we compile fontmatrix with podofo support. Default is no. -HAVE_PODOFO=${HAVE_PODOFO:-no} - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION-Source -tar xvf $CWD/$PRGNAM-$VERSION-Source.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION-Source.tar.?z* cd $PRGNAM-$VERSION-Source chown -R root:root . find . \ @@ -56,16 +53,16 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix the desktop menu item, location of man files, and PODOFO lib64 detection. +# Fix the desktop menu item and location of man files. echo "StartupNotify=false" >> $PRGNAM.desktop sed -i 's|share/man|man|' CMakeLists.txt -patch -p1 < $CWD/fix-podofo-detection.patch + # Cmake uses the static python lib. Let's use the shared lib instead. PYVER=$(python -c 'import sys; print sys.version[:3]') PY_LIB_SHARED="/usr/lib${LIBDIRSUFFIX}/libpython${PYVER}.so" -# Decide if we use PODOFO. -if [ "${HAVE_PODOFO}" == "yes" ]; then +# Decide if we want PODOFO support (default is no). +if [ "${HAVE_PODOFO:-no}" == "yes" ]; then USE_PODOFO="TRUE" else USE_PODOFO="FALSE" @@ -76,9 +73,7 @@ mkdir build && cd build -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DPYTHON_LIBRARY:PATH="$PY_LIB_SHARED" \ - -DOWN_SHAPER:BOOL=1 \ -DCMAKE_SKIP_RPATH:BOOL=1 \ - -DRPATH_STYLE:STRING=none \ -DWANT_ICU:BOOL=true \ -DWANT_M17N:BOOL=true \ -DWANT_PYTHONQT:BOOL=true \ @@ -96,13 +91,11 @@ mkdir build && cd build make install DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done rm -rf $PKG/usr/share/icons for i in 16 22 32 48 64 128; do @@ -113,7 +106,7 @@ done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING INSTALL TODO harfbuzz/{COPYING.*,README,AUTHORS} \ + COPYING ChangeLog TODO harfbuzz/{COPYING.*,README,AUTHORS} \ $PKG/usr/doc/$PRGNAM-$VERSION cat harfbuzz/COPYING > $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.harfbuzz cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |