slackbuilds_ponce/graphics/unpaper/unpaper-7.0.0-no-sphinx.patch
Logan Rathbone a7244477f2
graphics/unpaper: Update for 7.0.0
Build system has moved to meson, so rewrite the SlackBuild based on the
standard meson template.

The manpage now requires "sphinx" to be built, which is a large python
package with many dependencies. Patch out the building of same by
default, and add the optional dep of Sphinx and the option SPHINX=true
for those that want it.

Update the README file to reflect this build option/optional dep, and
re-paragraph it to make it more readable.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-08-13 07:18:36 +07:00

21 lines
766 B
Diff

diff -Naur unpaper-7.0.0.orig/meson.build unpaper-7.0.0/meson.build
--- unpaper-7.0.0.orig/meson.build 2023-08-12 12:37:30.389999033 -0400
+++ unpaper-7.0.0/meson.build 2023-08-12 12:37:57.307998930 -0400
@@ -36,17 +36,6 @@
install : true,
)
-sphinx = find_program('sphinx-build', required: true, version: '>= 3.4')
-
-custom_target(
- 'man',
- command: [sphinx, '-b', 'man', join_paths(meson.source_root(), 'doc'), '@OUTDIR@'],
- input: ['doc/conf.py', 'doc/index.rst', 'doc/unpaper.1.rst'],
- output: 'unpaper.1',
- install: true,
- install_dir: join_paths(get_option('prefix'), get_option('mandir'), 'man1'),
-)
-
pymod = import('python')
python = pymod.find_installation(required: false, modules: ['pytest', 'PIL'], disabler: true)