Skip to content

Commit

Permalink
snappy: Avoid generating manpage
Browse files Browse the repository at this point in the history
This patch patches the Autoconf files so that the poedit.1 manpage
won't be built during building snap.  Manpages in a snap are not
(yet) accessible from regular snap user[1] and the Asciidoc build
dependency will pull great amount of texlive packages, making the
build a lot longer.

[1] https://forum.snapcraft.io/t/support-for-man-pages/2299
  • Loading branch information
brlin-tw committed Aug 25, 2018
1 parent 54c3fd5 commit 808a217
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,23 @@ parts:
--depth=50 \
deps/pugixml
# Avoid generating manpage that is not accessible by users
sed \
--in-place \
'/\(^.*generate-docs.*$\)/d' \
bootstrap
sed \
--in-place \
'/^SUBDIRS = /s/docs //' \
Makefile.am
build-packages:
# Generated manpages are not accessible, also it depends on
# huge texlive packages that waste bandwidth and disk space
#- asciidoc
#- xsltproc
#- xmlto

# Boost libraries provided by Ubuntu 16.04 are too old, using
# installation from `boostlib` part instead
#- libboost-dev
Expand All @@ -124,7 +140,6 @@ parts:
# Gtkspell3 requires patching to be relocatable
#- libgtkspell3-3-dev

- asciidoc
- automake
- gettext
- libcld2-dev
Expand All @@ -136,8 +151,6 @@ parts:
- libsecret-1-dev
- libtiff5-dev
- pkg-config
- xsltproc
- xmlto
- zlib1g-dev

plugin: autotools
Expand Down

0 comments on commit 808a217

Please sign in to comment.