Skip to content

Commit 4bed017

Browse files
committed
initial attempt at compiling pdf2htmlEX with poppler-0.75.0
1 parent 447a072 commit 4bed017

10 files changed

Lines changed: 106 additions & 5 deletions

building/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
hostEnvs
2+
tmp
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
### Commented entries have reasonable defaults.
2+
### Uncomment to edit them.
3+
# Source: <source package name; defaults to package name>
4+
Section: misc
5+
Priority: optional
6+
# Homepage: <enter URL here; no default>
7+
Standards-Version: 3.9.2
8+
9+
Package: libpoppler-dev
10+
# Version: <enter version here; defaults to 1.0>
11+
# Maintainer: Your Name <yourname@example.com>
12+
# Pre-Depends: <comma-separated list of packages>
13+
# Depends: <comma-separated list of packages>
14+
# Recommends: <comma-separated list of packages>
15+
# Suggests: <comma-separated list of packages>
16+
# Provides: <comma-separated list of packages>
17+
# Replaces: <comma-separated list of packages>
18+
# Architecture: all
19+
# Multi-Arch: <one of: foreign|same|allowed>
20+
# Copyright: <copyright file; defaults to GPL2>
21+
# Changelog: <changelog file; defaults to a generic changelog>
22+
# Readme: <README.Debian file; defaults to a generic one>
23+
# Extra-Files: <comma-separated list of additional files for the doc directory>
24+
# Links: <pair of space-separated paths; First is path symlink points at, second is filename of link>
25+
# Files: <pair of space-separated paths; First is file to include, second is destination>
26+
# <more pairs, if there's more than one file to include. Notice the starting space>
27+
Description: <short description; defaults to some wise words>
28+
long description and info
29+
.
30+
second paragraph

building/awsEC2/files/libpoppler86

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
### Commented entries have reasonable defaults.
2+
### Uncomment to edit them.
3+
# Source: <source package name; defaults to package name>
4+
Section: misc
5+
Priority: optional
6+
Homepage: https://github.com/pdf2htmlEX/buildAndPackagingTools/blob/master/docs/FakePackages.md
7+
Standards-Version: 3.9.2
8+
9+
Package: libpoppler86
10+
# Version: <enter version here; defaults to 1.0>
11+
Maintainer: Stephen Gaito <stephen@perceptisys.co.uk>
12+
# Pre-Depends: <comma-separated list of packages>
13+
Depends: liblcms2-2, poppler-data
14+
# Recommends: <comma-separated list of packages>
15+
# Suggests: <comma-separated list of packages>
16+
# Provides: <comma-separated list of packages>
17+
# Replaces: <comma-separated list of packages>
18+
# Architecture: all
19+
# Multi-Arch: <one of: foreign|same|allowed>
20+
# Copyright: <copyright file; defaults to GPL2>
21+
# Changelog: <changelog file; defaults to a generic changelog>
22+
# Readme: <README.Debian file; defaults to a generic one>
23+
# Extra-Files: <comma-separated list of additional files for the doc directory>
24+
# Links: <pair of space-separated paths; First is path symlink points at, second is filename of link>
25+
# Files: <pair of space-separated paths; First is file to include, second is destination>
26+
# <more pairs, if there's more than one file to include. Notice the starting space>
27+
Description: A FAKE version of the libpopplerXX package
28+
A FAKE version of the libpopplerXX package

building/awsEC2/scripts/doinstallPoppler

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,20 @@ read -p "Type anything else to continue: "
66

77
cd poppler/build
88
sudo make install
9+
10+
cd
11+
12+
sudo mkdir -p /usr/include/poppler
13+
sudo cp poppler/poppler/*.h /usr/include/poppler
14+
15+
sudo mkdir -p /usr/include/poppler/goo
16+
sudo cp poppler/goo/*.h /usr/include/poppler/goo
17+
18+
sudo mkdir -p /usr/include/poppler/fofi
19+
sudo cp poppler/fofi/*.h /usr/include/poppler/fofi
20+
21+
sudo mkdir -p /usr/include/poppler/splash
22+
sudo cp poppler/splash/*.h /usr/include/poppler/splash
23+
24+
sudo cp poppler/build/poppler/poppler-config.h \
25+
/usr/include/poppler

building/basicBuildSetup.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
name:
3232
- aptitude
3333
- git
34-
- libpoppler-private-dev
3534
- pkg-config
3635
- ruby
3736
- cmake
@@ -46,10 +45,12 @@
4645
- libspiro-dev
4746
- libpng-dev
4847
- libjpeg-dev
49-
- libpoppler-dev
48+
#- libpoppler-dev
49+
#- libpoppler-private-dev # header files
5050
- libpango1.0-dev
5151
- libfontforge-dev
5252
- poppler-data
53+
- liblcms2-dev
5354
- openjdk-8-jre-headless # required for minimization of javascript
5455
#- openjdk-11-jre-headless # required for minimization of javascript
5556
- nginx # helps view the result pdf2html

building/basicTestSetup.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,21 @@
2929
state: latest
3030
update_cache: yes
3131
name:
32+
# basic tools
33+
- tree
3234
- aptitude
3335
- nginx
36+
# basic build tools
37+
- git
38+
- pkg-config
39+
- cmake
40+
- make
41+
- gcc
42+
- g++
43+
- equivs # to build a fake poppler package
44+
# packages required to compile poppler
45+
- libfontforge-dev
46+
- libfontconf-dev
3447
- name: copy test scripts
3548
copy:
3649
src: awsEC2/scripts/

building/ec2-install-pdf2html-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
git:
2020
repo: https://gitlab.freedesktop.org/poppler/poppler.git
2121
dest: /home/ubuntu/poppler
22-
version: poppler-0.74.0
22+
version: poppler-0.75.0
2323
- name: Install pdf2htmlEX git repo for compilation
2424
git:
2525
repo: https://github.com/pdf2htmlEX/pdf2htmlEX.git

building/ec2-install-pdf2html-testDeb.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@
1616

1717
- import_playbook: basicTestSetup.yml
1818

19+
- name: Setup and install poppler repos for compilation
20+
hosts: compileServers
21+
remote_user: ubuntu
22+
gather_facts: no
23+
tasks:
24+
- name: Install poppler git repo for compilation
25+
git:
26+
repo: https://gitlab.freedesktop.org/poppler/poppler.git
27+
dest: /home/ubuntu/poppler
28+
version: poppler-0.75.0
29+

building/runPlaybook0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
ansible-playbook -i hosts -l aws0 --ask-vault-pass --key-file $ANSIBLE_SSH_KEY $*
3+
ansible-playbook -i hosts -l aws0 --key-file $ANSIBLE_SSH_KEY $*

building/runPlaybook2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
ansible-playbook -i hosts -l aws2 --ask-vault-pass --key-file $ANSIBLE_SSH_KEY $*
3+
ansible-playbook -i hosts -l aws2 --key-file $ANSIBLE_SSH_KEY $*

0 commit comments

Comments
 (0)