1 ################################################################################
3 # ebook.cygclass - functions for building Ebook documentation packages
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport. If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****ih* Cygclasses/ebook.cygclass
26 # The HTML Help Books project converts manuals for the toolchain and other
27 # common tools into several formats.
29 # This cygclass creates packages from the HTML format documentation which
30 # can then be viewed in DevHelp (GNOME's API documentation browser).
33 ORIG_PN="${PN#ebook-}"
35 #****io* ebook.cygclass/CATEGORY (ebook)
39 #****io* ebook.cygclass/SUMMARY (ebook)
41 SUMMARY="EBook ${ORIG_PN} documentation"
43 #****io* ebook.cygclass/HOMEPAGE (ebook)
45 HOMEPAGE="https://code.google.com/archive/p/htmlhelp/"
47 #****io* ebook.cygclass/SRC_URI (ebook)
49 SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/htmlhelp/${ORIG_PN}-${PV}.tgz"
54 #****iI* ebook.cygclass/ebook_install
58 # Installs the documentation into DevHelp's books directory under $D.
60 # Must be run from the directory containing the 'book.devhelp' file.
63 if [ ! -e book.devhelp ]
65 error "book.devhelp: file not found"
68 insinto /usr/share/devhelp/books/${ORIG_PN}
69 newins book.devhelp ${ORIG_PN}.devhelp
73 #****io* ebook.cygclass/src_compile (ebook)
75 # There is nothing to build, so this is empty.
79 #****io* ebook.cygclass/src_install (ebook)
87 readonly -f ebook_install