Codebase list texlive-bin / 2533e9e
use upstream changes for synctex shared lib, adapt rules Norbert Preining 9 years ago
10 changed file(s) with 236 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
5959 ptexenc library, a library for encoding support in pTeX, a Japanese
6060 TeX engine.
6161
62 Package: libsynctex-parser1
62 Package: libsynctex1
6363 Section: libs
6464 Architecture: any
6565 Depends: ${misc:Depends}, ${shlibs:Depends}
6666 Description: TeX Live: SyncTeX parser library
6767 Library for SyncTeX parsing support.
6868
69 Package: libsynctex-parser-dev
69 Package: libsynctex-dev
7070 Section: libdevel
7171 Architecture: any
72 Depends: ${misc:Depends}, libsynctex-parser1 (= ${binary:Version})
72 Depends: ${misc:Depends}, libsynctex1 (= ${binary:Version})
7373 Description: Tex Live: SyncTeX parser library (development part)
7474 This package contains the static library and header files for the SyncTex
7575 parser library.
0 usr/lib/libsynctex.so
1 usr/include/synctex_parser.h
+0
-2
debian/libsynctex-parser-dev.install less more
0 usr/lib/libsynctex_parser.so
1 usr/include/synctex_parser.h
+0
-1
debian/libsynctex-parser1.install less more
0 usr/lib/libsynctex_parser.so.*
0 usr/lib/libsynctex.so.*
77 pmpost-mp1.902
88 upmpost-mp1.902
99 ac-ctie
10 syntex-lib.patch
10 #syntex-lib.patch
1111 upupstream-fix-pdf_h-query-svn5018
1212 upupstream-fix-math-list-crash-svn5019
1313 upupstream-bug907-svn5024
14 upstream-svn34447-partly-kpathsea-pc-file
15 upstream-svn34448-partly-ptexenc-pc-file
16 upstream-svn34449-partly-synctex-sharedlib
0 ---
1 texk/kpathsea/Makefile.am | 4 ++++
2 texk/kpathsea/configure.ac | 2 +-
3 texk/kpathsea/kpathsea.pc.in | 11 +++++++++++
4 3 files changed, 16 insertions(+), 1 deletion(-)
5
6 --- texlive-bin.orig/texk/kpathsea/Makefile.am
7 +++ texlive-bin/texk/kpathsea/Makefile.am
8 @@ -180,6 +180,10 @@
9 xopendir.h \
10 xstat.h
11
12 +pkgconfigdir = ${libdir}/pkgconfig
13 +
14 +pkgconfig_DATA = kpathsea.pc
15 +
16 ## Handle backslash continuations, then null out comments and
17 ## leading/trailing whitespace. An awk script does the rest.
18 ##
19 --- texlive-bin.orig/texk/kpathsea/configure.ac
20 +++ texlive-bin/texk/kpathsea/configure.ac
21 @@ -141,6 +141,6 @@
22 #define KPSEVERSION "kpathsea version] kpse_version["])
23 AH_BOTTOM([#endif /* !KPATHSEA_C_AUTO_H */])
24
25 -AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile win32/Makefile])
26 +AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile win32/Makefile kpathsea.pc])
27
28 AC_OUTPUT
29 --- /dev/null
30 +++ texlive-bin/texk/kpathsea/kpathsea.pc.in
31 @@ -0,0 +1,11 @@
32 +prefix=@prefix@
33 +exec_prefix=@exec_prefix@
34 +libdir=@libdir@
35 +includedir=@includedir@
36 +
37 +Name: kpathsea
38 +Description: Kpathsea library
39 +Version: @KPSEVERSION@
40 +Libs: -L${libdir} -lkpathsea
41 +Cflags: -I${includedir}
42 +
0 ---
1 texk/ptexenc/Makefile.am | 4 ++++
2 texk/ptexenc/configure.ac | 2 +-
3 texk/ptexenc/ptexenc.pc.in | 12 ++++++++++++
4 3 files changed, 17 insertions(+), 1 deletion(-)
5
6 --- texlive-bin.orig/texk/ptexenc/Makefile.am
7 +++ texlive-bin/texk/ptexenc/Makefile.am
8 @@ -36,6 +36,10 @@
9 ptexenc/ptexenc.h \
10 ptexenc/unicode.h
11
12 +pkgconfigdir = ${libdir}/pkgconfig
13 +
14 +pkgconfig_DATA = ptexenc.pc
15 +
16 EXTRA_DIST = COPYRIGHT ChangeLog.jp
17
18 # Rebuild
19 --- texlive-bin.orig/texk/ptexenc/configure.ac
20 +++ texlive-bin/texk/ptexenc/configure.ac
21 @@ -50,6 +50,6 @@
22 #define PTEXENCVERSION "ptexenc version] ptexenc_version["])
23 AH_BOTTOM([#endif /* !PTEXENC_C_AUTO_H */])
24
25 -AC_CONFIG_FILES([Makefile])
26 +AC_CONFIG_FILES([Makefile ptexenc.pc])
27
28 AC_OUTPUT
29 --- /dev/null
30 +++ texlive-bin/texk/ptexenc/ptexenc.pc.in
31 @@ -0,0 +1,12 @@
32 +prefix=@prefix@
33 +exec_prefix=@exec_prefix@
34 +libdir=@libdir@
35 +includedir=@includedir@
36 +
37 +Name: ptexenc
38 +Description: Ptexenc library
39 +Version: @PTEXENCVERSION@
40 +Requires.private: kpathsea
41 +Libs: -L${libdir} -lptexenc
42 +Cflags: -I${includedir}
43 +
0 ---
1 texk/web2c/ac/web2c.ac | 7 +++++
2 texk/web2c/aclocal.m4 | 1
3 texk/web2c/configure.ac | 8 ++++++
4 texk/web2c/synctexdir/am/synctex.am | 44 +++++++++++++++++++++++++++++++-----
5 texk/web2c/synctexdir/synctex.pc.in | 12 +++++++++
6 5 files changed, 66 insertions(+), 6 deletions(-)
7
8 --- texlive-bin.orig/texk/web2c/ac/web2c.ac
9 +++ texlive-bin/texk/web2c/ac/web2c.ac
10 @@ -79,3 +79,10 @@
11 AS_HELP_STRING([--disable-web-progs],
12 [do not build WEB programs bibtex ... weave],
13 kpse_indent_26))[]dnl
14 +
15 +## configure option for the SyncTeX tool
16 +AC_ARG_ENABLE([synctex],
17 + AS_HELP_STRING([--disable-synctex],
18 + [do not build the SyncTeX tool],
19 + kpse_indent_26))[]dnl
20 +
21 --- texlive-bin.orig/texk/web2c/aclocal.m4
22 +++ texlive-bin/texk/web2c/aclocal.m4
23 @@ -1233,6 +1233,7 @@
24 m4_include([../../m4/kpse-icu-flags.m4])
25 m4_include([../../m4/kpse-kpathsea-flags.m4])
26 m4_include([../../m4/kpse-lex.m4])
27 +m4_include([../../m4/kpse-lib-version.m4])
28 m4_include([../../m4/kpse-libpng-flags.m4])
29 m4_include([../../m4/kpse-lt-hack.m4])
30 m4_include([../../m4/kpse-lua52-flags.m4])
31 --- texlive-bin.orig/texk/web2c/configure.ac
32 +++ texlive-bin/texk/web2c/configure.ac
33 @@ -211,6 +211,8 @@
34
35 AM_CONDITIONAL([WEB], [test "x$enable_web_progs" != xno])
36
37 +AM_CONDITIONAL([SYNCTEX], [test "x$enable_synctex" != xno])
38 +
39 AS_IF([test "x$enable_ptex:$enable_eptex" = xno:no],
40 [enable_pweb_progs=no],
41 [enable_pweb_progs=$enable_web_progs])
42 @@ -393,6 +395,12 @@
43 AC_CONFIG_FILES([ctangleboot-sh], [chmod +x ctangleboot-sh])
44 AC_CONFIG_FILES([silent-sh], [chmod +x silent-sh])
45
46 +m4_define([synctex_version], m4_chomp(m4_include([synctexdir/synctex_parser_version.txt]))[.0])
47 +AC_SUBST([SYNCTEXVERSION], [synctex_version])
48 +KPSE_LT_VERSION([synctex])
49 +
50 +AC_CONFIG_FILES([synctexdir/synctex.pc])
51 +
52 dnl The subdirectory web2c must be configured for the build system.
53 dnl When cross compiling, can not share the cache file with the subdirectory!
54 AC_CONFIG_COMMANDS_POST([AS_IF([test "x$cross_compiling" = xyes],
55 --- texlive-bin.orig/texk/web2c/synctexdir/am/synctex.am
56 +++ texlive-bin/texk/web2c/synctexdir/am/synctex.am
57 @@ -5,21 +5,53 @@
58
59 ## The SyncTeX tool
60
61 +if SYNCTEX
62 bin_PROGRAMS += synctex
63 +endif SYNCTEX
64 +EXTRA_PROGRAMS += synctex
65
66 synctex_SOURCES = \
67 - synctexdir/synctex_main.c \
68 + synctexdir/synctex_main.c
69 +
70 +synctex_CPPFLAGS = -I$(srcdir)/synctexdir
71 +
72 +synctex_LDADD = libsynctex.la $(ZLIB_LIBS)
73 +
74 +$(synctex_OBJECTS): libsynctex.la
75 +
76 +## The SyncTeX parser library
77 +
78 +EXTRA_LTLIBRARIES = libsynctex.la
79 +
80 +libsynctex_la_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER
81 +
82 +libsynctex_la_LDFLAGS = -rpath @libdir@ -bindir @bindir@ -no-undefined -version-info $(SYNCTEX_LT_VERSINFO)
83 +
84 +libsynctex_la_SOURCES = \
85 synctexdir/synctex_parser.c \
86 - synctexdir/synctex_parser.h \
87 synctexdir/synctex_parser_local.h \
88 - synctexdir/synctex_parser_utils.h \
89 synctexdir/synctex_parser_utils.c
90
91 -synctex_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER
92 +libsynctex_la_LIBADD = $(ZLIB_LIBS)
93 +
94 +$(libsynctex_la_OBJECTS): $(ZLIB_DEPEND)
95 +
96 +if SYNCTEX
97 +install-exec-local: libsynctex.la
98 + $(MKDIR_P) "$(DESTDIR)$(libdir)"
99 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) \
100 + libsynctex.la "$(DESTDIR)$(libdir)"
101 +
102 +nobase_include_HEADERS = \
103 + synctexdir/synctex_parser.h \
104 + synctexdir/synctex_parser_utils.h
105 +endif SYNCTEX
106
107 -synctex_LDADD = $(ZLIB_LIBS)
108 +pkgconfigdir = ${libdir}/pkgconfig
109
110 -$(synctex_OBJECTS): $(ZLIB_DEPEND)
111 +if SYNCTEX
112 +pkgconfig_DATA = synctexdir/synctex.pc
113 +endif SYNCTEX
114
115 dist_man_MANS += synctexdir/man1/synctex.1 synctexdir/man5/synctex.5
116
117 --- /dev/null
118 +++ texlive-bin/texk/web2c/synctexdir/synctex.pc.in
119 @@ -0,0 +1,12 @@
120 +prefix=@prefix@
121 +exec_prefix=@exec_prefix@
122 +libdir=@libdir@
123 +includedir=@includedir@
124 +
125 +Name: synctex
126 +Description: SyncTeX parser library
127 +Version: @SYNCTEXVERSION@
128 +Requires.private: zlib
129 +Libs: -L${libdir} -lsynctex
130 +Cflags: -I${includedir}
131 +
133133 texk/kpathsea/AUTHORS \
134134 texk/kpathsea/NEWS texk/kpathsea/PROJECTS \
135135 texk/kpathsea/README
136 dh_installdocs -plibsynctex1 -plibsynctex-dev \
137 texk/web2c/synctexdir/README.txt \
138 texk/web2c/synctexdir/synctex_parser_readme.txt
136139
137140 override_dh_installchangelogs:
138141 dh_installchangelogs
140143 texk/kpathsea/ChangeLog
141144 dh_installchangelogs -plibptexenc1 -plibptexenc-dev \
142145 texk/ptexenc/ChangeLog
146 dh_installchangelogs -plibsynctex1 -plibsynctex-dev \
147 texk/web2c/synctexdir/ChangeLog
143148
144149 override_dh_compress:
145150 dh_compress -X.pdf
147152 override_dh_makeshlibs:
148153 dh_makeshlibs -plibkpathsea6
149154 dh_makeshlibs -plibptexenc1
150 dh_makeshlibs -plibsynctex-parser1
155 dh_makeshlibs -plibsynctex1
151156
152157 override_dh_shlibdeps:
153158 dh_shlibdeps \
154159 -l debian/libkpathsea6/usr/lib \
155160 -l debian/libptexenc1/usr/lib \
156 -l debian/libsynctex-parser1/usr/lib
161 -l debian/libsynctex1/usr/lib
157162
158163 override_dh_clean:
159164 dh_clean -X.orig