File: debianization-documentation.patch

package info (click to toggle)
singular 1:4.1.1-p2+ds-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 35,860 kB
  • sloc: cpp: 288,280; ansic: 17,387; lisp: 4,242; yacc: 1,654; python: 1,608; makefile: 1,424; lex: 1,387; perl: 632; sh: 567; xml: 182
file content (67 lines) | stat: -rw-r--r-- 2,050 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Description: debianization -- documentation
 Address Debian Policy requirements for documentation.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2018-02-24

--- a/dox/Makefile.am
+++ b/dox/Makefile.am
@@ -1,3 +1,5 @@
+htmldir = $(docdir)/html
+
 GIT_VERSION := $(shell $(top_srcdir)/git-version-gen $(top_srcdir)/.tarball-git-version)
 
 doxyrun:
@@ -22,20 +24,30 @@
 
 if HAVE_DOXYGEN
 
-## doxyfile.stamp:
-html:
+doxyfile.stamp:
 	$(MAKE) doxyrun abs_top_srcdir="$(abs_top_srcdir)" abs_top_builddir="$(abs_top_builddir)" \
 	DOXYGEN_CONFIG="$(abs_srcdir)/Doxyfile.in" DOXYGEN="$(DOXYGEN)"
-##	echo Timestamp > doxyfile.stamp
+	echo Timestamp > doxyfile.stamp
 
-## CLEANFILES = doxyfile.stamp
+##CLEANFILES = doxyfile.stamp
 
 # all-local: doxyfile.stamp
 
-## html: doxyfile.stamp
+html: doxyfile.stamp
+
+install-html-local: html
+	$(MKDIR_P) $(DESTDIR)$(htmldir)
+	cp -rp -t $(DESTDIR)$(htmldir) html/search
+	cp -p -t $(DESTDIR)$(htmldir) html/*.html html/*.png
+	cp -p -t $(DESTDIR)$(htmldir) html/doxygen.css html/stylesheet.css html/tabs.css
+	cp -p -t $(DESTDIR)$(htmldir) html/dynsections.js html/svgpan.js
+	rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(htmldir)
+	symlinks -r -c -s -v $(DESTDIR)$(htmldir)
+	rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(htmldir)/search
+	symlinks -r -c -s -v $(DESTDIR)$(htmldir)/search
 
 clean-local:
-	rm -f html_dox.log tags
+	rm -f html_dox.log tags doxyfile.stamp
 	rm -rf html
 endif
 
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,6 +35,12 @@
 	   mv  $(DESTDIR)$(datadir)/singular/singular.hlp  $(DESTDIR)$(datadir)/info/.;\
 	   mv  $(DESTDIR)$(datadir)/singular/singular.idx  $(DESTDIR)$(datadir)/doc/.;\
 	fi
+	-cd $(DESTDIR)$(datadir)/singular/html && { \
+		chmod a-x a_*.gif ; \
+		rdfind -outputname /dev/null -makesymlinks true . ; \
+		symlinks -r -c -s -v . ; \
+		}
+
 
 uninstall-local:
 	-(cd $(DESTDIR)$(datadir); rm -rf singular info/singular.hlp)