1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

Update build instructions from Dockerfile (at least for deps, this build should work)

This commit is contained in:
Jonathan Goldfarb 2018-10-10 11:07:58 -04:00
parent d5382e50f4
commit b9c505a92a

View File

@ -1,101 +1,129 @@
language: cpp language: cpp
#sudo: true sudo: true
os: os:
- linux - linux
# - osx # - osx
compiler: gcc
env: env:
- POPPLER_NAME="poppler-0.63.0" POPPLER_SOURCE="https://ftp.osuosl.org/pub/blfs/conglomeration/poppler/poppler-0.63.0.tar.xz" FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git" PDF2HTMLEX_SOURCE="https://github.com/Rockstar04/pdf2htmlEX.git" global:
- POPPLER_NAME="poppler-0.63.0"
- POPPLER_SOURCE="https://gitlab.freedesktop.org/poppler/poppler.git"
- FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git"
- LIBUNINAMESLIST_SOURCE="https://github.com/fontforge/libuninameslist.git"
compiler: gcc
addons: addons:
apt: apt:
sources:
- sourceline: 'ppa:fontforge/fontforge'
- sourceline: 'ppa:coolwanglu/pdf2htmlex'
update: true update: true
packages: packages:
- ttfautohint
- build-essential - build-essential
- libtool
- autoconf - autoconf
- python-pip - gcc
- libgetopt++-dev
- pkg-config - pkg-config
- git - git
- default-jre - cmake
- libnss3-dev - ca-certificates
- libopenjpeg-dev - libfreetype6-dev
- libjpeg-turbo8-dev # Poppler-specific packages
- libfontconfig1-dev - libfontconfig1-dev
- poppler-data - libjpeg-dev
# - poppler-utils - libnss3-dev
# - poppler-dbg # libuninameslist-specific packages
- packaging-dev - automake
- libtool
# fontforge-specific packages
- libltdl-dev
- python-dev
- libglib2.0-dev - libglib2.0-dev
- libxml2-dev - libxml2-dev
- giflib-dbg
- libjpeg-dev
- libtiff-dev
- uthash-dev
- libcairo-dev
# - libpoppler-dev
- libspiro-dev - libspiro-dev
- libcairo-dev - gettext
# pdf2htmlEX-specific packages
- default-jre
- libcairo2-dev
- libpango1.0-dev - libpango1.0-dev
- libfreetype6-dev
- libltdl-dev
- libfontforge-dev
- python-dev
- python-imaging
- python-pip
- firefox
- xvfb
- cmake
homebrew: homebrew:
packages: packages:
- fontforge - build-essential
- poppler - autoconf
- cairo - gcc
- pkg-config
- git
- cmake
- ca-certificates
- libfreetype6-dev
# Poppler-specific packages
- libfontconfig1-dev
- libjpeg-dev
- libnss3-dev
# libuninameslist-specific packages
- automake
- libtool
# fontforge-specific packages
- libltdl-dev
- python-dev
- libpython-dev
- libglib2.0-dev
- libxml2-dev
- libspiro-dev
- gettext
# pdf2htmlEX-specific packages
- default-jre
- libcairo2-dev
- libpango1.0-dev
sauce_connect: true sauce_connect: true
before_install: before_install:
# Install poppler # Clone and build poppler
- wget "${POPPLER_SOURCE}" - git clone ${POPPLER_SOURCE}
- tar -xvf "${POPPLER_NAME}.tar.xz" - cd poppler;
- cd "${POPPLER_NAME}/" git checkout tags/${POPPLER_NAME} -b poppler-local;
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/../usr -DENABLE_XPDF_HEADERS=ON -DENABLE_LIBOPENJPEG=none cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr -DENABLE_XPDF_HEADERS=ON -DENABLE_LIBOPENJPEG=none .;
- make && make install make;
- cd .. make install
# Install fontforge libuninameslist via source ... - cd ${TRAVIS_BUILD_DIR}
- git clone https://github.com/fontforge/libuninameslist.git
- cd libuninameslist # Install libuninameslist
- autoreconf -i && automake - git clone ${LIBUNINAMESLIST_SOURCE}
- ./configure --prefix=`pwd`/../usr - cd libuninameslist;
- make && make install git checkout tags/20180701 -b libuninameslist-local;
# Install fontforge via source autoreconf -i;
- git clone --depth 1 --single-branch --branch 20170731 "$FONTFORGE_SOURCE" automake;
- cd fontforge/ && git checkout tags/20170731 ./configure --prefix=${TRAVIS_BUILD_DIR}/usr;
- ./bootstrap make;
- ./configure --prefix=`pwd`/../usr make install
- make && make install && ldconfig - cd ${TRAVIS_BUILD_DIR}
# - pip install --user selenium sauceclient
# - export DISPLAY=:99.0 # Install fontforge
# - test/start_xvfb.sh - git clone ${FONTFORGE_SOURCE}
# - pushd / - cd fontforge;
# - python -m SimpleHTTPServer 8000 >/dev/null 2>&1 & git checkout tags/20170731 -b fontforge-local;
# - popd ./bootstrap;
# - sleep 5 ./configure --disable-programs --disable-python-extension --disable-python-scripting --prefix=${TRAVIS_BUILD_DIR}/usr;
make;
make install;
sudo ldconfig
- cd ${TRAVIS_BUILD_DIR}
# Test setup
- pip install --user selenium sauceclient
- export DISPLAY=:99.0
- test/start_xvfb.sh
- pushd /
- python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
- popd
- sleep 5
before_script: before_script:
- cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=`pwd`/usr . - cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr .
- export LD_LIBRARY_PATH=`pwd`/usr/lib:$LD_LIBRARY_PATH - export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/usr/lib:$LD_LIBRARY_PATH
script: script:
- make - make
# - P2H_TEST_REMOTE=1 ctest --output-on-failure --verbose # - P2H_TEST_REMOTE=1 ctest --output-on-failure --verbose
- make install - make install
- /usr/local/bin/pdf2htmlEX -v - ${TRAVIS_BUILD_DIR}/usr/local/bin/pdf2htmlEX -v