diff options
author | Larry Hajali <larryhaja@gmail.com> | 2016-02-07 10:49:47 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-08 23:43:24 +0700 |
commit | 2355494a80c4503f4f51ab8fb77373cd17823f6e (patch) | |
tree | 236833d1568b5b9720b7f0027158b07f5fef057a /graphics/fontmatrix | |
parent | 0898924fccf16f08aacf312c587a0720d671ce98 (diff) |
graphics/fontmatrix: fix build
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/fontmatrix')
-rw-r--r-- | graphics/fontmatrix/fix-podofo-detection.patch | 11 | ||||
-rw-r--r-- | graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch | 47 | ||||
-rw-r--r-- | graphics/fontmatrix/fontmatrix.SlackBuild | 5 |
3 files changed, 51 insertions, 12 deletions
diff --git a/graphics/fontmatrix/fix-podofo-detection.patch b/graphics/fontmatrix/fix-podofo-detection.patch deleted file mode 100644 index f87fefb02067..000000000000 --- a/graphics/fontmatrix/fix-podofo-detection.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -Naur fontmatrix-0.6.0-Source.orig/cmake/modules/FindLIBPODOFO.cmake fontmatrix-0.6.0-Source/cmake/modules/FindLIBPODOFO.cmake ---- fontmatrix-0.6.0-Source.orig/cmake/modules/FindLIBPODOFO.cmake 2009-07-03 15:26:41.000000000 +0000 -+++ fontmatrix-0.6.0-Source/cmake/modules/FindLIBPODOFO.cmake 2009-07-04 02:15:14.000000000 +0000 -@@ -32,6 +32,7 @@ - "${LIBPODOFO_DIR}/src" - "${LIBPODOFO_DIR}" - /usr/lib /usr/local/lib -+ /usr/lib64 /usr/local/lib64 - ) - - IF(LIBPODOFO_INCLUDE_DIR AND LIBPODOFO_LIBRARY) diff --git a/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch b/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch new file mode 100644 index 000000000000..56d171a5d3e3 --- /dev/null +++ b/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch @@ -0,0 +1,47 @@ +diff -ur old.fontmatrix-0.9.99-Source/src/icushaper.cpp fontmatrix-0.9.99-Source/src/icushaper.cpp +--- old.fontmatrix-0.9.99-Source/src/icushaper.cpp 2011-10-03 08:02:54.369203955 +0200 ++++ fontmatrix-0.9.99-Source/src/icushaper.cpp 2015-10-29 12:58:30.806886446 +0100 +@@ -248,7 +248,7 @@ + + } + +-const void * IcuFontImpl::getFontTable ( LETag tableTag ) const ++const void * IcuFontImpl::getFontTable ( LETag tableTag, size_t &olength ) const + { + // qDebug()<< "IcuFontImpl::getFontTable" << OTF_tag_name( tableTag ); + FT_Face face ( otf->face() ); +@@ -263,13 +263,21 @@ + FT_Load_Sfnt_Table ( face, tableTag, 0, bA, &length ); + + regTables( tableTag, bA ); ++ olength = length; + return (const void*) tables.value(tableTag); + } + + } ++ olength = length; + return 0; + } + ++const void * IcuFontImpl::getFontTable ( LETag tableTag ) const ++{ ++ size_t length(0); ++ return getFontTable( tableTag, length); ++} ++ + le_int32 IcuFontImpl::getUnitsPerEM() const + { + return otf->face()->units_per_EM; +diff -ur old.fontmatrix-0.9.99-Source/src/icushaper.h fontmatrix-0.9.99-Source/src/icushaper.h +--- old.fontmatrix-0.9.99-Source/src/icushaper.h 2011-10-03 08:02:54.363203913 +0200 ++++ fontmatrix-0.9.99-Source/src/icushaper.h 2015-10-29 12:55:57.983050904 +0100 +@@ -27,7 +27,8 @@ + ~IcuFontImpl(); + // implements pure virtual methods of LEFontInstance + +- const void* getFontTable(LETag tableTag ) const; ++ const void* getFontTable(LETag tableTag, size_t &length ) const; ++ const void* getFontTable(LETag tableTag ) const; // DEPRECATED + le_bool canDisplay (LEUnicode32 ch) const {return true;} + le_int32 getUnitsPerEM () const; + LEGlyphID mapCharToGlyph (LEUnicode32 ch) const ; diff --git a/graphics/fontmatrix/fontmatrix.SlackBuild b/graphics/fontmatrix/fontmatrix.SlackBuild index d3c032bc9024..3919641d2730 100644 --- a/graphics/fontmatrix/fontmatrix.SlackBuild +++ b/graphics/fontmatrix/fontmatrix.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=fontmatrix VERSION=${VERSION:-r1220} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -55,6 +55,9 @@ find -L . \ echo "StartupNotify=false" >> $PRGNAM.desktop sed -i 's|share/man|man|' CMakeLists.txt +# Fix fontmatrix build against icu 0.56. +patch -p1 < $CWD/fontmatrix-0.9.99-adapt-to-icu-56.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" |