slackbuilds_ponce/office/paps/src-to-paps.diff
B. Watson 3c988cae12
office/paps: Updated for version 0.8.0, fix src-to-paps.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-05-06 08:28:31 +07:00

31 lines
1.2 KiB
Diff

diff -Naur paps-0.8.0/scripts/src-to-paps paps-0.8.0.patched/scripts/src-to-paps
--- paps-0.8.0/scripts/src-to-paps 2023-02-09 02:27:38.000000000 -0500
+++ paps-0.8.0.patched/scripts/src-to-paps 2023-05-03 16:53:01.568348300 -0400
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
######################################################################
# Use GNU source-hightlight to turn source code into pango markup
@@ -49,7 +49,7 @@
# Defaults
# TBD - Make this a configuration variable
-pango_outlang_path = '/usr/local/share/paps/pango_markup.outlang'
+pango_outlang_path = '/usr/share/paps/pango_markup.outlang'
parser = argparse.ArgumentParser(description='Process a file')
parser.add_argument('-o', '--output',
@@ -114,7 +114,11 @@
'.cpp' : 'C',
'.cxx' : 'C',
'.cc' : 'C',
- '.c' : 'C'
+ '.c' : 'C',
+ '.pl' : 'perl',
+ '.SlackBuild' : 'sh',
+ '.cs' : 'csharp',
+ '.s' : 'asm'
}.get(Path(fn).suffix)
if args.source_lang is None
else args.source_lang)