r22809 by jghali - Travis: attempt to build a more recent poppler version on Travis' Ubuntu Xenial

scribus-commit scribus-commit at lists.scribus.net
Thu Jan 17 11:18:10 UTC 2019


Author: jghali
Date: Thu Jan 17 11:18:10 2019
New Revision: 22809

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22809
Log:
Travis: attempt to build a more recent poppler version on Travis' Ubuntu Xenial

Modified:
    trunk/Scribus/.travis.yml

Modified: trunk/Scribus/.travis.yml
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22809&path=/trunk/Scribus/.travis.yml
==============================================================================
--- trunk/Scribus/.travis.yml	(original)
+++ trunk/Scribus/.travis.yml	Thu Jan 17 11:18:10 2019
@@ -24,11 +24,20 @@
 
 before_install:
 # Linux
-- if [ $TRAVIS_OS_NAME == linux ]; then
+-   if [ $TRAVIS_OS_NAME == linux ]; then
       sudo apt-add-repository ppa:beineri/opt-qt595-xenial -y;
       sudo apt-add-repository ppa:as-bahanta/raqm -y;
       sudo apt-add-repository ppa:ricotz/testing -y;
       sudo apt-get update -qq;
+    fi
+# OSX
+-   if [ $TRAVIS_OS_NAME == osx ]; then
+      brew update; 
+    fi
+
+install:
+# Linux
+-   if [ $TRAVIS_OS_NAME == linux ]; then
       sudo apt-get install --force-yes cmake libboost-python-dev libcups2-dev libhunspell-dev
       libhyphen-dev liblcms2-dev libpodofo-dev libtiff-dev libxml2-dev
       python-all-dev zlib1g-dev qt59base qt59declarative
@@ -36,10 +45,17 @@
       libopenscenegraph-dev libpoppler-dev libpoppler-cpp-dev libcairo2-dev libwpg-dev 
       libmspub-dev libcdr-dev libvisio-dev libharfbuzz-dev libharfbuzz-icu0
       coreutils binutils python-tk;
+#     Build a more recent poppler than Ubuntu Xenial's poppler 0.41.0
+      mkdir deps && pushd deps;
+      sudo apt-get install --force-yes libopenjpeg-dev;
+      wget https://poppler.freedesktop.org/poppler-data-0.4.9.tar.gz && tar -xf poppler-data-0.4.9.tar.gz;
+      pushd poppler-data-0.4.9 && cmake -DCMAKE_BUILD_TYPE=Release && sudo make install && popd;
+      wget https://poppler.freedesktop.org/poppler-0.58.0.tar.xz && tar -xf poppler-0.58.0.tar.xz;
+      pushd poppler-0.58.0 && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_XPDF_HEADERS=1 && sudo make install && popd;
+      popd;
     fi
 # OSX
-# - if [ $TRAVIS_OS_NAME == osx ]; then brew --env && brew config && brew list; fi
-- if [ $TRAVIS_OS_NAME == osx ]; then brew update; 
+-   if [ $TRAVIS_OS_NAME == osx ]; then 
       brew outdated cmake --verbose || brew upgrade cmake; 
       brew tap homebrew/dupes && brew install homebrew/dupes/zlib && brew link --force zlib;
       brew install icu4c && brew link --force icu4c;
@@ -55,7 +71,7 @@
     fi
   # - export LDFLAGS+=-L/usr/local/opt/zlib/lib:-L/usr/local/opt/gettext/lib:-L/usr/local/opt/libffi/lib:-L/usr/local/opt/qt5/lib:-L/usr/local/opt/sqlite/lib:-L/usr/local/opt/openssl/lib:-L/usr/local/opt/icu4c/lib
   # - export CXXFLAGS+=-I/usr/local/opt/zlib/include:-I/usr/local/opt/gettext/include:-I/usr/local/opt/qt5/include:-I/usr/local/opt/sqlite/include:-I/usr/local/opt/openssl/include:-I/usr/local/opt/icu4c/include 
-
+  
 script:
   - if [ $TRAVIS_OS_NAME == linux ]; then
       source /opt/qt59/bin/qt59-env.sh;
@@ -64,10 +80,10 @@
       else
         export NPROC=1;
       fi;
-    cmake . -DCMAKE_INSTALL_PREFIX=/usr -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US;
-    make -j"$NPROC";
-    make install;
-    bash -ex ./AppImage-package/bundle.sh;
+      cmake . -DCMAKE_INSTALL_PREFIX=/usr -DWANT_HUNSPELL=1 -DWITH_PODOFO=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_DEBUG=0 -DWANT_SVNVERSION=0 -DWANT_GUI_LANG=en_US;
+      make -j"$NPROC";
+      make install;
+      bash -ex ./AppImage-package/bundle.sh;
     fi
 
   - if [ $TRAVIS_OS_NAME = osx -a $CC = clang ]; then




More information about the scribus-commit mailing list