Drop/Refresh patches due to moving to 16.07.2
[deb_dpdk.git] / debian / patches / dpdk-dev-v2-2-4-doc-rendering-and-installation-of-man-pages.patch
1 --- a/doc/guides/conf.py
2 +++ b/doc/guides/conf.py
3 @@ -92,6 +92,14 @@
4  # Replace the default latex formatter.
5  PygmentsBridge.latex_formatter = CustomLatexFormatter
6  
7 +# Configuration for man pages
8 +man_pages = [("testpmd_app_ug/run_app", "testpmd",
9 +              "tests for dpdk pmds", "", 1),
10 +             ("tools/pdump", "dpdk-pdump",
11 +              "enable packet capture on dpdk ports", "", 1),
12 +             ("tools/proc_info", "dpdk-procinfo",
13 +              "access dpdk port stats and memory info", "", 1)]
14 +
15  ######## :numref: fallback ########
16  # The following hook functions add some simple handling for the :numref:
17  # directive for Sphinx versions prior to 1.3.1. The functions replace the
18 --- a/mk/rte.sdkdoc.mk
19 +++ b/mk/rte.sdkdoc.mk
20 @@ -63,7 +63,7 @@
21  all: api-html guides-html guides-pdf
22  
23  .PHONY: clean
24 -clean: api-html-clean guides-html-clean guides-pdf-clean
25 +clean: api-html-clean guides-html-clean guides-pdf-clean guides-man-clean
26  
27  .PHONY: api-html
28  api-html: api-html-clean
29 --- a/mk/rte.sdkinstall.mk
30 +++ b/mk/rte.sdkinstall.mk
31 @@ -66,6 +66,7 @@
32  datarootdir ?=      $(prefix)/share
33  docdir      ?=       $(datarootdir)/doc/dpdk
34  datadir     ?=       $(datarootdir)/dpdk
35 +mandir      ?=       $(datarootdir)/man
36  sdkdir      ?=                $(datadir)
37  targetdir   ?=                $(datadir)/$(RTE_TARGET)
38  
39 @@ -133,6 +134,11 @@
40                                    $(DESTDIR)$(sbindir)/dpdk-devbind)
41         $(Q)$(call rte_symlink,    $(DESTDIR)$(datadir)/tools/dpdk-pmdinfo.py, \
42                                    $(DESTDIR)$(bindir)/dpdk-pmdinfo)
43 +ifneq ($(wildcard $O/doc/man/*/*.1),)
44 +       $(Q)$(call rte_mkdir,     $(DESTDIR)$(mandir))
45 +       $(Q)$(call rte_mkdir,     $(DESTDIR)$(mandir)/man1)
46 +       $(Q)cp -a $O/doc/man/*/*.1 $(DESTDIR)$(mandir)/man1
47 +endif
48  
49  install-kmod:
50  ifneq ($(wildcard $O/kmod/*),)