From f538864d036fa21ddc6e68214f0aaa578a298e7e Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Thu, 17 Feb 2000 19:07:25 +0000 Subject: [PATCH] added -doc package git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- debian/changelog | 2 +- debian/control.in | 11 +++++++++++ debian/libwx-doc.dirs | 1 + debian/libwx-doc.doc-base | 10 ++++++++++ debian/libwx-doc.docs | 2 ++ debian/rules | 28 ++++++++++++++++++++++++---- debian/wx-config.1 | 2 +- 7 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 debian/libwx-doc.dirs create mode 100644 debian/libwx-doc.doc-base create mode 100644 debian/libwx-doc.docs diff --git a/debian/changelog b/debian/changelog index c099b1d9b5..ea77d75543 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -wxwindows (2.1.13) unstable; urgency=low +wxwindows (2.1.14) unstable; urgency=low * Repackaged to build from cvs. diff --git a/debian/control.in b/debian/control.in index 833884c012..164893274e 100644 --- a/debian/control.in +++ b/debian/control.in @@ -33,3 +33,14 @@ Description: wxWindows Cross-platform C++ GUI toolkit (GTK+ development) This package provides files needed to compile wxWindows programs. It includes header files and static libraries. +Package: libwx=V-doc +Architecture: all +Section: doc +Suggests: doc-base, www-browser +Description: wxWindows Cross-platform C++ GUI toolkit (documentation) + wxWindows is a class library for C++ providing GUI (Graphical User + Interface) and other facilities on more than one platform. Version 2.1 + currently supports subsets of GTK+, Motif, and MS Windows. + . + This package provides a HTML version of the wxWindows reference manual. + diff --git a/debian/libwx-doc.dirs b/debian/libwx-doc.dirs new file mode 100644 index 0000000000..c0a85e9e29 --- /dev/null +++ b/debian/libwx-doc.dirs @@ -0,0 +1 @@ +usr/share/doc-base diff --git a/debian/libwx-doc.doc-base b/debian/libwx-doc.doc-base new file mode 100644 index 0000000000..1bb32572ab --- /dev/null +++ b/debian/libwx-doc.doc-base @@ -0,0 +1,10 @@ +Document: wxwindows-manual +Title: wxWindows Progamming Manual +Author: The wxWindows Cabal +Abstract: This manual describes the wxWindows cross-platform GUI toolkit. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/libwx2.1-doc/wxWindows-manual.html/wxwin.htm +Files: /usr/share/doc/libwx2.1-doc/wxWindows-manual.html/* + diff --git a/debian/libwx-doc.docs b/debian/libwx-doc.docs new file mode 100644 index 0000000000..b96b3290fb --- /dev/null +++ b/debian/libwx-doc.docs @@ -0,0 +1,2 @@ +docs/licendoc.txt +docs/wxWindows-manual.html diff --git a/debian/rules b/debian/rules index 7c110bb083..f760ecc54f 100755 --- a/debian/rules +++ b/debian/rules @@ -17,6 +17,7 @@ release=2.1 # These are the packages we will build package_gtk_lib=libwxgtk$(release) package_gtk_dev=libwxgtk$(release)-dev +package_doc=libwx$(release)-doc # Dirs to put the various builds object files in objdir_gtk_shared=objs_gtk_sh @@ -24,7 +25,7 @@ objdir_gtk_static=objs_gtk_st objdirs=$(objdir_gtk_shared) $(objdir_gtk_static) -build_stamps=build-gtk-shared-stamp build-gtk-static-stamp +build_stamps=build-gtk-shared-stamp build-gtk-static-stamp build-doc-stamp debian/control: debian/control.in @@ -48,13 +49,28 @@ build-gtk-static-stamp: && $(MAKE) touch $@ +build-doc-stamp: build-gtk-shared-stamp + dh_testdir + cd $(objdir_gtk_shared)/utils/tex2rtf/src \ + && $(MAKE) \ + && mkdir HTML \ + && ./tex2rtf ../../../../docs/latex/wx/manual.tex HTML/wxwin -twice -html \ + && cp ../../../../docs/latex/wx/*.gif HTML \ + && rm -f *.con \ + && rm -f HTML/wxwin.con HTML/wxwin.hh* HTML/wxwin.htx HTML/wxwin.ref + rm -rf docs/wxWindows-manual.html + mv $(objdir_gtk_shared)/utils/tex2rtf/src/HTML docs/wxWindows-manual.html + touch $@ + clean: debian/control dh_testdir dh_testroot - -rm -rf $(build_stamps) $(objdirs) + rm -rf $(build_stamps) $(objdirs) + rm -rf docs/wxWindows-manual.html dh_clean - -rm -f debian/$(package_gtk_lib).* - -rm -f debian/$(package_gtk_dev).* + rm -f debian/$(package_gtk_lib).* + rm -f debian/$(package_gtk_dev).* + rm -f debian/$(package_doc).* install: build @for f in dirs docs files postinst; do \ @@ -65,6 +81,10 @@ install: build echo "generating control file $(package_gtk_dev).$$f"; \ cp debian/libwxgtk-dev.$$f debian/$(package_gtk_dev).$$f; \ done; + @for f in dirs docs doc-base; do \ + echo "generating control file $(package_doc).$$f"; \ + cp debian/libwx-doc.$$f debian/$(package_doc).$$f; \ + done; dh_testdir dh_testroot dh_clean -k diff --git a/debian/wx-config.1 b/debian/wx-config.1 index 20fcfde7c9..07775489be 100644 --- a/debian/wx-config.1 +++ b/debian/wx-config.1 @@ -1,4 +1,4 @@ -.TH wxWindows 1 "15 Feb 2000" "wxGTK 2.1.13" +.TH wxWindows 1 "15 Feb 2000" "wxGTK 2.2" .SH NAME wx-config - script to get information about the installed version of wxGTK .SH SYNOPSIS -- 2.45.2