mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
removed all brew related build scripts as well as install poppler and fontforge
This commit is contained in:
parent
91c1163721
commit
f33ec28d89
@ -1,47 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script builds the complete pdf2htmlEX application LOCALLY
|
|
||||||
# (It does not create the AppImage or Docker images)
|
|
||||||
|
|
||||||
# Adjust the following two environment variables to suit your needs
|
|
||||||
#
|
|
||||||
export UNATTENDED="--assume-yes"
|
|
||||||
export MAKE_PARALLEL="-j $(nproc)"
|
|
||||||
|
|
||||||
# choose one of the following...
|
|
||||||
#
|
|
||||||
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
|
|
||||||
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
||||||
|
|
||||||
# The following environment variable determines where the poppler,
|
|
||||||
# poppler-data, fontforge and pdf2htmlEX packages are installed.
|
|
||||||
# CHANGE IT TO SUIT YOUR NEEDS:
|
|
||||||
#
|
|
||||||
export PDF2HTMLEX_PREFIX=/home/linuxbrew/.linuxbrew
|
|
||||||
|
|
||||||
################
|
|
||||||
# do the build
|
|
||||||
|
|
||||||
# The following is used by the pdf2htmlEX CMakeLists.txt file
|
|
||||||
#
|
|
||||||
export USING_BREW=1
|
|
||||||
|
|
||||||
./buildScripts/versionEnvs || { echo 'versionEnvs FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/getBuildToolsBrew || { echo 'getBuildToolsBrew FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/getDevLibrariesBrew || { echo 'getDevLibrariesBrew FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/getPoppler || { echo 'getPoppler FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/buildPoppler || { echo 'buildPoppler FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/getFontforge || { echo 'getFontforge FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/buildFontforge || { echo 'buildFontforge FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/buildPdf2htmlEX || { echo 'buildPdf2htmlEX FAILED' ; exit 1 ; }
|
|
||||||
|
|
||||||
./buildScripts/installPdf2htmlEX || { echo 'installPdf2htmlEX FAILED' ; exit 1 ; }
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script builds pdf2htmlEX using Clang (if it is installed)
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "BUILDING pdf2htmlEX (using CLang)"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
cd pdf2htmlEX
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX ..
|
|
||||||
make $MAKE_PARALLEL
|
|
@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script automates getting the required build tools (brew install)
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "INSTALLING Build Tools (using Home/Linux Brew)"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
brew update
|
|
||||||
brew install \
|
|
||||||
autoconf \
|
|
||||||
libtool \
|
|
||||||
make \
|
|
||||||
gettext \
|
|
||||||
openjdk \
|
|
||||||
jq \
|
|
||||||
tree
|
|
||||||
|
|
||||||
# Removed the following for homeBrew (macos on travis)
|
|
||||||
# git \
|
|
||||||
# pkg-config \
|
|
||||||
# cmake \
|
|
||||||
# ruby \
|
|
||||||
# gcc \
|
|
@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script automates getting the required build tools (brew install)
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "INSTALLING Build Tools (using Home/Linux Brew)"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
brew update
|
|
||||||
brew install \
|
|
||||||
git \
|
|
||||||
pkg-config \
|
|
||||||
ruby \
|
|
||||||
autoconf \
|
|
||||||
libtool \
|
|
||||||
cmake \
|
|
||||||
make \
|
|
||||||
gcc \
|
|
||||||
gettext \
|
|
||||||
openjdk \
|
|
||||||
jq \
|
|
||||||
tree
|
|
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script automates getting the development libraries required to
|
|
||||||
# build poppler and fontforge (using Home/Linux Brew)
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "INSTALLING development libraries (using Home/Linux Brew)"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
brew update
|
|
||||||
brew install \
|
|
||||||
cairo \
|
|
||||||
libpng \
|
|
||||||
jpeg \
|
|
||||||
libxml2 \
|
|
||||||
|
|
||||||
# libspiro \
|
|
||||||
# pango \
|
|
||||||
# little-cms2 \
|
|
||||||
# libuninameslist \
|
|
@ -1,25 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script automates the process of getting the original pdf2htmlEX
|
|
||||||
# source
|
|
||||||
|
|
||||||
PDF2HTMLEX_BRANCH=update-poppler
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "GETTING pdf2htmlEX sources (using wget)"
|
|
||||||
echo " (PDF2HTMLEX_BRANCH: [$PDF2HTMLEX_BRANCH])"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH
|
|
||||||
|
|
||||||
mv $PDF2HTMLEX_BRANCH $PDF2HTMLEX_BRANCH.zip
|
|
||||||
|
|
||||||
brew install unzip
|
|
||||||
|
|
||||||
unzip $PDF2HTMLEX_BRANCH.zip
|
|
||||||
|
|
||||||
mv pdf2htmlEX-$PDF2HTMLEX_BRANCH pdf2htmlEX
|
|
@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "INSTALLING FontForge locally"
|
|
||||||
echo " (UNATTENDED: [$UNATTENDED])"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$UNATTENDED" ] ; then
|
|
||||||
echo "WARNING: this may over-write any existing"
|
|
||||||
echo "FontForge version you have installed on your system."
|
|
||||||
echo "This may break other packages/applications."
|
|
||||||
echo ""
|
|
||||||
echo "This installation assumes you have 'sudo' privileges."
|
|
||||||
echo ""
|
|
||||||
echo "Type ctrl-c now if DO NOT want to continue"
|
|
||||||
read -p "Type anything else to continue: "
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
cd fontforge
|
|
||||||
sudo make install
|
|
||||||
sudo ldconfig;
|
|
@ -1,49 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script installs Poppler into the local system
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo "INSTALLING Poppler locally"
|
|
||||||
echo " (UNATTENDED: [$UNATTENDED])"
|
|
||||||
echo "-------------------------------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$UNATTENDED" ] ; then
|
|
||||||
echo "WARNING: this may over-write any existing"
|
|
||||||
echo "Poppler version you have installed on your system."
|
|
||||||
echo "This may break other packages/applications."
|
|
||||||
echo ""
|
|
||||||
echo "This installation assumes you have 'sudo' privileges."
|
|
||||||
echo ""
|
|
||||||
echo "Type ctrl-c now if DO NOT want to continue"
|
|
||||||
read -p "Type anything else to continue: "
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
cd poppler/build
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler
|
|
||||||
sudo cp poppler/*.h $PDF2HTMLEX_PREFIX/include/poppler
|
|
||||||
|
|
||||||
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/goo
|
|
||||||
sudo cp goo/*.h $PDF2HTMLEX_PREFIX/include/poppler/goo
|
|
||||||
|
|
||||||
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/fofi
|
|
||||||
sudo cp fofi/*.h $PDF2HTMLEX_PREFIX/include/poppler/fofi
|
|
||||||
|
|
||||||
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/splash
|
|
||||||
sudo cp splash/*.h $PDF2HTMLEX_PREFIX/include/poppler/splash
|
|
||||||
|
|
||||||
sudo cp build/poppler/poppler-config.h \
|
|
||||||
$PDF2HTMLEX_PREFIX/include/poppler
|
|
||||||
|
|
||||||
cd ../poppler-data
|
|
||||||
|
|
||||||
sudo make install prefix=$PDF2HTMLEX_PREFIX
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This bash script builds everyting on an TravisCI Mac OSx worker
|
|
||||||
|
|
||||||
# See:
|
|
||||||
# https://docs.travis-ci.com/user/installing-dependencies/#using-homebrew-without-addon-on-older-macos-images
|
|
||||||
# For details on obtaining/using the correct ruby version for homebrew.
|
|
||||||
|
|
||||||
brew update
|
|
||||||
brew tap pdf2htmlEX/homebrew-brewTap
|
|
||||||
brew install pdf2htmlex-new
|
|
Loading…
Reference in New Issue
Block a user