diff options
author | 2020-02-03 12:07:48 +0100 | |
---|---|---|
committer | 2020-02-03 12:08:19 +0100 | |
commit | 828bd984923c4ba7763b0d299c7b2024fea4b55f (patch) | |
tree | 77c9729d07308a135afcc8dc496e60db58e02e26 /app-doc/devmanual/devmanual-0_pre20200203.ebuild | |
parent | app-doc/devmanual: Update live ebuild. (diff) | |
download | gentoo-828bd984923c4ba7763b0d299c7b2024fea4b55f.tar.gz gentoo-828bd984923c4ba7763b0d299c7b2024fea4b55f.tar.bz2 gentoo-828bd984923c4ba7763b0d299c7b2024fea4b55f.zip |
app-doc/devmanual: New snapshot.
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-doc/devmanual/devmanual-0_pre20200203.ebuild')
-rw-r--r-- | app-doc/devmanual/devmanual-0_pre20200203.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/app-doc/devmanual/devmanual-0_pre20200203.ebuild b/app-doc/devmanual/devmanual-0_pre20200203.ebuild new file mode 100644 index 000000000000..267f21183744 --- /dev/null +++ b/app-doc/devmanual/devmanual-0_pre20200203.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit readme.gentoo-r1 + +DESCRIPTION="The Gentoo Development Guide" +HOMEPAGE="https://devmanual.gentoo.org/" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/devmanual.git" +else + SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz" + S="${WORKDIR}/${PN}" + KEYWORDS="~amd64 ~arm ~hppa ~m68k ~mips ~s390 ~sh ~sparc ~x86 ~x64-macos" +fi + +LICENSE="CC-BY-SA-4.0" +SLOT="0" +IUSE="+offline" + +BDEPEND="dev-libs/libxml2 + dev-libs/libxslt + gnome-base/librsvg + media-fonts/open-sans" + +PATCHES=( "${FILESDIR}"/${PN}-eclasses.patch ) + +src_compile() { + emake build OFFLINE=$(usex offline 1 0) + use offline || emake documents.js +} + +src_install() { + # clean out XML/XSL before installing + find . \( \ + -iname '*.xml' -o \ + -iname '*.dtd' -o \ + -iname '*.xsl' -o \ + -iname '*.svg' \) -delete || die + rm -r bin xsl .git* LICENSE Makefile README.md || die + + local HTML_DOCS=( . ) + einstalldocs + + einfo "Creating symlink from ${PF} to ${PN} for preserving bookmarks" + dosym ${PF} /usr/share/doc/${PN} + + local DOC_CONTENTS="In order to browse the Gentoo Development Guide in + offline mode, point your browser to the following url: + file://${EPREFIX}/usr/share/doc/${PN}/html/index.html" + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + if ! has_version app-doc/eclass-manpages; then + elog "The offline version of the devmanual does not include the" + elog "documentation for the eclasses. If you need it, then emerge" + elog "the following package:" + elog + elog "app-doc/eclass-manpages" + fi +} |